/* SmartPark — Unlock Hidden Parking Capacity */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --color-reserved: #dc2626;
  --color-reserved-bg: #fef2f2;
  --color-reserved-border: #fca5a5;
  
  --color-owner: #334155;
  --color-owner-bg: #1e293b;
  --color-owner-border: #475569;
  
  --color-released: #059669;
  --color-released-bg: #ecfdf5;
  --color-released-border: #34d399;
  
  --color-reallocated: #0284c7;
  --color-reallocated-bg: #f0f9ff;
  --color-reallocated-border: #38bdf8;
  
  --color-flex-avail: #0d9488;
  --color-flex-avail-bg: #f0fdfa;
  --color-flex-avail-border: #5eead4;
  
  --color-flex-occ: #64748b;
  --color-flex-occ-bg: #f8fafc;
  --color-flex-occ-border: #cbd5e1;
  
  --color-unauth: #e11d48;
}

body {
  font-family: var(--font-sans);
  background-color: #0b1120;
  color: #f1f5f9;
  overflow-x: hidden;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-elevated {
  background: rgba(30, 41, 59, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
}

/* Parking Bay Stall Styling */
.bay-tile {
  position: relative;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 86px;
  cursor: pointer;
  user-select: none;
}

.bay-tile:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

/* Specific Bay Status Designs */
.bay-RESERVED_LOCKED {
  background: linear-gradient(145deg, #2d1518 0%, #1a0c0e 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.bay-OCCUPIED_OWNER {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid rgba(100, 116, 139, 0.35);
  color: #cbd5e1;
}

.bay-RELEASED_AVAILABLE {
  background: linear-gradient(145deg, #064e3b 0%, #022c22 100%);
  border: 2px solid #10b981;
  color: #a7f3d0;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.28);
  animation: pulseReleased 2.2s infinite ease-in-out;
}

.bay-OCCUPIED_REALLOCATED {
  background: linear-gradient(145deg, #0c4a6e 0%, #082f49 100%);
  border: 2px solid #0284c7;
  color: #bae6fd;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.3);
}

.bay-FLEX_AVAILABLE {
  background: linear-gradient(145deg, #134e4a 0%, #042f2e 100%);
  border: 1.5px solid #14b8a6;
  color: #99f6e4;
}

.bay-OCCUPIED_FLEX {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  border: 1.5px solid #475569;
  color: #94a3b8;
}

.bay-UNAUTHORIZED_ALERT {
  background: linear-gradient(145deg, #881337 0%, #4c0519 100%);
  border: 2px solid #f43f5e;
  color: #fecdd3;
  animation: flashAlert 1.2s infinite ease-in-out;
}

/* Animations */
@keyframes pulseReleased {
  0%, 100% {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
  }
  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.55);
  }
}

@keyframes flashAlert {
  0%, 100% {
    box-shadow: 0 0 4px rgba(244, 63, 94, 0.3);
  }
  50% {
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.75);
  }
}

/* Hero Bay B5-024 Glowing Ring */
.hero-bay-glow {
  box-shadow: 0 0 0 2.5px #f59e0b, 0 0 20px rgba(245, 158, 11, 0.45) !important;
  animation: heroPulse 2s infinite ease-in-out;
}

@keyframes heroPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2.5px #f59e0b, 0 0 16px rgba(245, 158, 11, 0.35);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 0 0 3.5px #fbbf24, 0 0 26px rgba(251, 191, 36, 0.65);
  }
}

/* IoT Puck Sensor LED indicator */
.iot-puck-led {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.led-EMPTY {
  background-color: #10b981;
  color: #10b981;
}

.led-VEHICLE_DETECTED_PENDING_AUTH {
  background-color: #f59e0b;
  color: #f59e0b;
  animation: ledPulse 1s infinite alternate;
}

.led-OCCUPIED_VERIFIED {
  background-color: #3b82f6;
  color: #3b82f6;
}

.led-OCCUPIED_UNAUTHORIZED {
  background-color: #ef4444;
  color: #ef4444;
  animation: ledPulse 0.5s infinite alternate;
}

@keyframes ledPulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Carpark Architectural Lane Markings */
.asphalt-aisle {
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15) 0px,
    rgba(255, 255, 255, 0.15) 18px,
    transparent 18px,
    transparent 36px
  );
  height: 3px;
}

/* Photo Overlay Canvas Pin */
.photo-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  z-index: 30;
}

.photo-pin:hover {
  transform: translate(-50%, -50%) scale(1.22);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  z-index: 40;
}

/* Drawer / Modal Transition */
.drawer-backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
