/* PolarNavigation AI - Modern Dark Polar Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-primary: #070d14;
  --bg-secondary: #0d1826;
  --bg-card: rgba(15, 27, 43, 0.85);
  --border-color: #1e3a5a;
  --cyan-glow: #00E5FF;
  --green-glow: #00FF66;
  --amber-glow: #FFB800;
  --red-hazard: #FF2233;
}

body {
  background-color: var(--bg-primary);
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

.glow-cyan {
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
}

.glow-green {
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.35);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0b131e;
}
::-webkit-scrollbar-thumb {
  background: #1e3a5a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Leaflet Beacons & Pulse Animations */
@keyframes radar-ping {
  0% { transform: scale(0.4); opacity: 1; }
  80% { opacity: 0.15; }
  100% { transform: scale(2.6); opacity: 0; }
}

.radar-beacon {
  position: relative;
  width: 20px;
  height: 20px;
  background: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 14px #ef4444;
}

.radar-beacon::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: radar-ping 2s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}

.ship-beacon {
  position: relative;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #10b981, #047857);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 16px #10b981;
}

.base-beacon {
  position: relative;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 16px #8b5cf6;
}

/* Leaflet Map Styling - STRICT EXPLICIT HEIGHT */
#polarMap {
  width: 100% !important;
  height: 600px !important;
  min-height: 600px !important;
  background: #050a10 !important;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  display: block;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  min-height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.leaflet-popup-content-wrapper {
  background: #0d1b2a !important;
  color: #f8fafc !important;
  border: 1px solid #1e3a5a !important;
  border-radius: 8px !important;
}

.leaflet-popup-tip {
  background: #0d1b2a !important;
}

/* Zero-Key Dark Polar Radar Map Inversion Filter */
.dark-polar-tiles {
  filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(110%) saturate(35%) !important;
  -webkit-filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(110%) saturate(35%) !important;
}
