
    .input-field {
      @apply border border-slate-300 dark:border-slate-600 rounded-lg p-2 text-sm bg-transparent focus:outline-none focus:ring-2 focus:ring-indigo-400;
    }

    .btn-accent {
      @apply bg-indigo-600 text-white rounded-lg px-3 py-1 text-sm hover:bg-indigo-700 transition;
    }


    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      transition: top 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .header-scrolled {
      background-color: rgba(248, 250, 252, 0.85);
      backdrop-filter: blur(15px);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Daily forecast expand/collapse */
    .forecast-card-expand {
      max-height: 500px;
      opacity: 1;
      transition: max-height 0.6s ease-in-out, opacity 0.4s ease-in-out, padding 0.6s ease-in-out;
      padding-top: 1rem;
      padding-bottom: 1rem;
      overflow: hidden;
      border-top: 1px solid #e2e8f0;
    }

    .forecast-card-collapse {
      max-height: 0;
      opacity: 0;
      transition: max-height 0.6s ease-in-out, opacity 0.4s ease-in-out, padding 0.6s ease-in-out;
      padding-top: 0;
      padding-bottom: 0;
      overflow: hidden;
      border-top: none;
    }

    .hourly-scroll-container::-webkit-scrollbar {
      height: 6px;
    }

    .hourly-scroll-container::-webkit-scrollbar-track {
      background: #e2e8f0;
      border-radius: 10px;
    }

    .hourly-scroll-container::-webkit-scrollbar-thumb {
      background: #64748B;
      border-radius: 10px;
    }

    /* Sun Position Bar - REMOVED SVG styles */

    .map-layer-btn,
    .almanac-nav-btn {
      transition: all 0.2s ease-in-out;
    }

    .map-layer-btn.active,
    .almanac-nav-btn.active {
      background-color: #312E81;
      color: white;
      border-color: #312E81;
    }

    .tab-btn {
      transition: all 0.2s ease-in-out;
    }

    .tab-btn.active {
      background-color: #312E81;
      color: white;
    }

    .indicator-triangle {
      width: 0;
      height: 0;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-bottom: 8px solid #1E293B;
    }

    .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
    }

    /* New Forecast Design Styles */
    .forecast-tab {
      transition: all 0.2s ease;
      border-bottom: 3px solid transparent;
    }
    
    .forecast-tab.active {
      border-color: #312E81;
      color: #312E81;
      font-weight: 600;
    }

    .forecast-card {
      transition: all 0.2s ease;
    }

    .forecast-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    .compact-day-card {
      transition: all 0.2s ease;
    }

    .compact-day-card:hover {
      background-color: #F1F5F9;
      transform: scale(1.02);
    }

    .card-details {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
      opacity: 0;
    }

    .card-details.expanded {
      max-height: 500px;
      opacity: 1;
    }

    .expand-icon {
      transition: transform 0.3s ease;
    }

    .expand-icon.rotated {
      transform: rotate(180deg);
    }

    .detail-badge {
      background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    }

    .weather-icon-lg {
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    /* Education expandable panels */
    .edu-panel {
      background: #fff;
      border-radius: 1rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
      margin-bottom: 1rem;
    }

    .edu-toggle {
      width: 100%;
      text-align: left;
      font-weight: 600;
      padding: 1rem 1.25rem;
      font-family: 'Lora', serif;
      color: #312E81;
      cursor: pointer;
      border-bottom: 1px solid #E2E8F0;
      transition: background .3s ease;
    }

    .edu-toggle:hover {
      background: #F1F5F9;
    }

    .edu-content {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: all .5s ease;
      padding: 0 1.25rem;
    }

    .edu-panel.active .edu-content {
      max-height: 2000px;
      opacity: 1;
      padding: 1rem 1.25rem;
    }

    .edu-panel.active .edu-toggle {
      background: #EEF2FF;
    }

    /* ========================================
       ALERT BANNER & STICKY HEADER STACKING
       ======================================== */
    
    /* Alert banner - always sticky at top */
    #alert-banner {
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }
    
    /* Desktop menu positioning - adjusts when alert is visible */
    .desktop-menu {
      position: sticky;
      top: 72px; /* Default position - below header */
      z-index: 40;
      transition: top 0.3s ease;
    }
    
    /* When alert banner is visible, push header and menu down */
    body.alert-visible .header {
      top: 40px; /* Height of alert banner */
    }
    
    body.alert-visible .desktop-menu {
      top: 112px; /* 40px alert + 72px header */
    }

    /* ========================================
       MOBILE & DESKTOP MENU ACTIVE STATES
       ======================================== */
    
    /* Active mobile menu item styling */
    .mobile-menu-item.active {
      background: linear-gradient(135deg, #312E81 0%, #4338CA 100%);
      color: white;
    }
    
    /* Mobile menu drawer slide animation */
    #mobile-menu-drawer.open {
      transform: translateX(0);
    }
    
    /* Desktop menu active item */
    .menu-item.active {
      color: white !important;
      position: relative;
    }
    
    .menu-item.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80%;
      height: 3px;
      background: white;
      border-radius: 2px 2px 0 0;
    }



    :root {
      --from: #87CEFA;
      --to: #FDE68A;
      --alert-yellow: #FFE923;
    }

    body {
      /* Default soft sky gradient — ensures no grey flash before JS runs */
      background: linear-gradient(to bottom, var(--from, #cce3f9), var(--to, #f0f4f8));
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      transition: background 1.5s ease-in-out, color 0.5s ease-in-out;
    }

    main {
      flex-grow: 1;
      /* Allow main content to take available space */
    }

    footer {
      background-color: rgba(248, 250, 252, 0.85);
      /* Slightly transparent light background */
      backdrop-filter: blur(5px);
      border-top: 1px solid #e2e8f0;
      /* Light border */
    }


    /* Interactive Education animations */
    .quiz-option {
      transition: background-color .25s ease;
    }

    .quiz-feedback {
      transition: all .25s ease;
      opacity: 0;
    }

    .quiz-feedback.visible {
      opacity: 1;
      transform: translateY(-2px);
    }

    .copy-fact.copied {
      transform: translateY(-2px);
    }


    /* Accessibility & UX polish */
    :focus-visible {
      outline: 2px solid #6366F1;
      outline-offset: 3px;
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    }

    .quiz-option,
    .copy-fact,
    .edu-toggle,
    .tab-btn,
    .map-layer-btn,
    footer a {
      min-width: 44px;
      /* A bit generous for footer links, but good for touch */
      min-height: 44px;
      /* Ensure touch targets are large enough */
      transition: color .25s ease;
      /* Transition color for footer links */
      display: inline-flex;
      /* Helps with alignment if needed */
      align-items: center;
      /* Vertically center text in the min-height */
      justify-content: center;
      /* Center text if link is just an icon */
    }

    footer a:hover {
      text-decoration: underline;
      color: #312E81;
      /* primary-indigo */
    }

    /* Adjust footer link padding for smaller height */
    footer nav a {
      min-height: auto;
      /* Override default min-height */
      padding-top: 0.5rem;
      /* Add some padding */
      padding-bottom: 0.5rem;
    }


    @media (prefers-reduced-motion: reduce) {
      * {
        transition: none !important;
        animation-duration: 0s !important;
      }
    }

    .bg-yellow-400 {
      background-color: #f59e0b !important;
    }

    .bg-orange-500 {
      background-color: #ea580c !important;
    }

    /* --- Scrollbar Fix and Styling (v9.0.scrollfix) --- */
    .hourly-scroll-container {
      scrollbar-width: thin;
      /* Firefox */
      scrollbar-color: #64748B #e2e8f0;
      /* thumb / track */
    }

    /* Chrome / Edge / Safari */
    .hourly-scroll-container::-webkit-scrollbar {
      height: 6px;
    }

    .hourly-scroll-container::-webkit-scrollbar-track {
      background: #e2e8f0;
      border-radius: 4px;
    }

    .hourly-scroll-container::-webkit-scrollbar-thumb {
      background-color: #64748B;
      border-radius: 4px;
    }


    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(-2px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .animate-fadeIn {
      animation: fadeIn 0.25s ease-out;
    }

    .lifted {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
      filter: brightness(1.03);
      transition: all 0.25s ease-in-out;
    }

    /* Mobile horizontal cards */
    #daily-forecast-scroll::-webkit-scrollbar {
      height: 6px;
    }

    #daily-forecast-scroll::-webkit-scrollbar-thumb {
      background: rgba(100, 100, 100, 0.3);
      border-radius: 3px;
    }

    #daily-forecast-scroll {
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scroll-padding-left: 0.75rem;
    }

    /* Extra utility for 3D flip */
    .rotate-y-180 {
      transform: rotateY(180deg);
    }

    button:disabled,
    input:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    * {
      backface-visibility: hidden;
      -webkit-font-smoothing: antialiased;
    }

    /* ==========================================================================
   Education Section — Unified Card Styles
   Add to css/main.css

   Replaces the per-element Tailwind classes on .edu-nav and .edu-card
   with a consistent style matching the glossary Word Bank cards.

   .edu-nav  = Learning path hub tiles (6 cards on home screen)
   .edu-card = Topic cards within each module
   ========================================================================== */


/* ── Base: both types share the same card shell ───────────────────────────── */
.edu-nav,
.edu-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;           /* slate-200 */
  border-left-width: 4px;
  border-radius: 0.75rem;              /* rounded-xl */
  padding: 1rem;                       /* p-4 */
  text-align: left;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06);
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
  width: 100%;
  display: block;
  cursor: pointer;
}

.edu-nav:hover,
.edu-card:hover {
  background-color: #f8fafc;           /* slate-50 */
  box-shadow: 0 4px 12px 0 rgb(0 0 0 / 0.09);
}

.edu-nav:active,
.edu-card:active {
  background-color: #f1f5f9;           /* slate-100 */
}

.edu-nav:focus-visible,
.edu-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(67 56 202 / 0.25); /* indigo ring */
}


/* ── Learning path tiles — one accent colour per tile ────────────────────── */
/* nth-child matches the 6 tiles in DOM order. No HTML changes needed.       */

.edu-nav:nth-child(1) { border-left-color: #7dd3fc; } /* sky-300     Forecast */
.edu-nav:nth-child(2) { border-left-color: #6ee7b7; } /* emerald-300 Local    */
.edu-nav:nth-child(3) { border-left-color: #fcd34d; } /* amber-300   Seasons  */
.edu-nav:nth-child(4) { border-left-color: #fca5a5; } /* rose-300    Severe   */
.edu-nav:nth-child(5) { border-left-color: #c4b5fd; } /* violet-300  Myths    */
.edu-nav:nth-child(6) { border-left-color: #86efac; } /* green-300   Schools  */


/* ── Module topic cards — accent matches their parent module ─────────────── */
/* Default (fallback) */
.edu-card {
  border-left-color: #cbd5e1;          /* slate-300 */
}

#edu-module-forecast .edu-card { border-left-color: #7dd3fc; } /* sky-300     */
#edu-module-local    .edu-card { border-left-color: #6ee7b7; } /* emerald-300 */
#edu-module-seasons  .edu-card { border-left-color: #fcd34d; } /* amber-300   */
#edu-module-severe   .edu-card { border-left-color: #fca5a5; } /* rose-300    */
#edu-module-myths    .edu-card { border-left-color: #c4b5fd; } /* violet-300  */
#edu-module-schools  .edu-card { border-left-color: #86efac; } /* green-300   */


/* ── Callout / summary boxes inside modules ──────────────────────────────── */
/* The bg-slate-50 boxes currently look heavier than the cards around them.  */
/* This softens them to match.                                                */
.edu-module .bg-slate-50.border.border-slate-200 {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 0.75rem;
}


/* ── "Today on your forecast" fallback box ───────────────────────────────── */
#edu-today-fallback {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 0.75rem;
}


/* ── Module header card (white intro panel at top of each module) ─────────── */
/* Already bg-white rounded-2xl — just nudge shadow to be consistent        */
.edu-module > div.bg-white {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06);
}


/* ── Override the Tailwind bg-slate-50 hover on cards ───────────────────── */
/* The old .edu-card Tailwind classes set bg-slate-50 as base. The CSS above */
/* sets bg-white, but the inline Tailwind class will win on specificity.     */
/* This rule lifts our specificity to override it cleanly.                   */
button.edu-nav,
button.edu-card {
  background-color: #ffffff;
}

button.edu-nav:hover,
button.edu-card:hover {
  background-color: #f8fafc;
}
