/* ================================================================================================
   🌤️ WXBINGE DASHBOARD - CUSTOM STYLES
   Weather Intelligence Platform | Custom CSS Components
   ================================================================================================ */

/* ================================================================================================
   📐 CSS CUSTOM PROPERTIES (VARIABLES)
   ================================================================================================ */
:root {
  /* Brand Colors */
  --color-metaraqua: #02AAFC;
  --color-metaryellow: #c5c522;
  
  /* UI Colors */
  --color-glass-bg: rgba(255, 255, 255, 0.1);
  --color-glass-border: rgba(255, 255, 255, 0.2);
  --color-glass-hover: rgba(255, 255, 255, 0.2);
  
  /* Shadows */
  --shadow-glass: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-glass-hover: 0 6px 20px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-standard: all 0.3s ease;
  --transition-quick: all 0.2s ease;
}

/* ================================================================================================
   🗂️ NAVIGATION & TABS
   ================================================================================================ */

/* Tab Content Container */
.tab-content {
  padding: 20px;
  background-color: #1f2937;
  border-radius: 0 0 12px 12px;
}

/* Tab Navigation Buttons */
.tab-button {
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #374151;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-standard);
}

.tab-button.active {
  background-color: #2563eb;
}

/* ================================================================================================
   🔘 INTERACTIVE COMPONENTS - BUTTONS & CONTROLS
   ================================================================================================ */

/* Glass Effect Buttons */
.glass-button {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--color-glass-border);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #000000;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-standard);
  cursor: pointer;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glass-hover);
  transform: scale(1.05);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.glass-button:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

/* Glass Style Dropdown Menus */
.dropdown-glass {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: white;
  background-color: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-glass);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-standard);
}

.dropdown-glass:hover {
  background-color: var(--color-glass-hover);
}

.dropdown-glass option {
  background-color: #1f2937;
  color: white;
}

/* ================================================================================================
   🎚️ SLIDERS & RANGE INPUTS
   ================================================================================================ */

/* Modern Glass Slider (Legacy) */
.modern-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 8px;
  background: var(--color-glass-bg);
  backdrop-filter: blur(8px);
  outline: none;
  transition: var(--transition-standard);
  cursor: pointer;
}

.modern-slider:hover {
  background: var(--color-glass-hover);
}

.modern-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-quick);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.modern-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #60a5fa;
}

.modern-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-quick);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.modern-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: #60a5fa;
}

/* Enhanced Slider (Primary Slider Component) */
.enhanced-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-glass-border);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-standard);
  padding: 0 8px;
}

/* Enhanced Slider Thumb (WebKit) */
.enhanced-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
  transition: var(--transition-quick);
}

.enhanced-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.8);
}

/* Enhanced Slider Thumb (Firefox) */
.enhanced-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
  transition: var(--transition-quick);
}

.enhanced-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.8);
}

/* Frame Slider Specific Sizing */
#frameSlider {
  width: 1000px;
  max-width: 100%;
}

@media (max-width: 1000px) {
  #frameSlider {
    width: 100%;
  }
}

/* ================================================================================================
   🔄 TOGGLE SWITCHES & FORM CONTROLS
   ================================================================================================ */

/* Custom Toggle Switch Container */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Toggle Switch Track */
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #4b5563;
  border-radius: 30px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: var(--transition-standard);
}

/* Toggle Switch Handle */
.slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-metaraqua);
  transition: var(--transition-standard);
  border-radius: 50%;
  z-index: 2;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(30px);
}

/* Toggle Switch Labels */
.label {
  position: absolute;
  width: 50%;
  text-align: center;
  line-height: 30px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  z-index: 1;
  pointer-events: none;
}

.label-f {
  left: 0;
}

.label-c {
  right: 0;
  opacity: 0.6;
}

.toggle-switch input:checked + .slider .label-f {
  opacity: 0.6;
}

.toggle-switch input:checked + .slider .label-c {
  opacity: 1;
}

/* ================================================================================================
   🌤️ WEATHER-SPECIFIC COMPONENTS
   ================================================================================================ */

/* Raw METAR Terminal Display */
@keyframes slowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(2, 170, 252, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(2, 170, 252, 0.7);
  }
}

.raw-metar-box {
  background-color: #000000;
  color: var(--color-metaraqua);
  font-family: 'Fira Mono', monospace, 'Courier New', monospace;
  font-size: 16px;
  padding: 16px;
  border-radius: 8px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
  box-shadow: 0 0 10px rgba(2, 170, 252, 0.4);
  animation: slowPulse 8s infinite ease-in-out;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* Flight Category Indicators */
.flight-category-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: bold;
  font-family: monospace;
  color: white;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.flight-category-indicator {
  padding: 0.75rem;
  border-radius: 0.375rem;
  background-color: rgba(0, 0, 0, 0.2);
  transition: var(--transition-standard);
}

.flight-info-details {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #d1d5db;
  display: none;
}

.flight-info-details.show {
  display: block;
}

.flight-info-details p {
  margin: 0.25rem 0;
}

/* Forecast Section Color Coding */
.forecast-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.forecast-orange {
  color: #fb923c;
}

.forecast-blue {
  color: #60a5fa;
}

.forecast-green {
  color: #4ade80;
}

.forecast-purple {
  color: #c084fc;
}

/* Wind Speed Display Component */
#windspeedBox {
  width: 160px;
  height: 160px;
  background: #1f2937;
  border-radius: 50%;
  position: relative;
  text-align: center;
  color: white;
  font-family: sans-serif;
  border: 2px solid #374151;
}

#windArrow {
  width: 4px;
  height: 64px;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(0deg);
  transition: var(--transition-standard);
}

/* ================================================================================================
   🛰️ SATELLITE & IMAGERY COMPONENTS
   ================================================================================================ */

/* Main Satellite Image Display */
#satelliteImage {
  width: 100%;
  max-width: 1500px;
  height: auto;
  max-height: 1500px;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Satellite Preview Sidebar */
.preview-sidebar {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 1rem;
  overflow-y: auto;
}

/* Preview Image Styling */
.preview-image {
  width: 300px;
  height: auto;
  border: 2px solid var(--color-glass-border);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.preview-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glass-hover);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Preview Image Container Text */
.preview-sidebar .text-center p {
  color: #ffffff;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ================================================================================================
   🎨 BRANDING & LAYOUT COMPONENTS
   ================================================================================================ */

/* WxBinge Logo Sizing */
.wxbinge-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Brand Identity Section */
.binge-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 40px;
}

/* Enhanced Weather Binge Title Styling */
.binge-title {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, 
    var(--color-metaraqua) 0%, 
    #60a5fa 30%, 
    #34d399 60%, 
    var(--color-metaraqua) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-metaraqua); /* Fallback for non-webkit browsers */
  letter-spacing: -0.5px;
  text-shadow: 
    0 0 20px rgba(2, 170, 252, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  font-variant: small-caps;
}

.binge-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    transparent 0%, 
    rgba(2, 170, 252, 0.1) 50%, 
    transparent 100%);
  border-radius: 8px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.binge-title:hover {
  transform: translateY(-1px);
  text-shadow: 
    0 0 30px rgba(2, 170, 252, 0.6),
    0 0 40px rgba(52, 211, 153, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0px;
}

.binge-title:hover::before {
  opacity: 1;
}

.slogan {
  font-size: 16px;
  color: #9ca3af;
  font-style: italic;
  opacity: 0.9;
  margin-top: 2px;
}

/* Page Headers */
.current-conditions-header {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-align: center;
}

.conditions-keyword {
  color: var(--color-metaraqua);
}

/* Main Temperature Display */
#mainTemp {
  font-size: 72px;
  font-weight: 800;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
  line-height: 1;
}

#mainTemp .deg {
  font-size: 32px;
  vertical-align: top;
  margin-left: 4px;
}

#mainTemp .unit {
  font-size: 20px;
  vertical-align: bottom;
  margin-left: 1px;
}

/* ================================================================================================
   🌅 DYNAMIC BACKGROUNDS & ATMOSPHERIC EFFECTS
   ================================================================================================ */

/* Day Background Gradient */
.day-bg {
  background: linear-gradient(to bottom, #87CEEB, #b6e1ff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Night Background with Stars */
.night-bg {
  background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Animated Star Field */
.night-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(1px 1px at 25px 5px, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 50px 25px, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 125px 20px, white, rgba(255, 255, 255, 0)),
    radial-gradient(1.5px 1.5px at 50px 75px, white, rgba(255, 255, 255, 0)),
    radial-gradient(2px 2px at 15px 125px, white, rgba(255, 255, 255, 0)),
    radial-gradient(2.5px 2.5px at 110px 80px, white, rgba(255, 255, 255, 0));
  z-index: 0;
  opacity: 0.7;
}

/* Ensure content stays above star field */
.night-bg * {
  position: relative;
  z-index: 1;
}

/* Twilight/Dawn Background */
.twilight-bg {
  background: linear-gradient(to bottom, #FF7E5F, #feb47b, #6a82fb);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Twilight Atmospheric Glow */
.twilight-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 75% 20%, rgba(255, 255, 200, 0.4) 0%, rgba(255, 255, 200, 0) 50%),
    radial-gradient(circle at 25% 80%, rgba(173, 216, 230, 0.4) 0%, rgba(173, 216, 230, 0) 50%);
  z-index: 0;
  opacity: 0.7;
}

/* Ensure content stays above atmospheric effects */
.twilight-bg * {
  position: relative;
  z-index: 1;
}

/* Text Readability on Dynamic Backgrounds */
.day-bg, .night-bg {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.day-bg img, .night-bg img {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* ================================================================================================
   ⚡ ANIMATIONS & EFFECTS
   ================================================================================================ */

/* General Pulse Animation */
@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* ================================================================================================
   🔮 ADVANCED FEATURES - NOWCAST INTEGRATION
   ================================================================================================ */

/* Nowcast Timestamp Display */
#nowcastTimestamp {
  font-size: 0.85rem;
  padding: 2px 5px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 4px;
  margin-top: 2px;
  display: inline-block;
}

/* Nowcast Controls Enhancement */
#nowcastControls {
  transition: opacity 0.3s ease;
}

#nowcastControls button {
  transition: var(--transition-quick);
}

#nowcastControls button:hover {
  filter: brightness(1.1);
}

/* Nowcast Button Indicators */
#nowcast-start, #nowcast-stop, #nowcast-prev, #nowcast-next {
  position: relative;
}

#nowcast-start::before, #nowcast-stop::before, #nowcast-prev::before, #nowcast-next::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #4338ca, #8b5cf6);
}

/* Nowcast Checkbox Styling */
#toggleNowcastCheckbox {
  accent-color: #8b5cf6;
}

#toggleNowcastCheckbox:checked + span:after {
  content: " 🔮";
  font-size: 0.75em;
  vertical-align: super;
  opacity: 0.8;
}

/* ================================================================================================
   📄 FOOTER & DISCLAIMER COMPONENTS
   ================================================================================================ */

/* Current Conditions Disclaimer */
.current-disclaimer {
  color: #9ca3af;
  font-size: 12px;
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  padding: 0 1rem;
}

/* Footer Copyright */
.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* ================================================================================================
   📱 RESPONSIVE & UTILITY CLASSES
   ================================================================================================ */

/* Archive Map Sizing */
#archiveMap {
  height: 800px;
}


/* ================================
   📊 Show All Charts Toggle Feature
   ================================ */
   
   .show-all-charts-toggle {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border: 1px solid #4b5563;
  color: #f3f4f6;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.show-all-charts-toggle:hover {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  border-color: #6b7280;
}

.show-all-charts-toggle.active {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-color: #60a5fa;
  color: white;
}

/* ================================
   ✈️ Aviation Station Display Styles
   ================================ */
   
.station-header-large {
  font-size: 20px;
  line-height: 1.2;  
  font-weight: bold;
  color: white;
  margin-bottom: 0.25rem;
}

.icao-badge-aviation {
  display: inline-block;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1d4ed8 100%);
  color: white;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.2rem;          /* Slightly smaller to fit more text */
  padding: 12px 22px;         
  margin-left: 20px;
  margin-top: 10px;       
  border-radius: 12px;        /* Slightly more rounded */
  letter-spacing: 2px;        /* Less letter spacing for readability */
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 0 2px #fbbf24,
    0 4px 12px rgba(59, 130, 246, 0.4),
    0 0 20px rgba(251, 191, 36, 0.6),
    0 0 40px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid #fbbf24;
  position: relative;
  transition: all 0.3s ease;
  animation: aviation-glow 3s ease-in-out infinite alternate;
  text-align: center;
  line-height: 1.3;
}

/* Style for ICAO code inside badge */
.icao-code {
  display: block;
  font-size: 24px;        /* was 1.4rem */
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 2px;
}

/* Style for airport name inside badge */
.airport-name {
  display: block;
  font-size: 14px;        /* was 0.75rem */
  font-weight: normal;
  letter-spacing: 1px;
  opacity: 0.9;
  text-transform: uppercase;
}

.city-region-style {
  font-size: 18px;
  font-weight: 600;
  color: #fbbf24;           /* Yellow to match badge accent */
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-style: italic;
}

.icao-badge-aviation::after {
  content: '✈';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fbbf24;
  color: #1e40af;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 
    0 0 10px rgba(251, 191, 36, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

.icao-badge-aviation:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 2px #fbbf24,
    0 6px 16px rgba(59, 130, 246, 0.5),
    0 0 30px rgba(251, 191, 36, 0.8),
    0 0 50px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes aviation-glow {
  from {
    box-shadow: 
      0 0 0 2px #fbbf24,
      0 4px 12px rgba(59, 130, 246, 0.4),
      0 0 20px rgba(251, 191, 36, 0.6),
      0 0 40px rgba(59, 130, 246, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  to {
    box-shadow: 
      0 0 0 2px #fbbf24,
      0 4px 16px rgba(59, 130, 246, 0.6),
      0 0 30px rgba(251, 191, 36, 0.8),
      0 0 60px rgba(59, 130, 246, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* ================================================================================================
   🔐 PROFESSIONAL AUTHENTICATION MODAL
   Weather Dashboard Login/Signup Interface - Glass Morphism Design
   Matches main dashboard aesthetic with atmospheric effects and brand consistency
   ================================================================================================ */

/* Main Modal Overlay */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(15, 32, 39, 0.95) 0%,
    rgba(32, 58, 67, 0.95) 50%,
    rgba(44, 83, 100, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal.show {
  opacity: 1;
  visibility: visible;
}

/* Animated Background Stars */
.login-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(1px 1px at 25px 5px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 50px 25px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 125px 20px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 50px 75px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 15px 125px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2.5px 2.5px at 110px 80px, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200px 200px;
  animation: twinkle 8s ease-in-out infinite alternate;
  z-index: 0;
  opacity: 0.3;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Main Modal Content Container */
.login-content {
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 480px;
  margin: 1rem;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.login-modal.show .login-content {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.login-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-metaraqua) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.025em;
  text-shadow: 0 0 30px rgba(2, 170, 252, 0.3);
}

.login-header .subtitle {
  color: #9ca3af;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Form Container */
.auth-form {
  transition: all 0.3s ease;
}

.auth-form h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 0.5rem 0;
  text-align: center;
  letter-spacing: -0.025em;
}

.form-description {
  color: #9ca3af;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Input Groups */
.input-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.input-group label {
  display: block;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.input-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(17, 24, 39, 0.8);
  border: 2px solid rgba(75, 85, 99, 0.6);
  border-radius: 12px;
  font-size: 1rem;
  color: #f9fafb;
  transition: all 0.3s ease;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.input-group input::placeholder {
  color: #6b7280;
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-metaraqua);
  background: rgba(17, 24, 39, 0.95);
  box-shadow: 
    0 0 0 3px rgba(2, 170, 252, 0.1),
    0 0 20px rgba(2, 170, 252, 0.2);
  transform: translateY(-1px);
}

.input-group input.error {
  border-color: #ef4444;
  box-shadow: 
    0 0 0 3px rgba(239, 68, 68, 0.1),
    0 0 20px rgba(239, 68, 68, 0.2);
}

.input-help {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  font-style: italic;
}

/* Authentication Buttons */
.auth-button {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}

.auth-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.auth-button:hover::before {
  left: 100%;
}

.auth-button.primary {
  background: linear-gradient(135deg, var(--color-metaraqua) 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 
    0 8px 25px rgba(2, 170, 252, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.auth-button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 35px rgba(2, 170, 252, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(2, 170, 252, 0.3);
}

.auth-button.secondary {
  background: rgba(75, 85, 99, 0.3);
  color: #d1d5db;
  border: 2px solid rgba(75, 85, 99, 0.6);
  backdrop-filter: blur(10px);
}

.auth-button.secondary:hover:not(:disabled) {
  background: rgba(75, 85, 99, 0.5);
  border-color: var(--color-metaraqua);
  color: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.button-loader {
  display: none;
  font-size: 1.1rem;
}

.auth-button.loading .button-text {
  display: none;
}

.auth-button.loading .button-loader {
  display: inline;
}

/* Form Divider */
.auth-divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(75, 85, 99, 0.8) 20%, 
    rgba(75, 85, 99, 0.8) 80%, 
    transparent
  );
}

.auth-divider span {
  background: rgba(31, 41, 55, 0.95);
  padding: 0 1.5rem;
  color: #9ca3af;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Message Display */
.error-message, .success-message {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  margin: 1.5rem 0;
  display: none;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.error-message {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.success-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.error-message.show, .success-message.show {
  display: block;
  animation: slideInMessage 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInMessage {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trial Information */
.trial-info {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.trial-info small {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 640px) {
  .login-content {
    padding: 2rem 1.5rem;
    margin: 0.5rem;
    border-radius: 20px;
  }
  
  .login-header h2 {
    font-size: 1.875rem;
  }
  
  .auth-form h3 {
    font-size: 1.5rem;
  }
  
  .input-group input, .auth-button {
    padding: 0.875rem 1rem;
  }
}

/* Loading State Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.auth-button.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Focus Accessibility */
.auth-button:focus-visible {
  outline: 2px solid var(--color-metaraqua);
  outline-offset: 2px;
}

.input-group input:focus-visible {
  outline: 2px solid var(--color-metaraqua);
  outline-offset: 2px;
}

/* ================================================================================================
   🚪 COMPACT LOGOUT BUTTON
   Fits within existing binge-branding layout
   ================================================================================================ */

.logout-button {
  padding: 0.5rem 0.875rem;
  background: rgba(75, 85, 99, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(156, 163, 175, 0.3);
  border-radius: 6px;
  color: #d1d5db;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.75rem;
}

.logout-button:hover {
  background: rgba(107, 114, 128, 0.3);
  border-color: rgba(156, 163, 175, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.logout-button:active {
  transform: translateY(0);
}

/* ================================================================================================
   🔑 FORGOT PASSWORD LINK
   ================================================================================================ */

.forgot-password-link {
  background: none;
  border: none;
  color: var(--color-metaraqua);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  transition: all 0.2s ease;
  padding: 0.5rem;
}

.forgot-password-link:hover {
  color: #60a5fa;
  text-decoration: none;
}

/* ================================================================================================
   🔑 ML CHART CHECKBOX STYLE
   ================================================================================================ */
.ml-chart-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #6b7280;
  border-radius: 3px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}

.ml-chart-checkbox:hover {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.1);
}

.ml-chart-checkbox:checked {
  background-color: #22d3ee;
  border-color: #22d3ee;
}

.ml-chart-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 1px;
  color: #1f2937;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.ml-chart-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

/* Ensure checkbox and label alignment */
.ml-chart-checkbox + p {
  margin: 0;
  user-select: none;
}

/* Confidence badge adjustments for checkbox layout */
.confidence-badge {
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.confidence-badge.bg-green-500 {
  background-color: #22c55e !important;
}

.confidence-badge.bg-blue-500 {
  background-color: #3b82f6 !important;
}

.confidence-badge.bg-yellow-500 {
  background-color: #f59e0b !important;
}

.confidence-badge.bg-orange-500 {
  background-color: #f97316 !important;
}

.confidence-badge.bg-red-500 {
  background-color: #ef4444 !important;
}

.confidence-badge.bg-gray-500 {
  background-color: #6b7280 !important;
}

/* ================================
   ⚡ ML STATION BADGE - NEURAL NETWORK STYLE (NO ICON)
   ================================ */

.icao-badge-ml {
  display: inline-block;
  /* Neural network dark slate background */
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: white;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 12px 22px;         
  margin-left: 20px;
  margin-top: 10px;       
  border-radius: 12px;
  letter-spacing: 2px;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 8px rgba(0, 255, 255, 0.4);
  box-shadow: 
    0 0 0 2px #00ffff,  /* Electric cyan border */
    0 4px 12px rgba(0, 255, 255, 0.3),
    0 0 20px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(0, 255, 255, 0.2),
    inset 0 1px 0 rgba(0, 255, 255, 0.1);
  border: 2px solid #00ffff;  /* Bright cyan accent */
  position: relative;
  transition: all 0.3s ease;
  animation: neural-pulse 3s ease-in-out infinite alternate;
  text-align: center;
  line-height: 1.3;
}

/* Neural badge hover effect */
.icao-badge-ml:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 2px #00ffff,
    0 6px 16px rgba(0, 255, 255, 0.4),
    0 0 30px rgba(0, 255, 255, 0.7),
    0 0 50px rgba(0, 255, 255, 0.3),
    inset 0 1px 0 rgba(0, 255, 255, 0.2);
}

/* Neural network pulse animation */
@keyframes neural-pulse {
  from {
    box-shadow: 
      0 0 0 2px #00ffff,
      0 4px 12px rgba(0, 255, 255, 0.3),
      0 0 20px rgba(0, 255, 255, 0.5),
      0 0 40px rgba(0, 255, 255, 0.2),
      inset 0 1px 0 rgba(0, 255, 255, 0.1);
  }
  to {
    box-shadow: 
      0 0 0 2px #00ffff,
      0 4px 16px rgba(0, 255, 255, 0.5),
      0 0 30px rgba(0, 255, 255, 0.7),
      0 0 60px rgba(0, 255, 255, 0.4),
      inset 0 1px 0 rgba(0, 255, 255, 0.2);
  }
}


/* ================================
   🏙️ ML CITY REGION STYLE - CYAN THEME
   ================================ */

.city-region-style-ml {
  font-size: 18px;
  font-weight: 600;
  color: #00ffff;           /* Electric cyan to match neural badge */
  letter-spacing: 0.5px;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 6px rgba(0, 255, 255, 0.3);  /* Subtle cyan glow */
  font-style: italic;
  transition: all 0.3s ease;
}

/* ================================
   🚀 V2.0 STATION BADGE - GRAY BACKGROUND WITH ORANGE/AMBER ACCENTS
   ================================ */
.icao-badge-v2 {
  display: inline-block;
  /* Same gray gradient as ML legacy */
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: white;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 12px 22px;         
  margin-left: 20px;
  margin-top: 10px;       
  border-radius: 12px;
  letter-spacing: 2px;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 8px rgba(245, 158, 11, 0.4);  /* Orange/amber glow */
  box-shadow: 
    0 0 0 2px #f59e0b,  /* Bright amber border */
    0 4px 12px rgba(245, 158, 11, 0.3),
    0 0 20px rgba(245, 158, 11, 0.5),
    0 0 40px rgba(245, 158, 11, 0.2),
    inset 0 1px 0 rgba(245, 158, 11, 0.1);
  border: 2px solid #f59e0b;  /* Bright amber accent */
  position: relative;
  transition: all 0.3s ease;
  animation: fusion-pulse-v2 3s ease-in-out infinite alternate;
  text-align: center;
  line-height: 1.3;
}

/* V2.0 badge hover effect */
.icao-badge-v2:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 2px #f59e0b,
    0 6px 16px rgba(245, 158, 11, 0.4),
    0 0 30px rgba(245, 158, 11, 0.7),
    0 0 50px rgba(245, 158, 11, 0.3),
    inset 0 1px 0 rgba(245, 158, 11, 0.2);
}

/* V2.0 fusion pulse animation */
@keyframes fusion-pulse-v2 {
  from {
    box-shadow: 
      0 0 0 2px #f59e0b,
      0 4px 12px rgba(245, 158, 11, 0.3),
      0 0 20px rgba(245, 158, 11, 0.5),
      0 0 40px rgba(245, 158, 11, 0.2),
      inset 0 1px 0 rgba(245, 158, 11, 0.1);
  }
  to {
    box-shadow: 
      0 0 0 2px #f59e0b,
      0 4px 16px rgba(245, 158, 11, 0.5),
      0 0 30px rgba(245, 158, 11, 0.7),
      0 0 60px rgba(245, 158, 11, 0.4),
      inset 0 1px 0 rgba(245, 158, 11, 0.2);
  }
}

/* ================================
   🚀 V2.0 CITY REGION STYLE - ORANGE/AMBER THEME
   ================================ */
.city-region-style-v2 {
  font-size: 18px;
  font-weight: 600;
  color: #f59e0b;           /* Bright amber to match v2.0 accents */
  letter-spacing: 0.5px;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 6px rgba(245, 158, 11, 0.3);  /* Subtle amber glow */
  font-style: italic;
  transition: all 0.3s ease;
}

/* ================================================================================================
   FLIGHT CATEGORY BADGES (ML TAB)
   ================================================================================================ */
.flight-category-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  min-width: 40px;
}

.flight-category-vfr { background-color: #00ff00; color: #000; }
.flight-category-mvfr { background-color: #60a5fa; color: #fff; }
.flight-category-ifr { background-color: #ff0000; color: #fff; }
.flight-category-lifr { background-color: #ff00ff; color: #fff; }

/* Ceiling change indicators */
.ceiling-change-warning {
  background-color: #fbbf24;
  color: #000;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
}

.ceiling-improving {
  background-color: #10b981;
  color: #fff;
}

.ceiling-degrading {
  background-color: #ef4444;
  color: #fff;
}

/* ================================================================================================
   TIME HORIZON SELECTOR STYLE
   ================================================================================================ */
.time-horizon-btn {
  background: #374151;
  color: #d1d5db;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #6b7280;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 50px;
  text-align: center;
}

.time-horizon-btn:hover {
  background: #4b5563;
  border-color: #9ca3af;
  color: #f9fafb;
}

.time-horizon-btn.active {
  background: #1e40af;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* ================================================================================================
   🌤️ ML FORECAST CARDS STYLING
   Extracted from JavaScript for better performance and maintainability
   ================================================================================================ */

/* Main forecast cards container - FORCE HORIZONTAL */
#mlForecastCards {
  display: flex !important;
  flex-direction: row !important;
  gap: 1.25rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  padding: 1.5rem !important;
  min-height: 320px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Force horizontal layout with high specificity */
.forecast-cards-container,
#mlForecastCards.forecast-cards-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

/* Individual forecast card - BIGGER but HORIZONTAL */
.forecast-card {
  background: rgba(55, 65, 81, 0.9) !important;
  border-radius: 1rem !important;
  padding: 1.75rem !important;
  min-width: 180px !important;
  max-width: 200px !important;
  width: 180px !important;
  text-align: center !important;
  border: 2px solid transparent !important;
  transition: all 0.2s ease !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
  height: 280px !important;
  color: white !important;
  cursor: pointer !important;
  position: relative !important;
  vertical-align: top !important;
}

/* Ensure cards stay in row */
#mlForecastCards > .forecast-card {
  display: inline-flex !important;
  vertical-align: top !important;
}

/* Current conditions card (special styling) */
.forecast-card.current {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.2) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
}

/* Hover effects */
.forecast-card:not(.current):hover {
  border-color: #60a5fa;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Time labels - BIGGER */
.forecast-card .forecast-time {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #9ca3af !important;
}

.forecast-card.current .forecast-time {
  color: #34d399 !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
}

/* Icon containers - BIGGER */
.forecast-card .forecast-icon {
  margin-bottom: 0.75rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 80px !important;
  overflow: hidden !important;
}

.forecast-card .forecast-icon img,
.forecast-card .forecast-icon svg {
  width: 70px !important;
  height: 70px !important;
  object-fit: contain !important;
  max-width: 70px !important;
  max-height: 70px !important;
}

/* Temperature display - BIGGER */
.forecast-card .forecast-temp {
  color: white !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Temperature change */
.forecast-card .temp-change {
  font-size: 1rem !important;
  color: #22d3ee !important;
  margin-left: 6px !important;
  font-weight: 600 !important;
}

/* Details section - BIGGER */
.forecast-card .forecast-details {
  color: #d1d5db !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  margin-top: auto !important;
}

.forecast-card .forecast-details div:not(:last-child) {
  margin-bottom: 0.375rem !important;
}

/* Flight category - MORE PROMINENT */
.forecast-card .forecast-category {
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  margin-bottom: 0.25rem !important;
}

/* Wind, visibility, ceiling - BIGGER */
.forecast-card .forecast-wind,
.forecast-card .forecast-vis,
.forecast-card .forecast-ceiling {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

/* Confidence badges */
.forecast-card .forecast-confidence {
  font-size: 0.6rem !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
  margin-left: 4px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.1 !important;
}

/* Horizon indicators */
.forecast-card.future.horizon-1h { 
  border-left: 4px solid #10b981; 
}
.forecast-card.future.horizon-2h { 
  border-left: 4px solid #3b82f6; 
}
.forecast-card.future.horizon-3h { 
  border-left: 4px solid #8b5cf6; 
}

/* Scrollbar styling - BIGGER */
#mlForecastCards::-webkit-scrollbar {
  height: 8px !important;
}

#mlForecastCards::-webkit-scrollbar-track {
  background: rgba(55, 65, 81, 0.3);
  border-radius: 4px;
}

#mlForecastCards::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.6);
  border-radius: 4px;
}

#mlForecastCards::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.8);
}

/* Tablet responsive */
@media (max-width: 1024px) {
  #mlForecastCards {
    gap: 1rem !important;
    padding: 1rem !important;
  }
  
  .forecast-card {
    min-width: 160px !important;
    max-width: 180px !important;
    width: 160px !important;
    height: 260px !important;
    padding: 1.5rem !important;
  }
  
  .forecast-card .forecast-icon {
    height: 70px !important;
  }
  
  .forecast-card .forecast-icon img,
  .forecast-card .forecast-icon svg {
    width: 60px !important;
    height: 60px !important;
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  #mlForecastCards {
    gap: 0.75rem !important;
    padding: 0.5rem !important;
    min-height: 220px !important;
  }
  
  .forecast-card {
    min-width: 120px !important;
    max-width: 140px !important;
    width: 120px !important;
    height: 180px !important;
    padding: 1rem !important;
  }
  
  .forecast-card .forecast-temp {
    font-size: 1.25rem !important;
  }
  
  .forecast-card .forecast-icon {
    height: 50px !important;
  }
  
  .forecast-card .forecast-icon img,
  .forecast-card .forecast-icon svg {
    width: 45px !important;
    height: 45px !important;
  }
  
  .forecast-card .forecast-details {
    font-size: 0.7rem !important;
  }
}

/* Flight category colors */
.forecast-category.vfr { 
  background-color: rgba(16, 185, 129, 0.2);
  color: #10b981; 
  font-weight: bold; 
}
.forecast-category.mvfr { 
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa; 
  font-weight: bold; 
}
.forecast-category.ifr { 
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444; 
  font-weight: bold; 
}
.forecast-category.lifr { 
  background-color: rgba(249, 115, 22, 0.2);
  color: #ff00ff; 
  font-weight: bold; 
}

/* ================================================================================================
   ✅ ENHANCED FORECAST CARDS FOR v1.2 (PURE CSS)
   ================================================================================================ */

/* Enhanced forecast cards for v1.2 */
.forecast-cards-container.v12-enhanced .forecast-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-confidence.high { 
  background: #10b981; 
  color: white; 
}
.forecast-confidence.good { 
  background: #3b82f6; 
  color: white; 
}
.forecast-confidence.moderate { 
  background: #f59e0b; 
  color: white; 
}
.forecast-confidence.low { 
  background: #ef4444; 
  color: white; 
}
.forecast-confidence.poor { 
  background: #f97316; 
  color: white; 
}

.forecast-trend {
  margin-top: 4px;
  font-size: 0.8rem;
}

.trend-up { 
  color: #10b981; 
}
.trend-down { 
  color: #ef4444; 
}

.trend-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  z-index: 1000;
  transform: translateX(-50%);
  pointer-events: none;
}

.v12-card-entrance {
  animation: slideInUp 0.4s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================================================
   🚀 v2.0 FORECAST CARDS STYLING - Two Row Layout
   Add this to your existing CSS file
   ================================================================================================ */

/* v2.0 forecast cards container - TWO ROW GRID LAYOUT */
#v2ForecastCards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  grid-template-rows: repeat(2, 1fr) !important;
  gap: 1rem !important;
  padding: 1.5rem !important;
  min-height: 600px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

/* Alternative: Fixed columns approach for more control */
#v2ForecastCards.fixed-columns {
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: repeat(2, 1fr) !important;
}

/* Force two-row layout for v2.0 cards */
#v2ForecastCards.forecast-cards-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  grid-template-rows: repeat(2, 1fr) !important;
}

/* Current card spans first position */
#v2ForecastCards .forecast-card.current {
  grid-column: 1;
  grid-row: 1;
}

/* Future cards auto-flow in grid */
#v2ForecastCards .forecast-card.future {
  min-height: 250px !important;
  max-height: 280px !important;
}

/* v2.0 cards inherit all forecast-card styles but with extended horizon colors */
#v2ForecastCards .forecast-card.future.horizon-1h { 
  border-left: 4px solid #10b981; 
}
#v2ForecastCards .forecast-card.future.horizon-2h { 
  border-left: 4px solid #3b82f6; 
}
#v2ForecastCards .forecast-card.future.horizon-3h { 
  border-left: 4px solid #8b5cf6; 
}
#v2ForecastCards .forecast-card.future.horizon-6h { 
  border-left: 4px solid #f59e0b; 
}
#v2ForecastCards .forecast-card.future.horizon-9h { 
  border-left: 4px solid #ef4444; 
}
#v2ForecastCards .forecast-card.future.horizon-12h { 
  border-left: 4px solid #f97316; 
}

/* Tablet responsive - adjust grid */
@media (max-width: 1024px) {
  #v2ForecastCards {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    min-height: 750px !important;
  }
}

/* Mobile responsive - single column */
@media (max-width: 640px) {
  #v2ForecastCards {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
    padding: 0.5rem !important;
    min-height: 800px !important;
  }
  
  #v2ForecastCards .forecast-card {
    min-height: 180px !important;
    max-height: 200px !important;
  }
}



/* ================================================================================================
   📊 ANALYTICS SECTION CSS - PROPER COLORS (NO TAILWIND)
   ================================================================================================ */

/* Analytics Toggle Button */
.analytics-toggle-btn {
  background: #374151;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #6b7280;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.analytics-toggle-btn:hover {
  background: #4b5563;
}

.analytics-toggle-btn.active {
  background: #1e40af;
  border-color: #3b82f6;
}

/* Analytics Cards */
.analytics-card {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #6b7280;
  transition: all 0.2s ease;
}

.analytics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #9ca3af;
}

/* Card Headers */
.analytics-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.analytics-card-title {
  color: white;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.analytics-card-subtitle {
  color: #9ca3af;
  font-size: 12px;
  margin: 0;
}

/* Card Stats */
.analytics-card-stats {
  margin-bottom: 16px;
}

.analytics-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-label {
  color: #9ca3af;
}

.stat-value {
  color: white;
  font-weight: 600;
}

/* Button Rows */
.analytics-button-row {
  display: flex;
  gap: 8px;
}

/* Analytics Buttons - Custom Colors */
.analytics-button {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

.analytics-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: white;
}

/* Specific Button Colors */
.temperature-button {
  background: #2563eb; /* Blue */
}
.temperature-button:hover {
  background: #1d4ed8;
}

.wind-button {
  background: #059669; /* Green */
}
.wind-button:hover {
  background: #047857;
}

.compare-button {
  background: #7c3aed; /* Purple */
}
.compare-button:hover {
  background: #6d28d9;
}

.deepdive-button {
  background: #4f46e5; /* Indigo */
}
.deepdive-button:hover {
  background: #4338ca;
}

.monitoring-button {
  background: #ea580c; /* Orange */
}
.monitoring-button:hover {
  background: #dc2626;
}

.archive-button {
  background: #eab308; /* Yellow */
}
.archive-button:hover {
  background: #ca8a04;
}

.climate-button {
  background: #0d9488; /* Teal */
}
.climate-button:hover {
  background: #0f766e;
}

.horizon-button {
  background: #0891b2; /* Cyan */
}
.horizon-button:hover {
  background: #0e7490;
}

/* Section Dividers */
.analytics-section-divider {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #6b7280;
}

.analytics-section-title {
  color: white;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

/* Heatmap Grid */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.heatmap-tile {
  background: #4b5563;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  color: white;
  border: 1px solid #6b7280;
}

.heatmap-tile:hover {
  background: #6b7280;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: white;
}

.heatmap-icon {
  font-size: 18px;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.heatmap-tile:hover .heatmap-icon {
  transform: scale(1.1);
}

.heatmap-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.heatmap-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

/* Insights Container */
.insights-container {
  background: #4b5563;
  border-radius: 8px;
  padding: 16px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.insight-stat {
  text-align: center;
}

.insight-number {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}

.insight-number {
  color: #34d399; /* Green for 404+ */
}

.insight-stat:nth-child(2) .insight-number {
  color: #60a5fa; /* Blue for 5,175+ */
}

.insight-stat:nth-child(3) .insight-number {
  color: #a78bfa; /* Purple for 3 */
}

.insight-label {
  color: #d1d5db;
  font-size: 14px;
  margin-bottom: 2px;
}

.insight-subtitle {
  color: #9ca3af;
  font-size: 12px;
}

.insights-footer {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid #6b7280;
  color: #9ca3af;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .analytics-card {
    padding: 12px;
  }
  
  .analytics-button {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .analytics-button-row {
    flex-direction: column;
  }
  
  .heatmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ================================================================================================
                            v2.0 Specific Styles
 ================================================================================================*/
.v2-forecast-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.v2-horizon-btn {
  background: #374151;
  color: white;
  border: 1px solid #6b7280;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v2-horizon-btn:hover {
  background: #4b5563;
  border-color: #9ca3af;
}

.v2-horizon-btn.active {
  background: #3b82f6;
  border-color: #60a5fa;
  color: white;
}

.v2-chart-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Extended forecast cards for v2.0 */
.v2-forecast-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v2-forecast-card.current {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.v2-forecast-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 8px;
}

.v2-forecast-icon {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.v2-forecast-temp {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
}

.v2-forecast-details {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.3;
}

.v2-forecast-model {
  font-size: 9px;
  color: #64748b;
  margin-top: 4px;
  padding: 2px 6px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 4px;
}
