@charset "UTF-8";

/* PlanTrack PWA - Field Industrial Technical & Plannect/DATER Theme */
:root {
  --bg-primary: #0b1326;
  --bg-surface: #131b2e;
  --bg-card: #171f33;
  --bg-card-hover: #1f2942;
  --accent-orange: #f97316;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #273552;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overflow-x: hidden;
}

/* Custom technical scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0b1326;
}
::-webkit-scrollbar-thumb {
  background: #273552;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* Drawer transitions */
.drawer-backdrop {
  transition: opacity 0.25s ease-in-out;
}
.drawer-panel-left {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel-right {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CAD Pins on floor plan viewer */
.cad-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}
.cad-pin:hover, .cad-pin.active {
  transform: translate(-50%, -115%) scale(1.2);
  z-index: 20;
}

.pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  80%, 100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Tab navigation transition */
.view-panel {
  display: none;
  animation: fadeIn 0.2s ease-in-out forwards;
}
.view-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Action Button (FAB) */
.fab-btn {
  position: fixed;
  bottom: 74px;
  right: 18px;
  z-index: 35;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.5), 0 4px 8px -2px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease-in-out;
}
.fab-btn:active {
  transform: scale(0.92);
}

@media (min-width: 768px) {
  .fab-btn {
    bottom: 28px;
    right: 28px;
  }
}

/* Watermark photo preview card */
.photo-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* Print specific rules */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .no-print {
    display: none !important;
  }
}

/* DATER Hub Menu Cards */
.menu-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.menu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5);
}
.menu-card:active {
  transform: scale(0.98);
}
