/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-color: #05070f;
    --panel-bg: rgba(10, 15, 30, 0.65);
    --panel-bg-blue: rgba(0, 18, 51, 0.75); /* Airport Board Blue Glass */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow-cyan: rgba(0, 243, 255, 0.4);
    --border-glow-magenta: rgba(255, 0, 127, 0.4);
    
    /* Neon Colors */
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff007f;
    --neon-green: #39ff14;
    --neon-yellow: #fff200;
    --neon-orange: #ff9f00;
    --neon-blue: #0088ff;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'Orbitron', monospace;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: #e2e8f0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animated Background Orbs & Stars */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.15;
    z-index: -2;
    animation: starsMove 150s linear infinite;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--neon-cyan);
    animation: orbFloat 25s ease-in-out infinite alternate;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--neon-magenta);
    animation: orbFloat 35s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    top: 40%;
    left: 60%;
    width: 35vw;
    height: 35vw;
    background: var(--neon-blue);
    animation: orbFloat 30s ease-in-out infinite alternate;
}

/* Custom Styled Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* ==========================================================================
   GLASSMORPHISM UTILITIES
   ========================================================================== */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.neon-border-cyan {
    border-color: rgba(0, 243, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 10px rgba(0, 243, 255, 0.05);
}
.neon-border-cyan:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 243, 255, 0.25), inset 0 0 15px rgba(0, 243, 255, 0.1);
}

.neon-border-green {
    border-color: rgba(57, 255, 20, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 10px rgba(57, 255, 20, 0.05);
}
.neon-border-green:hover {
    border-color: var(--neon-green);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45), 0 0 15px rgba(57, 255, 20, 0.25), inset 0 0 15px rgba(57, 255, 20, 0.1);
}

.neon-border-orange {
    border-color: rgba(255, 159, 0, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 10px rgba(255, 159, 0, 0.05);
}
.neon-border-orange:hover {
    border-color: var(--neon-orange);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 159, 0, 0.25), inset 0 0 15px rgba(255, 159, 0, 0.1);
}

.neon-border-magenta {
    border-color: rgba(255, 0, 127, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 10px rgba(255, 0, 127, 0.05);
}
.neon-border-magenta:hover {
    border-color: var(--neon-magenta);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 0, 127, 0.25), inset 0 0 15px rgba(255, 0, 127, 0.1);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-container {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

/* ==========================================================================
   HEADER COMPONENT
   ========================================================================== */
.glass-header {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    background: rgba(0, 243, 255, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.25);
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
}

.brand-text .subtitle {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 3px;
    color: #718096;
    margin-top: -2px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #a0aec0;
    padding: 8px 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #000;
    background: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    font-weight: 700;
}

.nav-item.active i {
    color: #000;
}

.nav-item.nav-back {
    color: rgba(255, 255, 255, 0.45);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    margin-right: 4px;
    padding-right: 16px;
}

.nav-item.nav-back:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
}

/* Live FIDS link button */
.live-fids-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4ade80 !important;
    text-decoration: none !important;
    letter-spacing: 0.05em;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    margin-left: 8px;
}
.live-fids-link:hover {
    background: rgba(34, 197, 94, 0.28) !important;
    border-color: #22c55e !important;
    color: #86efac !important;
}
.live-fids-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: livePulse 1.5s ease-in-out infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Header Widgets */
.header-widgets {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

#geo-widget {
    cursor: pointer;
    transition: var(--transition-smooth);
}

#geo-widget:hover {
    background: rgba(0, 243, 255, 0.08);
    border-color: rgba(0, 243, 255, 0.3);
    color: var(--neon-cyan);
}

.clock-widget {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    min-width: 95px;
    justify-content: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.green {
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulseGlow 1.5s infinite;
}

.status-dot.orange {
    background-color: var(--neon-orange);
    box-shadow: 0 0 8px var(--neon-orange);
    animation: pulseGlow 1.5s infinite;
}

/* ==========================================================================
   STATS HERO BAR
   ========================================================================== */
.stats-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-card {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.cyan {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
}
.stat-icon.green {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
}
.stat-icon.orange {
    background: rgba(255, 159, 0, 0.1);
    color: var(--neon-orange);
}
.stat-icon.magenta {
    background: rgba(255, 0, 127, 0.1);
    color: var(--neon-magenta);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    margin-top: 2px;
}

/* ==========================================================================
   DASHBOARD GRID & SECTIONS
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    flex: 1;
    min-height: 580px;
}

/* ==========================================================================
   FIDS FLIGHT BOARD SECTION
   ========================================================================== */
.board-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.05);
}

.board-header {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    color: var(--neon-cyan);
    font-size: 1.3rem;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

.board-title-group h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.board-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Smart Combo Box styles */
.combo-box-container {
    position: relative;
    width: 220px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 35px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 0.85rem;
}

.search-input-wrapper .combo-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 0.75rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.combo-box-container.active .combo-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.combo-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-height: 250px;
    overflow-y: auto;
    z-index: 150;
    display: none;
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.combo-dropdown.show {
    display: block;
}

.combo-item {
    padding: 10px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.combo-item:hover {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
}

.combo-item span.code {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--neon-cyan);
}

/* Animated Glowing Search Bar */
.glow-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.glow-search-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.glow-search-wrapper input:focus {
    outline: none;
    border-color: transparent;
}

.glow-search-wrapper .glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    border: 1.5px solid transparent;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.glow-search-wrapper input:focus + .glow-border {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4), inset 0 0 8px rgba(0, 243, 255, 0.1);
}

/* Neon buttons */
.neon-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.neon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.neon-btn.btn-active {
    color: #000;
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.4);
    font-weight: 700;
}

/* FIDS Scrolling Board & Table Styling */
.fids-scroll-container {
    flex: 1;
    overflow-y: auto;
    background: var(--panel-bg-blue); /* Glowing Blue Terminal style */
    border-left: 1px solid rgba(0, 243, 255, 0.15);
    border-right: 1px solid rgba(0, 243, 255, 0.15);
    box-shadow: inset 0 0 30px rgba(0, 18, 51, 0.9);
}

.fids-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono); /* Retro board font */
    text-align: left;
}

.fids-table th {
    background: rgba(0, 10, 30, 0.9);
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #718096;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(0, 243, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.fids-table tbody tr {
    border-bottom: 1px solid rgba(0, 136, 255, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.fids-table tbody tr:hover {
    background: rgba(0, 243, 255, 0.08);
}

.fids-table tbody tr.selected-row-active {
    background: rgba(0, 243, 255, 0.15) !important;
    border-left: 3px solid var(--neon-cyan);
}

.fids-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    vertical-align: middle;
}

/* Row-specific styling (Matching Uploaded Image) */
.fids-table td:nth-child(1) { /* Time */
    color: var(--neon-cyan);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.4);
}

.fids-table td:nth-child(2) { /* Airline Group */
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: var(--font-primary);
}

.airline-badge {
    background: #fff;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 26px;
}

.airline-badge img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.fids-table td:nth-child(3) { /* Flight Code */
    color: #fff;
    background: rgba(0, 85, 255, 0.3);
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(0, 136, 255, 0.3);
}

.fids-table td:nth-child(4) { /* Code Share */
    color: var(--neon-yellow);
}

.fids-table td:nth-child(5) { /* Origin/Via */
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.fids-table td:nth-child(6) { /* Area */
    color: var(--neon-cyan);
    text-align: center;
}

/* Status colors and glows from image */
.status-cell {
    font-weight: 700;
}

.status-cell.baggage {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.status-cell.arrived {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.status-cell.expected {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(255, 242, 0, 0.4);
}

.status-cell.late {
    color: var(--neon-orange);
    text-shadow: 0 0 8px rgba(255, 159, 0, 0.4);
}

.status-cell.scheduled {
    color: #a0aec0;
}

.row-action-btn {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--neon-cyan);
    padding: 6px 12px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.row-action-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.fids-loading-row td {
    text-align: center;
    padding: 80px 0;
    font-family: var(--font-primary);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--neon-cyan);
}

.loading-spinner i {
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.board-footer {
    padding: 12px 20px;
    background: rgba(0, 10, 25, 0.9);
    border-top: 1px solid rgba(0, 243, 255, 0.15);
}

.footer-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.ticker-icon {
    color: var(--neon-cyan);
    animation: pulse 2s infinite;
}

.ticker-text {
    font-size: 0.8rem;
    color: #a0aec0;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

/* ==========================================================================
   RADAR & INTERACTIVE MAP SECTION
   ========================================================================== */
.map-section {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.05);
}

.map-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radar-sweep-icon {
    color: var(--neon-magenta);
    font-size: 1.3rem;
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
    animation: rotateSweep 4s linear infinite;
}

.map-title-group h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.map-controls {
    display: flex;
    gap: 8px;
}

.map-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.map-wrapper {
    flex: 1;
    position: relative;
}

#flight-map {
    width: 100%;
    height: 100%;
    background: #0d1117;
    z-index: 5;
}

/* Glowing Neon Map Customizations */
.leaflet-container {
    background: #0d1117 !important;
}

.leaflet-bar {
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-bar a {
    background: rgba(10, 15, 30, 0.85) !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
}

.leaflet-bar a:hover {
    background: var(--neon-cyan) !important;
    color: #000 !important;
}

/* Visual Enhancement Overlay - Radar Sweep Grid */
.radar-scope-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    display: none; /* Controlled by map state/button */
}

.radar-scope-container.active {
    display: block;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, rgba(255, 0, 127, 0.08) 0deg, rgba(255, 0, 127, 0) 90deg);
    transform-origin: 0 0;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: radarSweepAnim 6s linear infinite;
}

.radar-crosshair-h {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 0, 127, 0.15);
}

.radar-crosshair-v {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 0, 127, 0.15);
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 0, 127, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 { width: 20%; height: 20%; }
.ring-2 { width: 50%; height: 50%; }
.ring-3 { width: 80%; height: 80%; }

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */
.glass-footer {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #718096;
    box-shadow: 0 -4px 32px 0 rgba(0, 0, 0, 0.2);
}

.glass-footer p {
    font-weight: 500;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.ping-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ping-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
}

.divider {
    color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   SCROLL DIALOG / MODAL (FLIGHT DETAIL DIALOG)
   ========================================================================== */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.dialog-card {
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 18, 38, 0.9) !important;
}

.dialog-overlay.show .dialog-card {
    transform: scale(1) translateY(0);
}

.dialog-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
    z-index: 100;
}

.dialog-close:hover {
    background: var(--neon-magenta);
    color: #fff;
    border-color: var(--neon-magenta);
    box-shadow: 0 0 10px rgba(255,0,127,0.5);
}

.dialog-header {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dialog-airline-logo {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.08);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1.5px solid rgba(0, 243, 255, 0.2);
}

.dialog-title-info h3 {
    font-size: 1.6rem;
    font-family: var(--font-mono);
    color: #fff;
}

.dialog-title-info p {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-top: 2px;
}

.dialog-badge {
    margin-left: auto;
    background: rgba(57, 255, 20, 0.15);
    border: 1.5px solid var(--neon-green);
    color: var(--neon-green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
    margin-right: 45px;
}

.dialog-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Route progress indicator */
.route-progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px 30px;
    border-radius: 16px;
    margin-bottom: 5px;
}

.airport-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 80px;
}

.airport-node .code {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.airport-node.origin .code {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.airport-node.destination .code {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

.airport-node .city {
    font-size: 0.8rem;
    color: #a0aec0;
    text-align: center;
}

.progress-line-wrapper {
    flex: 1;
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 20px;
    border-radius: 2px;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.progress-plane {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    transition: left 0.5s ease;
}

/* Flight Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-box .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-box .value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono);
}

.modal-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sub-card {
    padding: 18px;
    border-color: rgba(255, 255, 255, 0.05);
}

.sub-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-card p {
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.6;
}

.sub-card p strong {
    color: #fff;
}

.text-cyan { color: var(--neon-cyan); }
.text-orange { color: var(--neon-orange); }

.dialog-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
}

.pulse-glow:hover {
    box-shadow: 0 0 18px var(--neon-cyan);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes starsMove {
    from { background-position: 0 0, 40px 60px, 130px 270px; }
    to { background-position: 550px 550px, 390px 410px, 680px 820px; }
}

@keyframes orbFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px currentColor; opacity: 0.7; }
    50% { box-shadow: 0 0 15px currentColor; opacity: 1; }
    100% { box-shadow: 0 0 5px currentColor; opacity: 0.7; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rotateSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes radarSweepAnim {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.plane-pulse {
    animation: flightBob 3s ease-in-out infinite;
}

@keyframes flightBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.geo-pulse {
    animation: geoIndicator 2.5s infinite;
}

@keyframes geoIndicator {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); color: var(--neon-cyan); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Custom glowing airplane icons for Leaflet */
.leaflet-plane-marker {
    background: transparent;
    border: none;
}

.leaflet-plane-icon {
    font-size: 1.4rem;
    color: var(--neon-cyan);
    transform-origin: center center;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.8);
    transition: var(--transition-smooth);
}

.leaflet-plane-icon.selected {
    color: var(--neon-magenta);
    text-shadow: 0 0 12px rgba(255, 0, 127, 1);
    font-size: 1.8rem;
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .map-section {
        height: 450px;
    }
    
    .stats-hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .glass-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .header-widgets {
        justify-content: space-between;
    }
    
    .stats-hero-grid {
        grid-template-columns: 1fr;
    }
    
    .board-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .combo-box-container {
        width: 100%;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-cards-row {
        grid-template-columns: 1fr;
    }
    
    .glass-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
