/* 
 * VortexIQ - Storm Chaser Weather Analysis Interface
 * Complete CSS with Livestream Page and Integrated Alert System
 * Version 2.1 - Full Implementation
 */

/* ==============================================
   TABLE OF CONTENTS
   ==============================================
   1. CSS Reset & Base Styles
   2. Typography & Colors
   3. Layout & Grid System
   4. Header & Navigation
   5. Location Controls
   6. Integrated Alert System (NEW POSITION)
   7. Current Weather Banner
   8. Atmospheric Stability Gauges
   9. Cards & Content Areas
   10. Maps & Charts
   11. HRRR Model Controls
   12. Alert System (Weather Alerts)
   13. Livestream Page Styles (COMPLETE)
   14. Loading & Error States
   15. Responsive Design
   16. Animations & Effects
   17. Utility Classes
   ============================================== */

/* ==============================================
   1. CSS RESET & BASE STYLES
   ============================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before,
*::after {
    box-sizing: inherit;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    
    /* Clean storm chaser background - no animations */
    background: 
        linear-gradient(rgba(0, 20, 40, 0.85), rgba(0, 30, 60, 0.85)),
        radial-gradient(ellipse at center, #001122 0%, #000511 70%, #000000 100%);
    background-attachment: fixed;
}

/* ==============================================
   2. TYPOGRAPHY & COLORS
   ============================================== */

:root {
    /* Storm Chaser Color Palette */
    --primary-cyan: #00ffff;
    --primary-yellow: #ffff00;
    --accent-green: #00ff88;
    --warning-orange: #ff8800;
    --danger-red: #ff0000;
    --background-dark: rgba(0, 20, 40, 0.95);
    --background-medium: rgba(0, 30, 60, 0.9);
    --background-light: rgba(0, 40, 80, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-glow: rgba(0, 255, 255, 0.5);
    
    /* Typography */
    --font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
    --font-size-small: 12px;
    --font-size-normal: 14px;
    --font-size-medium: 16px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 28px;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
}

/* Text colors and utilities */
.text-primary { color: var(--primary-cyan); }
.text-secondary { color: var(--primary-yellow); }
.text-success { color: var(--accent-green); }
.text-warning { color: var(--warning-orange); }
.text-danger { color: var(--danger-red); }

.text-glow {
    text-shadow: 0 0 10px currentColor;
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.text-bold { font-weight: bold; }

/* ==============================================
   3. LAYOUT & GRID SYSTEM
   ============================================== */

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--background-dark);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 0 20px var(--border-glow),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    min-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.content {
    display: flex;
    flex: 1;
    gap: var(--spacing-lg);
}

.column {
    padding: var(--spacing-lg);
    flex: 1;
    min-width: 0; /* Prevents flex overflow */
}

.left-column {
    border-right: 2px solid rgba(0, 255, 255, 0.3);
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* ==============================================
   4. HEADER & NAVIGATION
   ============================================== */

.header {
    background: linear-gradient(135deg, #001122 0%, #002244 50%, #001133 100%);
    color: var(--primary-cyan);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 2px solid var(--primary-cyan);
    position: relative;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-cyan) 50%, transparent 100%);
    animation: scanline 3s linear infinite;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.logo {
    font-weight: bold;
    font-size: var(--font-size-xxl);
    color: var(--primary-yellow);
    text-shadow: 
        0 0 10px var(--primary-yellow),
        0 0 20px var(--primary-yellow),
        0 0 30px var(--primary-yellow);
    letter-spacing: 2px;
    font-family: var(--font-family);
}

.current-time {
    font-size: var(--font-size-normal);
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
}

/* Navigation */
.navigation {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    color: var(--primary-cyan);
    text-decoration: none;
    padding: 8px var(--spacing-md);
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: rgba(0, 255, 255, 0.1);
    font-family: var(--font-family);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-item:hover, 
.nav-item.active {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px var(--border-glow);
    transform: translateY(-2px);
}

/* Dropdown functionality for Glossary */
.dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #001122 0%, #002244 100%);
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    z-index: 100;
    min-width: 180px;
    padding: var(--spacing-xs) 0;
    margin-top: var(--spacing-xs);
    backdrop-filter: blur(10px);
}

.dropdown-container:hover .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

.dropdown-item {
    display: block;
    color: var(--primary-cyan);
    text-decoration: none;
    padding: 8px var(--spacing-md);
    transition: all 0.2s ease;
    font-family: var(--font-family);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3);
    border-left: 3px solid var(--primary-cyan);
    transform: translateX(3px);
}

.dropdown-container > .nav-item::after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
    color: var(--primary-yellow);
    transition: transform 0.2s ease;
}

.dropdown-container:hover > .nav-item::after {
    transform: rotate(180deg);
}

/* ==============================================
   5. LOCATION CONTROLS
   ============================================== */

.location-controls {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--background-medium);
    border-bottom: 1px solid var(--primary-cyan);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.controls-label {
    font-weight: bold;
    font-size: var(--font-size-normal);
    white-space: nowrap;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family);
}

.location-input {
    flex: 1;
    min-width: 200px;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-normal);
    background: rgba(0, 20, 40, 0.9);
    color: var(--danger-red);
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.location-input:focus {
    outline: none;
    box-shadow: 0 0 15px var(--border-glow);
    background: rgba(0, 30, 60, 0.9);
}

.location-input::placeholder {
    color: rgba(255, 0, 0, 0.5);
}

/* ==============================================
   6. INTEGRATED ALERT SYSTEM (NEW POSITION)
   ============================================== */

.livestream-alert-container.integrated-section {
    /* Remove fixed positioning - now flows with page layout */
    position: static;
    
    /* Full width section styling */
    width: 100%;
    margin: 0;
    padding: 0;
    
    /* Space it properly between sections */
    margin-bottom: var(--spacing-lg);
    
    /* No z-index needed since it's in document flow */
    z-index: auto;
    
    /* Allow pointer events */
    pointer-events: auto;
    
    /* Hidden by default, shows when alerts are active */
    display: none;
}

/* Show the container when it has alert children */
.livestream-alert-container.integrated-section:not(:empty) {
    display: block;
}

.livestream-alert-banner {
    /* Full-width section banner styling */
    background: linear-gradient(135deg, #ff00ff 0%, #cc00cc 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0;
    
    /* Section-appropriate shadows and borders */
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.6),
        inset 0 0 20px rgba(255, 0, 255, 0.1),
        0 0 15px rgba(0, 255, 255, 0.2);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-lg);
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    
    /* Animations */
    animation: integratedLiveStreamPulse 2s ease-in-out infinite;
    
    /* Typography */
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    
    /* Ensure it fits well in the section flow */
    min-height: 60px;
    
    /* Storm chaser theme consistency */
    position: relative;
    overflow: hidden;
    
    /* Ensure text is always readable */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Section-appropriate pulsing animation */
@keyframes integratedLiveStreamPulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(255, 0, 255, 0.6),
            inset 0 0 20px rgba(255, 0, 255, 0.1),
            0 0 15px rgba(0, 255, 255, 0.2);
        border-color: var(--primary-cyan);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(255, 0, 255, 0.8),
            inset 0 0 25px rgba(255, 0, 255, 0.15),
            0 0 20px rgba(0, 255, 255, 0.3);
        border-color: var(--primary-yellow);
    }
}

/* Scanning line effect to match other sections */
.livestream-alert-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-yellow) 50%, transparent 100%);
    animation: alertScan 3s linear infinite;
}

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

/* Alert content layout - optimized for section placement */
.livestream-alert-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 0; /* Prevents flex overflow */
}

.livestream-alert-icon {
    font-size: 28px;
    animation: liveBlink 1s ease-in-out infinite alternate;
    flex-shrink: 0;
}

@keyframes liveBlink {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.livestream-alert-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.livestream-alert-title {
    font-size: var(--font-size-large);
    margin: 0;
    line-height: 1.2;
    color: white;
}

.livestream-alert-subtitle {
    font-size: var(--font-size-normal);
    opacity: 0.9;
    margin: 0;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
    
    /* Handle long titles gracefully */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.livestream-alert-time {
    font-size: var(--font-size-small);
    opacity: 0.8;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Action buttons - optimized for section layout */
.livestream-alert-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.livestream-alert-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-small);
    font-family: var(--font-family);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: none;
}

.livestream-alert-btn.primary {
    background: rgba(255, 255, 255, 0.9);
    color: #cc00cc;
    border-color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.livestream-alert-btn.secondary {
    background: rgba(255, 136, 0, 0.8);
    border-color: var(--warning-orange);
    color: white;
}

.livestream-alert-btn.dismiss {
    background: rgba(255, 0, 0, 0.7);
    border-color: var(--danger-red);
    color: white;
    padding: 8px 12px;
    min-width: 40px;
}

.livestream-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.livestream-alert-btn.primary:hover {
    background: white;
    color: #aa00aa;
}

.livestream-alert-btn.secondary:hover {
    background: var(--warning-orange);
    color: white;
}

.livestream-alert-btn.dismiss:hover {
    background: var(--danger-red);
    color: white;
}

/* Animation states for section-based alerts */
.livestream-alert-enter {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.livestream-alert-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.4s ease-out;
}

.livestream-alert-exit {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease-in;
}

/* Ensure proper spacing with adjacent sections */
.location-controls + .livestream-alert-container.integrated-section {
    margin-top: var(--spacing-lg);
}

.livestream-alert-container.integrated-section + .current-weather-banner,
.livestream-alert-container.integrated-section + .content {
    margin-top: var(--spacing-lg);
}

/* ==============================================
   7. CURRENT WEATHER BANNER
   ============================================== */

.current-weather-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: var(--spacing-lg) 0;
    padding: 0 var(--spacing-lg);
}

.current-weather-container {
    width: 100%;
    max-width: 1400px;
    background: var(--background-dark);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 
        0 0 20px var(--border-glow),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.weather-conditions-column,
.radar-column {
    min-width: 0;
}

.weather-banner-title {
    margin: 0 0 var(--spacing-md) 0;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-family);
    text-shadow: 0 0 15px var(--primary-yellow);
    text-align: center;
}

.weather-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-light);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--radius-md);
}

.weather-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(0, 30, 60, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.weather-item:hover {
    background: rgba(0, 40, 80, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.weather-label {
    font-size: 11px;
    color: var(--primary-cyan);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family);
}

.weather-value {
    font-size: var(--font-size-medium);
    font-weight: bold;
    color: var(--primary-yellow);
    font-family: var(--font-family);
    text-shadow: 0 0 8px var(--primary-yellow);
}

/* ==============================================
   8. ATMOSPHERIC STABILITY GAUGES
   ============================================== */

.historical-selector {
    margin-bottom: var(--spacing-lg);
}

.historical-selector select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-md);
    background: rgba(0, 20, 40, 0.9);
    color: var(--primary-cyan);
    font-family: var(--font-family);
    font-size: var(--font-size-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.historical-selector select:focus {
    outline: none;
    box-shadow: 0 0 15px var(--border-glow);
}

.gauges-section {
    margin-bottom: var(--spacing-xl);
}

.gauges-section-title {
    font-size: var(--font-size-medium);
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-family);
    text-shadow: 0 0 10px var(--primary-yellow);
    margin-bottom: var(--spacing-md);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--primary-yellow);
}

.gauges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-xl);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.gauge:hover {
    transform: translateY(-5px);
}

.gauge-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: var(--spacing-sm);
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.gauge-progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-in-out, stroke 0.5s ease;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.value-number {
    font-size: var(--font-size-large);
    font-weight: bold;
    color: var(--text-primary);
    font-family: var(--font-family);
    text-shadow: 0 0 10px currentColor;
    line-height: 1;
}

.value-unit {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin-top: 2px;
    font-family: var(--font-family);
}

.gauge-label {
    font-size: var(--font-size-small);
    color: var(--primary-cyan);
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family);
    max-width: 120px;
    word-wrap: break-word;
}

/* Historical gauges styling */
.historical-gauges .gauge-circle {
    opacity: 0.8;
}

.historical-gauges .gauge-bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.historical-gauges .value-number {
    color: var(--primary-yellow);
}

.historical-gauges .gauge-label {
    color: var(--primary-yellow);
    opacity: 0.8;
}

/* ==============================================
   9. CARDS & CONTENT AREAS
   ============================================== */

.card {
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: 25px;
    background: var(--background-medium);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.3),
        inset 0 0 15px rgba(0, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-cyan) 50%, transparent 100%);
    animation: cardScan 4s linear infinite;
}

.card-title {
    font-weight: bold;
    font-size: var(--font-size-large);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--primary-cyan);
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-family);
    text-shadow: 0 0 10px var(--primary-yellow);
}

/* ==============================================
   10. MAPS & CHARTS
   ============================================== */

.map-container {
    height: 300px;
    background: var(--background-medium);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.map-container.spc-outlook {
    height: 400px;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.map-container:hover img {
    transform: scale(1.02);
}

.chart-container {
    height: 450px;
    background: var(--background-light);
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    position: relative;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.2),
        inset 0 0 10px rgba(0, 255, 255, 0.05);
}

/* ==============================================
   11. HRRR MODEL CONTROLS
   ============================================== */

.hrrr-controls {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--background-light);
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-md);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.control-group label {
    font-size: var(--font-size-small);
    font-weight: bold;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family);
}

.control-group select {
    padding: 8px 12px;
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-normal);
    background: rgba(0, 20, 40, 0.9);
    color: var(--primary-cyan);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-group select:focus {
    outline: none;
    box-shadow: 0 0 10px var(--border-glow);
}

.hrrr-update-btn, 
.hrrr-play-btn {
    padding: 8px var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #00cccc 100%);
    color: #001122;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-normal);
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    text-transform: uppercase;
}

.hrrr-update-btn:hover, 
.hrrr-play-btn:hover {
    background: linear-gradient(135deg, #00cccc 0%, #008888 100%);
    box-shadow: 0 0 15px var(--border-glow);
    transform: translateY(-2px);
}

.play-controls {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-light);
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-md);
}

.time-slider {
    flex: 1;
    margin: 0 var(--spacing-sm);
    height: 8px;
    border-radius: var(--radius-sm);
    background: rgba(0, 255, 255, 0.3);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.time-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--border-glow);
    transition: all 0.3s ease;
}

.time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-cyan);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--border-glow);
}

#current-time {
    font-size: var(--font-size-small);
    color: var(--accent-green);
    min-width: 60px;
    text-align: right;
    font-family: var(--font-family);
    background: rgba(0, 255, 136, 0.1);
    padding: var(--spacing-xs) 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* ==============================================
   12. ALERT SYSTEM (WEATHER ALERTS - NOT LIVESTREAM)
   ============================================== */

.alert-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
}

.alert-banner {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 12px var(--spacing-lg);
    margin: 0;
    box-shadow: 
        0 0 20px rgba(255, 68, 68, 0.6),
        0 2px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-yellow);
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: alertPulse 2s ease-in-out infinite;
    pointer-events: auto;
    position: relative;
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alert-banner.enh {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
    border-color: var(--primary-yellow);
}

.alert-banner.mdt {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-color: var(--primary-yellow);
}

.alert-banner.high {
    background: linear-gradient(135deg, #8b00ff 0%, #6600cc 100%);
    border-color: var(--primary-cyan);
}

/* SPC Day 2 Outlook Modal - Styled but Hidden by Default */
.spc-modal {
    display: none; /* Hidden by default - can be activated later */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.spc-modal-content {
    background: var(--background-dark);
    margin: 5% auto;
    padding: var(--spacing-lg);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    box-shadow: 
        0 0 30px var(--border-glow),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.spc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--primary-cyan);
}

.spc-modal-header h2 {
    color: var(--primary-yellow);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.spc-modal-close {
    background: none;
    border: none;
    color: var(--primary-cyan);
    font-size: 24px;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.spc-modal-close:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
}

.spc-outlook-image {
    width: 100%;
    height: auto;
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.spc-modal-info {
    color: var(--text-primary);
    font-family: var(--font-family);
}

.risk-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.risk-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-small);
}

.risk-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.risk-mrgl { background-color: #00ff00; }
.risk-slgt { background-color: #ffff00; }
.risk-enh { background-color: #ff8c00; }
.risk-mdt { background-color: #ff0000; }
.risk-high { background-color: #8b00ff; }

/* ==============================================
   13. LIVESTREAM PAGE STYLES (COMPLETE)
   ============================================== */

/* Livestream Status Bar */
.livestream-status-bar {
    background: var(--background-medium);
    border-bottom: 2px solid var(--primary-cyan);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #95a5a6;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px currentColor;
}

.refresh-btn {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #00aaaa 100%);
    color: var(--background-dark);
    border: none;
    padding: 8px var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: var(--font-size-small);
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #00aaaa 0%, var(--primary-cyan) 100%);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Livestream Container & Layout */
.livestream-container {
    padding: var(--spacing-lg);
    flex: 1;
}

.page-title {
    font-size: var(--font-size-xxl);
    color: var(--primary-yellow);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--font-family);
    text-shadow: 
        0 0 15px var(--primary-yellow),
        0 0 30px var(--primary-yellow);
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-yellow) 50%, transparent 100%);
}

/* Livestream Grid Layout */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: start;
}

.stream-card {
    background: var(--background-medium);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.3),
        inset 0 0 15px rgba(0, 255, 255, 0.05);
    position: relative;
}

.stream-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-cyan) 50%, transparent 100%);
    animation: cardScan 4s linear infinite;
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.stream-card.live {
    border-color: var(--danger-red);
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.4),
        inset 0 0 15px rgba(255, 0, 0, 0.1);
    animation: livePulse 2s ease-in-out infinite;
}

.stream-card.live::before {
    background: linear-gradient(90deg, transparent 0%, var(--danger-red) 50%, transparent 100%);
}

@keyframes livePulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.4), inset 0 0 15px rgba(255, 0, 0, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.6), inset 0 0 20px rgba(255, 0, 0, 0.15);
    }
}

/* Stream Card Components */
.stream-header {
    padding: var(--spacing-md);
    background: var(--background-dark);
    border-bottom: 1px solid var(--primary-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stream-header h3 {
    color: var(--primary-yellow);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-size: var(--font-size-medium);
    text-shadow: 0 0 10px var(--primary-yellow);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #95a5a6;
    transition: background-color 0.3s ease;
}

.live-text {
    color: #95a5a6;
    transition: color 0.3s ease;
}

.stream-content {
    min-height: 250px;
    position: relative;
    background: var(--background-light);
}

/* Offline Placeholder */
.offline-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-family);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.offline-placeholder p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-normal);
    color: var(--text-primary);
}

.offline-placeholder small {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Live Stream Embed */
.live-stream-embed {
    position: relative;
    width: 100%;
}

.stream-iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

.stream-info {
    padding: var(--spacing-md);
    background: var(--background-dark);
    border-top: 1px solid var(--primary-cyan);
}

.stream-info h4 {
    color: var(--primary-cyan);
    margin: 0 0 var(--spacing-xs) 0;
    font-family: var(--font-family);
    font-size: var(--font-size-normal);
    line-height: 1.3;
}

.stream-info p {
    margin: var(--spacing-xs) 0;
    color: var(--text-secondary);
    font-size: var(--font-size-small);
    font-family: var(--font-family);
}

.watch-on-youtube {
    display: inline-block;
    color: var(--warning-orange);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-family: var(--font-family);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--warning-orange);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    margin-top: var(--spacing-xs);
}

.watch-on-youtube:hover {
    background: var(--warning-orange);
    color: var(--background-dark);
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.5);
}

/* Livestream Info Section */
.livestream-info {
    background: var(--background-medium);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.3),
        inset 0 0 15px rgba(0, 255, 255, 0.05);
}

.livestream-info h3 {
    color: var(--primary-yellow);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 10px var(--primary-yellow);
    font-size: var(--font-size-large);
}

.livestream-info p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family);
}

.chaser-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.chaser-info {
    background: var(--background-light);
    padding: var(--spacing-md);
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.chaser-info:hover {
    background: rgba(0, 40, 80, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.chaser-info h4 {
    color: var(--primary-cyan);
    font-family: var(--font-family);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--font-size-normal);
}

.chaser-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-small);
    line-height: 1.5;
    margin: 0;
}

.monitoring-schedule {
    background: var(--background-dark);
    padding: var(--spacing-lg);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.monitoring-schedule h4 {
    color: var(--accent-green);
    font-family: var(--font-family);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--font-size-normal);
}

.monitoring-schedule p {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-small);
    line-height: 1.5;
}

.monitoring-schedule p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--background-dark);
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 2px solid var(--primary-cyan);
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: var(--font-size-small);
    margin-top: auto;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ==============================================
   14. LOADING & ERROR STATES
   ============================================== */

.loading-indicator, 
.error-message {
    display: none;
    padding: var(--spacing-lg);
    text-align: center;
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid var(--primary-cyan);
    border-radius: var(--radius-lg);
    margin: var(--spacing-sm) var(--spacing-lg);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    color: var(--text-primary);
    font-family: var(--font-family);
}

.loading-indicator.active, 
.error-message.active {
    display: block;
}

/*.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 255, 255, 0.3);
    border-left-color: var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}*/

/* ==============================================
   15. RESPONSIVE DESIGN
   ============================================== */

/* Tablet */
@media (max-width: 1024px) {
    .content {
        flex-direction: column;
    }
    
    .left-column {
        border-right: none;
        border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    }
    
    .current-weather-container {
        grid-template-columns: 1fr;
    }
    
    .gauges-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .weather-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .streams-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-md);
    }
    
    .chaser-info-grid {
        grid-template-columns: 1fr;
    }
    
    .livestream-alert-content {
        gap: var(--spacing-sm);
    }
    
    .livestream-alert-actions {
        gap: var(--spacing-xs);
    }
    
    .livestream-alert-btn {
        padding: 6px 12px;
        font-size: var(--font-size-small);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .app-container {
        margin: var(--spacing-xs);
        border-radius: var(--radius-md);
    }
    
    .header {
        padding: var(--spacing-sm);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    
    .header-top {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .logo {
        font-size: var(--font-size-xl);
    }
    
    .navigation {
        justify-content: center;
        gap: var(--spacing-xs);
    }
    
    .nav-item {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .location-controls {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .column {
        padding: var(--spacing-sm);
    }
    
    .current-weather-banner {
        padding: 0 var(--spacing-sm);
    }
    
    .current-weather-container {
        padding: var(--spacing-sm);
    }
    
    .gauges-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .gauge-circle {
        width: 100px;
        height: 100px;
    }
    
    .weather-data-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .hrrr-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .play-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .card-title {
        font-size: var(--font-size-medium);
    }
    
    /* Livestream responsive */
    .livestream-status-bar {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .streams-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .livestream-container {
        padding: var(--spacing-md);
    }
    
    .page-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Livestream alert responsive */
    .livestream-alert-banner {
        padding: var(--spacing-sm) var(--spacing-md);
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
        min-height: auto;
    }
    
    .livestream-alert-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
        text-align: left;
    }
    
    .livestream-alert-info {
        width: 100%;
    }
    
    .livestream-alert-subtitle {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .livestream-alert-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .livestream-alert-btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    .livestream-alert-btn.dismiss {
        flex: 0 0 auto;
        margin-left: var(--spacing-sm);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .gauges-container {
        grid-template-columns: 1fr;
    }
    
    .gauge-circle {
        width: 80px;
        height: 80px;
    }
    
    .value-number {
        font-size: var(--font-size-normal);
    }
    
    .nav-item {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .stream-iframe {
        height: 180px;
    }
    
    .livestream-alert-banner {
        padding: var(--spacing-sm);
    }
    
    .livestream-alert-icon {
        font-size: 24px;
    }
    
    .livestream-alert-title {
        font-size: var(--font-size-medium);
    }
    
    .livestream-alert-subtitle {
        font-size: var(--font-size-small);
    }
    
    .livestream-alert-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* ==============================================
   16. ANIMATIONS & EFFECTS
   ============================================== 

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

@keyframes cardScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}*/

@keyframes alertPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.6), 0 2px 10px rgba(0, 0, 0, 0.3); 
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.9), 0 2px 15px rgba(0, 0, 0, 0.4); 
    }
}

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes glow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3)); 
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6)); 
    }
}

/* Smooth transitions for all interactive elements */
button,
select,
input,
.nav-item,
.gauge,
.weather-item,
.card {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
button:focus,
select:focus,
input:focus,
.nav-item:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .app-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .header::before,
    .card::before {
        display: none;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==============================================
   17. UTILITY CLASSES
   ============================================== */

.hidden { display: none !important; }
.visible { display: block !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--spacing-sm) !important; }
.mb-md { margin-bottom: var(--spacing-md) !important; }
.mb-lg { margin-bottom: var(--spacing-lg) !important; }

.p-0 { padding: 0 !important; }
.p-sm { padding: var(--spacing-sm) !important; }
.p-md { padding: var(--spacing-md) !important; }
.p-lg { padding: var(--spacing-lg) !important; }

.flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-center { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
}

.grid { display: grid !important; }
.grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid-3 { grid-template-columns: repeat(3, 1fr) !important; }

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }

.border-glow {
    box-shadow: 0 0 10px var(--border-glow) !important;
}

.text-shadow {
    text-shadow: 0 0 10px currentColor !important;
}

/* ==============================================
   18. STORM CHASER RISK INDICATORS
   ============================================== */

.risk-low {
    color: var(--accent-green) !important;
    text-shadow: 0 0 10px var(--accent-green);
}

.risk-moderate {
    color: var(--primary-yellow) !important;
    text-shadow: 0 0 10px var(--primary-yellow);
}

.risk-high {
    color: var(--warning-orange) !important;
    text-shadow: 0 0 10px var(--warning-orange);
}

.risk-extreme {
    color: var(--danger-red) !important;
    text-shadow: 0 0 10px var(--danger-red);
    animation: extremeWarning 1s ease-in-out infinite alternate;
}

@keyframes extremeWarning {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

/* ==============================================
   19. CUSTOM SCROLLBARS (STORM CHASER THEME)
   ============================================== */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.8);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-cyan), #008888);
    border-radius: var(--radius-md);
    border: 2px solid rgba(0, 20, 40, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #008888, var(--primary-cyan));
    box-shadow: 0 0 10px var(--border-glow);
}

/* Firefox scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-cyan) rgba(0, 20, 40, 0.8);
}

/* ==============================================
   END OF CSS - VortexIQ Storm Chaser Theme
   Complete with Livestream Page and Integrated Alerts
   ============================================== */