/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: 
        linear-gradient(rgba(0, 20, 10, 0.7), rgba(20, 40, 20, 0.8)),
        radial-gradient(ellipse at 20% 80%, rgba(255, 69, 0, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 140, 0, 0.2) 0%, transparent 50%),
        url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8fHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80'),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9ImZvcmVzdCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPgogICAgICA8cGF0aCBkPSJNMTAwIDIwTDEyMCA4MEw4MCA4MFoiIGZpbGw9IiMxZDQwNDAiLz4KICAgICAgPHBhdGggZD0iTTE1MCg4MC8xNzAgMTMwIDkwWiIgZmlsbD0iIzJkNTA0ZCIvPgogICAgICA8cGF0aCBkPSJNMTUwIDMwMTcwIDkwMTMwIDkwWiIgZmlsbD0iIzJkNTA0ZCIvPgogICAgICA8cGF0aCBkPSJNMTUwIDQwNzAgMTAwMzQgMTAwWiIgZmlsbD0iIzJkNTA0ZCIvPgogICAgICA8cGF0aCBkPSJNMTgwIDUwMTkwIDExMCwxNjAgMTEwWiIgZmlsbD0iIzFkNDA0MCIvPgogICAgPC9wYXR0ZXJuPgogIDwvZGVmcz4KICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2ZvcmVzdCkiLz4KPC9zdmc+'),
        linear-gradient(180deg, #0a1a0a 0%, #1a2f1a 50%, #2a3f2a 100%);
    background-size: cover, 800px 800px, 1200px 1200px, cover, 400px 400px, 100% 100%;
    background-position: center, 20% 80%, 80% 20%, center, center, center;
    background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
    color: #F8FAFC;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Responsive Grid for Data Sources */
.data-sources-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
/* Sidebar Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .fixed-header {
        left: 240px;
    }

    .section {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .fixed-header {
        left: 0;
    }

    .section {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 69, 0, 0.2);
        border: 1px solid rgba(255, 69, 0, 0.3);
        border-radius: 8px;
        color: #FF4500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 69, 0, 0.3);
        transform: scale(1.05);
    }

    .header-container {
        flex-wrap: wrap;
        text-align: center;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .data-sources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-card {
        margin: 1rem 0;
    }
}

/* Hide mobile toggle on desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}
/* Media Queries for Extra Small Devices */
@media (max-width: 576px) {
    .data-sources-grid {
        grid-template-columns: 1fr; /* Stack on the smallest screens */
    }
    .quick-action-btn {
        flex-direction: column; /* Stack action button elements */
        align-items: center; /* Center align text */
    }
}

/* AI Explainability & Trust Layer Styles */
#ai-explainability {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
    padding: 4rem 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10B981;
    border-radius: 25px;
    color: #10B981;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: trustPulse 3s ease-in-out infinite;
}

@keyframes trustPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 0 25px rgba(16, 185, 129, 0.5); }
}

.explainability-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.main-simulation-container {
    grid-column: 1;
    grid-row: 1;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.explainability-sidebar {
    grid-column: 2;
    grid-row: 1 / span 2;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    max-height: 900px;
    overflow-y: auto;
}

.whatif-control-panel {
    grid-column: 1;
    grid-row: 2;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.simulation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.simulation-header h3 {
    color: #F8FAFC;
    font-size: 1.5rem;
    font-weight: 700;
}

.confidence-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #CBD5E1;
    font-weight: 500;
}

.confidence-gauge {
    position: relative;
    width: 60px;
    height: 60px;
}

.gauge-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #10B981 0deg, #10B981 313deg, rgba(51, 65, 85, 0.3) 313deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gauge-circle::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
}

.gauge-text {
    position: relative;
    z-index: 2;
    color: #10B981;
    font-weight: 700;
    font-size: 0.9rem;
}

.enhanced-map-container {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 2rem;
}

.explainability-map {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.cause-tags-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.cause-tag {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    animation: causePulse 2s ease-in-out infinite;
    pointer-events: auto;
    cursor: pointer;
}

.cause-tag .tag-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px currentColor;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.wind-tag .tag-icon {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    color: white;
}

.dryness-tag .tag-icon {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: white;
}

.slope-tag .tag-icon {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
}

.cause-tag .tag-label {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cause-tag .tag-strength {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
}

@keyframes causePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.ghost-trails-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.ghost-trail {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.4) 0%, rgba(255, 140, 0, 0.2) 50%, transparent 70%);
    border: 2px dashed #FF4500;
    animation: ghostTrailPulse 3s ease-in-out infinite;
}

@keyframes ghostTrailPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.timeline-container {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timeline-header h4 {
    color: #F8FAFC;
    font-size: 1.1rem;
    margin: 0;
}

.timeline-controls {
    display: flex;
    gap: 0.5rem;
}

.timeline-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.timeline-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.timeline-bar {
    position: relative;
    margin-bottom: 1rem;
}

#timeline-slider {
    width: 100%;
    height: 8px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

#timeline-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.timeline-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-marker:hover {
    transform: translateY(-2px);
}

.marker-time {
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 600;
}

.marker-event {
    color: #94A3B8;
    font-size: 0.7rem;
    text-align: center;
    max-width: 80px;
}

.timeline-explanation {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #10B981;
}

.timeline-explanation p {
    color: #CBD5E1;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

.explanation-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.panel-header h3 {
    color: #F8FAFC;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.explanation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10B981;
    font-size: 0.9rem;
    font-weight: 500;
}

.plain-language-explanation {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.explanation-text {
    color: #F8FAFC;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
    text-align: center;
}

.explanation-confidence {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94A3B8;
    font-size: 0.9rem;
}

.confidence-bar {
    width: 100px;
    height: 6px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.cause-weights-section h4 {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.weight-chart-container {
    height: 200px;
    margin-bottom: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.factor-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.factor-item:hover {
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}

.factor-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.wind-factor {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
}

.dryness-factor {
    background: linear-gradient(135deg, #34D399, #10B981);
}

.slope-factor {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.temp-factor {
    background: linear-gradient(135deg, #F87171, #EF4444);
}

.factor-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.factor-name {
    color: #F8FAFC;
    font-weight: 600;
    font-size: 0.95rem;
}

.factor-impact {
    color: #94A3B8;
    font-size: 0.8rem;
}

.factor-percentage {
    color: #10B981;
    font-weight: 700;
    font-size: 1.1rem;
}

.live-factors-section h4 {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.live-factors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.live-factor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    text-align: center;
}

.live-factor .factor-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.factor-value {
    color: #F8FAFC;
    font-weight: 700;
    font-size: 1rem;
}

.factor-trend {
    font-size: 0.8rem;
    font-weight: 500;
}

.factor-trend.up {
    color: #EF4444;
}

.factor-trend.down {
    color: #10B981;
}

.factor-trend.stable {
    color: #94A3B8;
}

.whatif-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3B82F6;
    font-size: 0.9rem;
    font-weight: 500;
}

.whatif-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group label {
    color: #CBD5E1;
    font-weight: 600;
    font-size: 0.95rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatif-slider {
    flex: 1;
    height: 8px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.whatif-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.slider-value {
    color: #3B82F6;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.impact-indicator {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
}

.impact-indicator span {
    color: #94A3B8;
    font-size: 0.8rem;
}

.direction-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.direction-dropdown {
    flex: 1;
    padding: 0.75rem;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #F8FAFC;
    font-size: 0.9rem;
}

.direction-compass {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid #3B82F6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #3B82F6;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.whatif-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.whatif-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.whatif-btn.primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

.whatif-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.whatif-btn.secondary {
    background: rgba(51, 65, 85, 0.6);
    color: #CBD5E1;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.whatif-btn.secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border-color: #3B82F6;
}

.scenario-results {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.results-header h4 {
    color: #F8FAFC;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.result-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 8px;
    text-align: center;
}

.metric-label {
    color: #94A3B8;
    font-size: 0.8rem;
}

.metric-value {
    color: #3B82F6;
    font-weight: 700;
    font-size: 1.1rem;
}

.metric-impact {
    color: #CBD5E1;
    font-size: 0.8rem;
    font-style: italic;
}

/* Responsive Design for AI Explainability */
@media (max-width: 1200px) {
    .explainability-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .explainability-sidebar {
        grid-column: 1;
        grid-row: 2;
        max-height: 600px;
    }

    .whatif-control-panel {
        grid-column: 1;
        grid-row: 3;
    }

    .whatif-controls-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .simulation-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .enhanced-map-container {
        height: 350px;
    }

    .live-factors-grid {
        grid-template-columns: 1fr;
    }

    .whatif-actions {
        flex-direction: column;
    }

    .timeline-markers {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Community Engagement Module Styles */
#community-engagement {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
    padding: 2rem 0;
}

/* Training Mode Selection */
.training-mode-selection {
    margin-bottom: 3rem;
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.mode-card {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    height: 100%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-card:hover::before {
    opacity: 1;
}

.mode-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.mode-card.active {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3);
}

.mode-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
}

.mode-card h3 {
    color: #F8FAFC;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.mode-card p {
    color: #94A3B8;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Engagement Module Container */
.engagement-module {
    display: none;
    animation: fadeInUp 0.8s ease-out;
}

.engagement-module.active {
    display: block;
}

/* Training Arena Layout */
.training-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Training Map Card */
.training-map-container {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    height: 700px;
    grid-column: span 2;
}

/* Training Controls Card */
.training-controls-card {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    height: 700px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Training Sidebar - Two rows layout */
.training-sidebar {
    display: grid;
    grid-template-rows: auto auto;
    gap: 2rem;
    height: fit-content;
    grid-column: span 3;
}

/* Top row - Stats panel only */
.training-sidebar-top {
    display: block;
}

/* Bottom row - Three cards horizontally */
.training-sidebar-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .training-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .training-map-container {
        grid-column: span 1;
    }

    .training-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        grid-column: span 1;
    }

    .training-sidebar-top,
    .training-sidebar-bottom {
        display: contents;
    }

    .mode-cards {
        max-width: 800px;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .training-layout {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .training-map-container {
        padding: 2rem;
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .training-sidebar-bottom {
        grid-template-columns: 1fr;
    }

    .training-sidebar {
        grid-template-columns: 1fr;
    }
}

.training-map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 24px 24px 0 0;
}

.training-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.training-header h3 {
    color: #F8FAFC;
    font-size: 1.5rem;
    font-weight: 700;
}

.scenario-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scenario-title {
    color: #10B981;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #F59E0B;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Training Canvas */
.training-canvas {
    position: relative;
    height: 450px;
    background: linear-gradient(135deg, #1F2937 0%, #374151 50%, #1F2937 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(16, 185, 129, 0.4);
    margin-bottom: 2.5rem;
    cursor: crosshair;
    box-shadow: 
        inset 0 0 30px rgba(16, 185, 129, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.3);
}

.fire-source {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 10;
}

.fire-animation {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #EF4444 0%, #F59E0B 50%, transparent 70%);
    border-radius: 50%;
    animation: fireSpread 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

@keyframes fireSpread {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.village-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #3B82F6;
    font-size: 1.2rem;
    z-index: 10;
}

.village-marker i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.village-marker span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #F8FAFC;
    background: rgba(59, 130, 246, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.forest-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(34, 197, 94, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(34, 197, 94, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.25) 0%, transparent 45%);
    opacity: 0.6;
}

.action-overlays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.fireline-overlay {
    position: absolute;
    background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
    height: 4px;
    border-radius: 2px;
    animation: firelineAppear 0.5s ease-out;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.water-overlay {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: waterDrop 0.8s ease-out;
}

.buffer-overlay {
    position: absolute;
    border: 3px dashed #10B981;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    animation: bufferCreate 0.6s ease-out;
}

@keyframes firelineAppear {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes waterDrop {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bufferCreate {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Training Controls */
.training-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.training-controls-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.training-controls-header h3 {
    color: #F8FAFC;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.training-controls-header p {
    color: #94A3B8;
    font-size: 0.9rem;
}

.control-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-section h4 {
    color: #F8FAFC;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

.tool-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(51, 65, 85, 0.6);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-btn:hover::before {
    opacity: 1;
}

.tool-btn:hover {
    border-color: #10B981;
    color: #10B981;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.tool-btn.active {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.tool-btn i {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.tool-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.tool-cost {
    font-size: 0.7rem;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    position: relative;
    z-index: 2;
}

.simulation-controls {
    display: flex;
    gap: 0.5rem;
}

/* Training Sidebar panels styling - already defined above */

.stats-panel {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    height: 700px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.badges-panel,
.challenge-panel,
.scenario-selector {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.badges-panel {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(255, 215, 0, 0.05));
}

.challenge-panel {
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(245, 158, 11, 0.05));
}

.scenario-selector {
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(59, 130, 246, 0.05));
}

.stats-panel::before,
.badges-panel::before,
.challenge-panel::before,
.scenario-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 18px 18px 0 0;
}

.stats-panel:hover,
.badges-panel:hover,
.challenge-panel:hover,
.scenario-selector:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(16, 185, 129, 0.4);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    flex-shrink: 0;
}

.panel-header h3 {
    color: #F8FAFC;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.badges-panel .panel-header {
    border-bottom-color: rgba(255, 215, 0, 0.2);
}

.challenge-panel .panel-header {
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

.scenario-selector .panel-header {
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

.level-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.level-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.level-title {
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 600;
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-1px);
}

.stat-item .stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(59, 130, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.stat-label {
    color: #94A3B8;
    font-size: 0.8rem;
}

.stat-value {
    color: #F8FAFC;
    font-size: 1.1rem;
    font-weight: 700;
}

.xp-progress {
    text-align: center;
}

.xp-label {
    color: #94A3B8;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.xp-bar {
    width: 100%;
    height: 8px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 4px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.xp-text {
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Badges Panel */
.badges-panel h4 {
    color: #F8FAFC;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex: 1;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.badge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-item.earned {
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(255, 215, 0, 0.1));
}

.badge-item.earned::before {
    opacity: 1;
}

.badge-item:not(.earned) {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.badge-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.badge-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.badge-item:not(.earned) .badge-icon {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: #9CA3AF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-name {
    color: #F8FAFC;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.badge-item:not(.earned) .badge-name {
    color: #9CA3AF;
}

/* Challenge Panel */
.challenge-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(245, 158, 11, 0.05));
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid #F59E0B;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.challenge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.challenge-info h5 {
    color: #F8FAFC;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.challenge-info p {
    color: #CBD5E1;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.challenge-objectives {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.objective {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #CBD5E1;
    padding: 0.5rem;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.objective:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateX(2px);
}

.objective i {
    color: #10B981;
    width: 16px;
    text-align: center;
}

.objective i.fa-circle {
    color: #64748B;
}

/* Scenario Selector */
.scenario-selector h4 {
    color: #F8FAFC;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.scenario-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.scenario-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(59, 130, 246, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scenario-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3B82F6, #2563EB);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scenario-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(15, 23, 42, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.scenario-item:hover::before {
    opacity: 1;
}

.scenario-item.active {
    border-color: #3B82F6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.8));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.scenario-item.active::before {
    opacity: 1;
    background: linear-gradient(180deg, #60A5FA, #3B82F6);
}

.scenario-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.4);
}

.scenario-item.locked:hover {
    transform: none;
    box-shadow: none;
}

.scenario-difficulty {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.scenario-difficulty.easy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.2));
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.scenario-difficulty.medium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.2));
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.scenario-difficulty.hard {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.2));
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.scenario-name {
    color: #F8FAFC;
    font-weight: 600;
    flex: 1;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.scenario-item i.fa-lock {
    color: #64748B;
    font-size: 1rem;
}

/* Quiz Mode Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-header h3 {
    color: #F8FAFC;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.quiz-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.question-counter {
    color: #94A3B8;
    font-size: 1rem;
    font-weight: 500;
}

.progress-bar {
    width: 300px;
    height: 8px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.question-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.1);
    margin-bottom: 2rem;
}

.question-text {
    color: #F8FAFC;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    color: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.quiz-option.selected {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.quiz-option.correct {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.quiz-option.incorrect {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.option-letter {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.quiz-btn.primary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.quiz-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.quiz-btn.secondary {
    background: rgba(51, 65, 85, 0.6);
    color: #CBD5E1;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.quiz-btn.secondary:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Leaderboard Mode Styles */
.leaderboard-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.leaderboard-header h3 {
    color: #F8FAFC;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.leaderboard-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #94A3B8;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Podium Styles */
.podium {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.podium-place.first {
    order: 2;
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-10px);
}

.podium-place.second {
    order: 1;
    border-color: #C0C0C0;
    background: rgba(192, 192, 192, 0.1);
}

.podium-place.third {
    order: 3;
    border-color: #CD7F32;
    background: rgba(205, 127, 50, 0.1);
}

.podium-crown {
    position: absolute;
    top: -15px;
    color: #FFD700;
    font-size: 1.5rem;
    animation: crownFloat 2s ease-in-out infinite;
}

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

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid currentColor;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-rank {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.podium-name {
    color: #F8FAFC;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.podium-score {
    color: #10B981;
    font-weight: 600;
    font-size: 1rem;
}

/* Leaderboard List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}

.leaderboard-item.you {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.leaderboard-item .rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.leaderboard-item.you .rank {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    color: #F8FAFC;
    font-weight: 600;
    font-size: 1rem;
}

.user-title {
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.user-score {
    color: #10B981;
    font-weight: 700;
    font-size: 1.1rem;
}

.user-badges {
    color: #94A3B8;
    font-size: 0.8rem;
}

/* Responsive Design for Community Engagement */
@media (max-width: 1200px) {
    .training-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .training-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .mode-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .training-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-palette {
        grid-template-columns: repeat(2, 1fr);
    }

    .training-sidebar {
        grid-template-columns: 1fr;
    }

    .podium {
        flex-direction: column;
        gap: 1rem;
    }

    .podium-place {
        order: unset !important;
        transform: none !important;
    }

    .leaderboard-tabs {
        flex-direction: column;
    }

    .quiz-controls {
        flex-direction: column;
        gap: 1rem;
    }
}

/* FireVision 3D/AR Visualization Styles */
#firevision {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
    padding: 4rem 0;
}

.firevision-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 800px;
}

.firevision-main {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    position: relative;
}

.visualization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.viz-mode-selector {
    display: flex;
    gap: 1rem;
}

.viz-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(51, 65, 85, 0.6);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #CBD5E1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.viz-mode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.viz-mode-btn:hover::before {
    opacity: 1;
}

.viz-mode-btn:hover {
    border-color: #10B981;
    color: #10B981;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.viz-mode-btn.active {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-color: #10B981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.viz-mode-btn.active::before {
    opacity: 0;
}

.viz-mode-btn i {
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.viz-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #10B981;
    font-weight: 500;
}

.canvas-container {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    overflow: hidden;
}

#firevision-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

#firevision-canvas:active {
    cursor: grabbing;
}

.viz-controls-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 10;
}

.viz-controls-overlay .control-group,
.viz-controls-overlay .playback-controls {
    display: flex;
    gap: 0.75rem;
    pointer-events: auto;
}

.viz-controls-overlay .control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #CBD5E1;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
}

.viz-controls-overlay .control-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
    color: #10B981;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.fire-info-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    z-index: 20;
    min-width: 300px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.popup-header h4 {
    color: #F8FAFC;
    font-size: 1.1rem;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #F8FAFC;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 8px;
}

.factor-label {
    color: #CBD5E1;
    font-weight: 500;
    flex: 1;
}

.factor-value {
    color: #10B981;
    font-weight: 700;
}

.ar-instructions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    z-index: 15;
}

.instructions-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.instructions-content h3 {
    color: #F8FAFC;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.instructions-content ol {
    text-align: left;
    color: #CBD5E1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.instructions-content li {
    margin-bottom: 0.75rem;
}

.firevision-controls {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    height: fit-content;
    max-height: 800px;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.panel-header h3 {
    color: #F8FAFC;
    font-size: 1.3rem;
    margin: 0;
}

.panel-mode {
    color: #10B981;
    font-size: 0.9rem;
    font-weight: 500;
}

.control-section {
    margin-bottom: 2rem;
}

.control-section h4 {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.viz-settings,
.simulation-params,
.explainability-controls,
.impact-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.setting-group:hover {
    background: rgba(16, 185, 129, 0.05);
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #CBD5E1;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.setting-group input[type="checkbox"] {
    position: relative;
    width: 18px;
    height: 18px;
    appearance: none;
    background: rgba(51, 65, 85, 0.6);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #10B981, #059669);
    border-color: #10B981;
}

.setting-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.param-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
}

.param-group label {
    color: #CBD5E1;
    font-weight: 500;
    font-size: 0.9rem;
}

.param-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.param-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.param-value {
    color: #10B981;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(51, 65, 85, 0.6);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #CBD5E1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.toggle-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
    color: #10B981;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-color: #10B981;
}

.factor-weights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.weight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
}

.weight-label {
    color: #CBD5E1;
    font-size: 0.85rem;
    min-width: 80px;
}

.weight-bar {
    flex: 1;
    height: 8px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 4px;
    overflow: hidden;
}

.weight-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.weight-value {
    color: #10B981;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: right;
}

.impact-stats {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
}

.stat-label {
    color: #94A3B8;
    font-size: 0.85rem;
}

.stat-value {
    color: #10B981;
    font-weight: 600;
    font-size: 0.9rem;
}

.export-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    justify-content: center;
}

.action-btn.primary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.action-btn.secondary {
    background: rgba(51, 65, 85, 0.6);
    color: #CBD5E1;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-color: #10B981;
}

.firevision-legend {
    grid-column: span 2;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-top: 2rem;
}

.firevision-legend h4 {
    color: #F8FAFC;
    margin-bottom: 1rem;
    text-align: center;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    justify-items: center;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.legend-color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.legend-color.safe-terrain {
    background: linear-gradient(135deg, #22C55E, #16A34A);
}

.legend-color.burning-area {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.legend-color.burned-area {
    background: linear-gradient(135deg, #374151, #1F2937);
}

.legend-color.future-burn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.6), rgba(220, 38, 38, 0.6));
    border: 2px dashed #EF4444;
}

.legend-color.evacuation-route {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.legend-color.infrastructure {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
}

.legend-item span {
    color: #CBD5E1;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design for FireVision */
@media (max-width: 1200px) {
    .firevision-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .legend-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .visualization-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .viz-mode-selector {
        justify-content: center;
    }

    .canvas-container {
        height: 400px;
    }

    .viz-controls-overlay {
        flex-direction: column;
        gap: 1rem;
    }

    .legend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .export-actions {
        flex-direction: row;
        gap: 0.5rem;
    }

    .action-btn {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

html {
    scroll-behavior: smooth;
}

/* Forest Fire Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 300px 100px at 15% 85%, rgba(255, 69, 0, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 200px 80px at 85% 90%, rgba(255, 140, 0, 0.3) 0%, transparent 70%),
        radial-gradient(ellipse 150px 60px at 60% 75%, rgba(255, 69, 0, 0.2) 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
    animation: fireGlow 4s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHN2Zz4KICAgICAgPHBhdHRlcm4gaWQ9ImZvbyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICA8Y2lyY2xlIGN4PSI1IiBjeT0iNSIgcj0iMSIgZmlsbD0icmdiYSgwLDAsMCwwLjEpIi8+CiAgICAgIDwvY2lyY2xlPgogICA8L3N2Zz4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9InNtb2tlIj4KICAgICAgPGZlVHVyYnVsZW5jZSBzdHJvbmd0aD0iMC41IiBiYXNlRnJlcXVlbmN5PSIwLjAxIiBudW1PY3RhdmVzPSI0Ii8+CiAgICAgIDxjb2xvcmlzZSB0eXBlPSJ0cmFuc2ZvcmltIiBjb21wb2xpdGUgY29sb3I9IiNmZmYiPjwvY29sb3I+CiAgICAgIDxjb2xvcmlzIHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDAuMiAwIDAgMCAwIDAuMiAwIDAgMCAwIDAuMiAwIDAgMCAwLjEgMCIvPgogICAgICA8ZmVUdXJidWxlbmNlIHN0cm9uZ2h0PSIxIiBiYXNlRnJlcXVlbmN5PSIwLjAyIiBudW1PY3RhdmVzPSI1Ii8+CiAgICA8L2ZpbHRlcj4KICA8L2RlZnM+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0id2hpdGUiIGZpbHRlcj0idXJsKCMpIikvPgo8L3N2Zz4=');
    pointer-events: none;
    z-index: -1;
    animation: smokeEffect 20s linear infinite;
}

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

/* Left Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 2px solid rgba(255, 69, 0, 0.3);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 140, 0, 0.05));
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.sidebar-logo .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FF4500;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}

.sidebar-logo .brand i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.4));
    animation: fireFlicker 2s infinite alternate;
}

.sidebar-tagline {
    font-size: 0.7rem;
    color: #94A3B8;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    padding: 0 1.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
    background: rgba(255, 69, 0, 0.1);
    color: #FF4500;
    border-left-color: rgba(255, 69, 0, 0.5);
    transform: translateX(4px);
}

.sidebar-nav-link.active {
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.2), rgba(255, 69, 0, 0.05));
    color: #FF4500;
    border-left-color: #FF4500;
    box-shadow: inset 0 0 20px rgba(255, 69, 0, 0.1);
}

.sidebar-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sidebar-nav-link:hover i,
.sidebar-nav-link.active i {
    opacity: 1;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 69, 0, 0.2);
    background: rgba(30, 41, 59, 0.5);
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #10B981;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.sidebar-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: pulse 2s infinite;
}

.sidebar-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94A3B8;
    font-size: 0.8rem;
}

/* Professional Fixed Header (Updated for sidebar) */
.fixed-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 999;
    background: rgba(10, 26, 10, 0.9);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(45, 80, 45, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    width: 100%;
}

@media (max-width: 1200px) {
    .header-container {
        grid-template-columns: 250px 1fr 250px;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .nav-menu {
        order: 2;
        justify-content: center;
    }

    .header-controls {
        order: 3;
        justify-content: center;
    }
}

.nav-menu {
    justify-self: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF4500;
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
    position: relative;
}

.logo > span:first-of-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tagline {
    font-size: 0.65rem;
    color: #94A3B8;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.header-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10B981;
    font-weight: 500;
}

.status-dot.active {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94A3B8;
    font-weight: 400;
    padding: 0.25rem 0.75rem;
    background: rgba(51, 65, 85, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    min-width: fit-content;
}

.last-update i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 30px;
    color: #FF4500;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94A3B8;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-item i {
    color: #FF4500;
    font-size: 1.1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.25), rgba(245, 158, 11, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FB923C;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.2);
}

.stat-trend {
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 69, 0, 0.4));
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    padding: 0.5rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    justify-content: center;
    flex-wrap: nowrap;
    min-width: fit-content;
}

.nav-link {
    color: #94A3B8;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: fit-content;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.nav-link i {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link span {
    font-weight: 500;
}

.nav-link:hover i {
    opacity: 1;
}

@media (max-width: 1024px) {
    .nav-link span {
        display: none;
    }

    .nav-link {
        padding: 0.75rem;
        min-width: 48px;
    }
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 140, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: #F8FAFC;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 69, 0, 0.15);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(255, 140, 0, 0.1));
    color: #F8FAFC;
    border: 1px solid rgba(255, 69, 0, 0.3);
    box-shadow: 0 4px 16px rgba(255, 69, 0, 0.2);
}

.nav-link.active::before {
    opacity: 0;
}

/* Enhanced Content Sections (Updated for sidebar) */
.section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-left: 280px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    overflow-x: hidden;
}

/* Feature Navigation Cards */
.feature-navigation {
    margin-top: 3rem;
    text-align: center;
}

.feature-navigation h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 2rem;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    border: 1px solid rgba(255, 69, 0, 0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 69, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4500;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(255, 69, 0, 0.3);
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 69, 0, 0.2);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #94A3B8;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.tab-btn:hover {
    color: #FF4500;
    background: rgba(255, 69, 0, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

.tab-btn i {
    font-size: 1rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* Analytics Cards */
.analytics-overview {
    margin-bottom: 3rem;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.analytics-card {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 69, 0, 0.15);
}

.analytics-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4500;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.analytics-card h3 {
    color: #F8FAFC;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.performance-chart-container,
.timeline-chart-container,
.spread-chart-container,
.alert-chart-container {
    height: 200px;
    margin-bottom: 1rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.alert-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.alert-metric {
    text-align: center;
}

.alert-metric .metric-label {
    display: block;
    color: #94A3B8;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.alert-metric .metric-value {
    display: block;
    color: #FF4500;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Data Source Details */
.data-source-details {
    margin-top: 3rem;
}

.detail-panel {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.detail-panel h3 {
    color: #F8FAFC;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.integration-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.integration-stats .stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
}

.integration-stats .stat-label {
    display: block;
    color: #94A3B8;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.integration-stats .stat-value {
    display: block;
    color: #FF4500;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Report Generation */
.report-generation {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-top: 3rem;
    text-align: center;
}

.report-generation .panel-header h3 {
    color: #F8FAFC;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.report-generation .panel-header p {
    color: #94A3B8;
    margin-bottom: 2rem;
}

.report-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Multi-page Layout */
@media (max-width: 1200px) {
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-cards {
        grid-template-columns: 1fr;
    }

    #fire-risk .section-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    #fire-risk .map-container {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .feature-cards-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tab-btn {
        justify-content: center;
    }

    .integration-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-options {
        flex-direction: column;
        align-items: center;
    }
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF4500, #FF8C00);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #F8FAFC, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard Overview Styles */
.dashboard-overview {
    margin-top: 3rem;
}

.overview-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(20, 40, 20, 0.8);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 80, 45, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 280px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.25), rgba(245, 158, 11, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FB923C;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.2);
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF4500;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #CBD5E1;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Content Sections */
.section-content {
    display: grid;
    gap: 2rem;
    align-items: start;
}

/* Dashboard Main Content */
.dashboard-main-content {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
}

.section-title h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0;
}

.section-subtitle {
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: 400;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10B981;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Activity Feed */
.activity-feed-section {
    background: rgba(20, 40, 20, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 80, 45, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    height: 450px;
    display: flex;
    flex-direction: column;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    flex: 1;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.activity-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateX(4px);
    border-color: rgba(255, 69, 0, 0.2);
}

.activity-item.new::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #10B981, #FF4500);
    border-radius: 0 2px 2px 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 140, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4500;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.activity-description {
    color: #94A3B8;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.activity-time {
    color: #64748B;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions-section {
    background: rgba(20, 40, 20, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 80, 45, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 12px;
    color: #F8FAFC;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.quick-action-btn:hover {
    background: rgba(255, 69, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 69, 0, 0.4);
}

.action-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4500;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.action-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.action-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #F8FAFC;
}

.action-subtitle {
    font-size: 0.8rem;
    color: #94A3B8;
}

/* Live Activity Feed Overview */
.conditions-overview {
    background: rgba(20, 40, 20, 0.85);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 80, 45, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    margin-top: 2rem;
}

.conditions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.condition-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    min-height: 120px;
    background: rgba(30, 41, 59, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.condition-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: all 0.3s ease;
}

.condition-card.satellite::before {
    background: linear-gradient(180deg, #FF4500, #FF8C00);
}

.condition-card.risk-update::before {
    background: linear-gradient(180deg, #F59E0B, #EF4444);
}

.condition-card.weather::before {
    background: linear-gradient(180deg, #3B82F6, #06B6D4);
}

.condition-card.system::before {
    background: linear-gradient(180deg, #10B981, #059669);
}

.condition-card:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
    border-color: rgba(255, 69, 0, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.condition-card.new::before {
    box-shadow: 0 0 10px currentColor;
    animation: newActivityPulse 2s ease-in-out infinite;
}

@keyframes newActivityPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.condition-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.condition-card.satellite .condition-icon {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.2));
    color: #FF4500;
}

.condition-card.risk-update .condition-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.2));
    color: #F59E0B;
}

.condition-card.weather .condition-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.2));
    color: #3B82F6;
}

.condition-card.system .condition-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
    color: #10B981;
}

.condition-card:hover .condition-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.condition-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.condition-label {
    font-weight: 700;
    color: #F8FAFC;
    font-size: 1.2rem;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.condition-location {
    color: #94A3B8;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.condition-value {
    color: #64748B;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.condition-trend {
    display: none;
}

/* Responsive Design for Live Activity Feed */
@media (max-width: 1200px) {
    .conditions-grid {
        max-height: 350px;
    }

    .condition-card {
        padding: 1.25rem;
    }

    .condition-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .conditions-overview {
        padding: 2rem;
    }

    .conditions-grid {
        gap: 1.25rem;
        max-height: 300px;
    }

    .condition-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .condition-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .condition-label {
        font-size: 1rem;
    }

    .condition-location {
        font-size: 0.85rem;
    }

    .regional-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .region-header {
        min-height: 2.75rem;
        padding: 0.5rem 0 0.5rem 0;
        gap: 0.5rem;
    }

    .region-name {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .risk-badge {
        font-size: 0.6rem;
        padding: 0.35rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .conditions-overview {
        padding: 1.5rem;
    }

    .conditions-grid {
        gap: 1.25rem;
        max-height: 300px;
    }

    .condition-card {
        padding: 1rem;
        gap: 0.75rem;
        flex-direction: column;
        text-align: center;
    }

    .condition-card::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: auto;
        height: 3px;
    }

    .condition-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .condition-info {
        align-items: center;
        text-align: center;
    }

    .condition-label {
        font-size: 0.95rem;
    }

    .condition-location {
        font-size: 0.8rem;
    }

    .regional-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .region-card {
        min-height: 170px;
        padding: 1rem 1rem 1.25rem 1rem;
    }

    .region-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-height: auto;
        padding: 0.5rem 0;
        margin-bottom: 0.75rem;
    }

    .region-name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        width: 100%;
    }

    .risk-badge {
        align-self: flex-start;
        font-size: 0.65rem;
        padding: 0.4rem 0.7rem;
    }
}

/* Regional Summary */
.regional-summary {
    background: rgba(20, 40, 20, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 80, 45, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-top: 1rem;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.regional-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    flex: 1;
}

.region-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.region-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: all 0.3s ease;
}

.region-card.very-high-risk::before {
    background: linear-gradient(180deg, #EF4444, #DC2626);
}

.region-card.high-risk::before {
    background: linear-gradient(180deg, #F59E0B, #D97706);
}

.region-card.moderate-risk::before {
    background: linear-gradient(180deg, #3B82F6, #2563EB);
}

.region-card.low-risk::before {
    background: linear-gradient(180deg, #10B981, #059669);
}

.region-card:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
    border-color: rgba(255, 69, 0, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.region-card.new::before {
    box-shadow: 0 0 10px currentColor;
    animation: newActivityPulse 2s ease-in-out infinite;
}

.region-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.region-card.very-high-risk .region-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.2));
    color: #EF4444;
}

.region-card.high-risk .region-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.2));
    color: #F59E0B;
}

.region-card.moderate-risk .region-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2));
    color: #3B82F6;
}

.region-card.low-risk .region-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
    color: #10B981;
}

.region-card:hover .region-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.region-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.region-name {
    font-weight: 700;
    color: #F8FAFC;
    font-size: 1.2rem;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.risk-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.risk-badge.very-high {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.risk-badge.high {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.risk-badge.moderate {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.risk-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.region-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #94A3B8;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.risk-percentage {
    font-weight: 700;
    font-size: 2rem;
    margin-right: 1rem;
}

.region-card.very-high-risk .risk-percentage {
    color: #EF4444;
}

.region-card.high-risk .risk-percentage {
    color: #F59E0B;
}

.region-card.moderate-risk .risk-percentage {
    color: #3B82F6;
}

.region-card.low-risk .risk-percentage {
    color: #10B981;
}

.region-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #64748B;
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.detail-item i {
    color: #94A3B8;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.detail-item span {
    color: #F8FAFC;
    font-weight: 500;
}

/* Enhanced Search functionality styles */
.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(4px);
}

.suggestion-item i {
    color: #FF6B35;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.suggestion-item span {
    color: #F8FAFC;
    font-size: 0.875rem;
    font-weight: 500;
}

.search-result-marker {
    position: relative;
    color: #ff6b35;
    font-size: 24px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.search-marker-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-marker-container i {
    color: #FF6B35;
    font-size: 1.5rem;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.search-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: searchPulse 2s infinite;
    z-index: 1;
}

@keyframes searchPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.search-popup {
    text-align: center;
    min-width: 150px;
}

.search-popup h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
}

.search-popup p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

/* Risk Zone Popup Styles */
.risk-zone-popup {
    min-width: 200px;
    text-align: left;
}

.risk-zone-popup h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.risk-zone-popup p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.zone-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zone-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.zone-stats .stat-label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.zone-stats .stat-value {
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Map highlight animation for search results */
.map-container.search-highlight,
.canvas-container.search-highlight {
    animation: mapSearchHighlight 3s ease-in-out;
    border: 2px solid rgba(255, 107, 53, 0.6);
}

@keyframes mapSearchHighlight {
    0% {
        box-shadow: 0 0 0 rgba(255, 107, 53, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 107, 53, 0.8);
        transform: scale(1);
    }
}

/* Processing toast animation */
.toast.processing {
    background: linear-gradient(135deg, #F59E0B, #F97316);
}

.toast.processing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #FCD34D, #F59E0B);
    animation: processingPulse 1.5s ease-in-out infinite;
}

@keyframes processingPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}


@keyframes mapSearchHighlight {
    0% {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.8), 0 0 60px rgba(255, 107, 53, 0.4);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.detail-item i {
    color: #94A3B8;
    font-size: 0.9rem;
}

.detail-item span {
    color: #F8FAFC;
    font-size: 0.8rem;
    font-weight: 500;
}

#fire-risk .section-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Professional Map Container */
.map-container {
    position: relative;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    grid-column: span 2;
}

.map {
    height: 600px;
    border-radius: 20px;
    border: 3px solid rgba(16, 185, 129, 0.4);
    box-shadow: 
        inset 0 0 30px rgba(16, 185, 129, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.3);
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.control-btn {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 69, 0, 0.3);
    color: #F8FAFC;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.control-btn:hover {
    background: rgba(255, 69, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.25);
}

.control-btn.primary {
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    border: none;
    color: white;
}

.control-btn.primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(255, 69, 0, 0.4);
}

/* Enhanced Risk Panel */
.risk-panel {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    height: 700px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.panel-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
}

.panel-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 0.5rem;
}

.update-time {
    color: #94A3B8;
    font-size: 0.9rem;
}

/* Enhanced Risk Items */
.risk-zones {
    margin-bottom: 2rem;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.risk-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: all 0.3s ease;
}

.high-risk::before { background: #EF4444; }
.moderate-risk::before { background: #F59E0B; }
.low-risk::before { background: #10B981; }

.risk-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 12px currentColor;
}

.high-risk .risk-color { background: #EF4444; }
.moderate-risk .risk-color { background: #F59E0B; }
.low-risk .risk-color { background: #10B981; }

.risk-info {
    flex: 1;
}

.risk-level {
    font-weight: 600;
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.risk-area {
    color: #94A3B8;
    font-size: 0.9rem;
}

.risk-percentage {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced Model Info */
.model-info {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 69, 0, 0.1);
}

.model-info h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #F8FAFC;
}

.performance-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
}

.metric:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
}

.metric-label {
    display: block;
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10B981, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.25rem;
}

/* Enhanced Simulation Layout */
.simulation-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.simulation-container {
    position: relative;
}

.simulation-controls {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.control-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #CBD5E1;
}

.speed-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(51, 65, 85, 0.5);
    outline: none;
    cursor: pointer;
}

.speed-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4);
}

.time-display {
    color: #94A3B8;
    font-size: 0.9rem;
    text-align: center;
}

/* Enhanced Monitoring Panel */
.simulation-monitoring {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    height: 700px;
    overflow-y: auto;
}

.monitoring-chart-container {
    height: 180px;
    margin-bottom: 1.5rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
}

.monitoring-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.monitoring-stat {
    text-align: left;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.monitoring-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF4500, #FF8C00);
}

.monitoring-stat:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.15);
}

.monitoring-stat .stat-label {
    display: block;
    color: #94A3B8;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.monitoring-stat .stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF4500;
}

/* Enhanced Parameters Panel */
.parameters-panel {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 69, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    height: 700px;
    overflow-y: auto;
}

.parameters-panel h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #F8FAFC;
}

.parameter-grid {
    display: grid;
    gap: 1rem;
}

.parameter-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.parameter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF4500, #FF8C00);
}

.parameter-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.15);
}

.parameter-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 140, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4500;
    font-size: 1.1rem;
}

.parameter-info {
    flex: 1;
}

.parameter-label {
    display: block;
    font-size: 0.9rem;
    color: #94A3B8;
    margin-bottom: 0.25rem;
}

.parameter-value {
    display: block;
    font-weight: 600;
    color: #F8FAFC;
    font-size: 1rem;
}

/* Enhanced Alerts Section */
.alerts-container {
    display: grid;
    gap: 3rem;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.alert-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: all 0.3s ease;
}

.alert-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.alert-item.critical::before { background: #EF4444; }
.alert-item.warning::before { background: #F59E0B; }
.alert-item.info::before { background: #FF4500; }

.alert-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.alert-item.critical .alert-icon {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.alert-item.warning .alert-icon {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.alert-item.info .alert-icon {
    background: linear-gradient(135deg, #FF4500, #D97706);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 0.5rem;
}

.alert-description {
    color: #94A3B8;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.alert-time {
    color: #64748B;
    font-size: 0.9rem;
}

.alert-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-item.critical .alert-status {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-item.warning .alert-status {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-item.info .alert-status {
    background: rgba(255, 69, 0, 0.2);
    color: #FF4500;
    border: 1px solid rgba(255, 69, 0, 0.3);
}

.alert-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.action-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    background: rgba(51, 65, 85, 0.3);
    color: #CBD5E1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 69, 0, 0.1);
    color: #FF4500;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.25);
}

.action-btn.primary {
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    border: none;
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(255, 69, 0, 0.4);
}

/* Resource Optimization Styles */
.resource-optimization-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 700px;
}

.resource-config-panel,
.optimization-results,
.deployment-map-container {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    height: 700px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.resource-config-panel {
    flex: 0.8;
    min-width: 280px;
}

.optimization-results {
    flex: 1.2;
    min-width: 380px;
}

.deployment-map-container {
    flex: 1.5;
    min-width: 450px;
}

.panel-header {
    margin-bottom: 2rem;
    text-align: center;
}

.panel-header h3 {
    color: #F8FAFC;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.panel-header p {
    color: #94A3B8;
    font-size: 0.9rem;
}

.resource-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.resource-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #CBD5E1;
    font-weight: 500;
    font-size: 0.9rem;
}

.resource-input-group label i {
    color: #FF4500;
    width: 16px;
    text-align: center;
}

.resource-input-group input {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    background: rgba(51, 65, 85, 0.3);
    color: #F8FAFC;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.resource-input-group input:focus {
    outline: none;
    border-color: #FF4500;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.unit-label {
    color: #94A3B8;
    font-size: 0.8rem;
    text-align: center;
}

.optimization-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    margin-top: 1rem;
}

.score-label {
    color: #CBD5E1;
    font-size: 0.9rem;
}

.score-value {
    color: #FF4500;
    font-size: 1.2rem;
    font-weight: 700;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4500;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-value {
    color: #F8FAFC;
    font-size: 1.2rem;
    font-weight: 700;
}

.metric-label {
    color: #94A3B8;
    font-size: 0.8rem;
}

.deployment-breakdown {
    margin-bottom: 2rem;
}

.deployment-breakdown h4 {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.resource-breakdown-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
}

.breakdown-resource {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #CBD5E1;
    font-size: 0.9rem;
}

.breakdown-count {
    color: #FF4500;
    font-weight: 600;
}

.optimization-recommendations h4 {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-1px);
}

.recommendation-item.placeholder {
    color: #64748B;
    font-style: italic;
}

.recommendation-item i {
    color: #FF4500;
    flex-shrink: 0;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #94A3B8;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.firefighters {
    background: #FF4500;
}

.legend-color.water-tanks {
    background: #3B82F6;
}

.legend-color.drones {
    background: #10B981;
}

.legend-color.helicopters {
    background: #8B5CF6;
}

#deployment-map {
    height: calc(100% - 60px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 69, 0, 0.2);
    flex: 1;
}

/* Deployment Marker Styles */
.deployment-marker {
    background: transparent !important;
    border: none !important;
}

.deployment-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

.deployment-icon i {
    font-size: 12px;
}

.unit-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Responsive Design for Resource Optimization */
@media (max-width: 1200px) {
    .resource-optimization-layout {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }

    .resource-config-panel,
    .optimization-results,
    .deployment-map-container {
        height: 600px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .resource-optimization-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .resource-config-panel,
    .optimization-results,
    .deployment-map-container {
        height: 500px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .map-legend {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Enhanced Data Sources */
.data-sources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.source-card {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.source-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1;
}

.source-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF4500, #FF8C00);
    z-index: 3;
}

.source-card:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.25);
    border-color: rgba(255, 69, 0, 0.4);
}

.source-card:hover::before {
    background: rgba(15, 23, 42, 0.65);
}

/* Specific background images for each data source type */
.source-card[data-source="satellite"] {
    background-image: url('https://images.unsplash.com/photo-1446776653964-20c1d3a81b06?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.source-card[data-source="weather"] {
    background-image: url('https://images.unsplash.com/photo-1504608524841-42fe6f032b4b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.source-card[data-source="vegetation"] {
    background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.source-card[data-source="terrain"] {
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.source-card[data-source="human"] {
    background-image: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?ixlib=rb-4.0.3&auto=format&fit=crop&w=2044&q=80');
}

.source-card[data-source="sensors"] {
    background-image: url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.source-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #FF4500;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 69, 0, 0.4);
}

.source-info {
    position: relative;
    z-index: 2;
}

.source-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.source-info p {
    color: #E2E8F0;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.source-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.source-status.active {
    background: rgba(16, 185, 129, 0.4);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.source-status.warning {
    background: rgba(245, 158, 11, 0.4);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.source-status.normal {
    background: rgba(59, 130, 246, 0.4);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Carbon Emissions & Environmental Impact Styles */
.environmental-impact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.carbon-emissions-panel,
.environmental-impact-panel,
.impact-visualization {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    height: 700px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.emission-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #F59E0B;
    font-size: 0.9rem;
    font-weight: 500;
}

.emission-status .status-dot.warning {
    background: #F59E0B;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.emissions-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.emission-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
}

.emission-metric:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.15);
}

.emission-metric .metric-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F59E0B;
    font-size: 1rem;
    flex-shrink: 0;
}

.emission-metric .metric-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.emission-metric .metric-value {
    color: #F59E0B;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emission-metric .metric-label {
    color: #94A3B8;
    font-size: 0.7rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.emissions-chart-container {
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.emissions-chart-container h4 {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.emissions-chart-container canvas {
    height: 180px !important;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
}

.emission-factors {
    flex-shrink: 0;
}

.emission-factors h4 {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.factors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
}

.factor-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-1px);
}

.factor-item i {
    color: #10B981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.factor-type {
    color: #CBD5E1;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

.factor-value {
    color: #F59E0B;
    font-size: 0.8rem;
    font-weight: 600;
}

.impact-assessment {
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.severity-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #10B981 0deg, #F59E0B 90deg, #EF4444 180deg, #DC2626 270deg, #10B981 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.95);
}

.score-value {
    color: #F8FAFC;
    font-size: 2rem;
    font-weight: 700;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.score-max {
    color: #94A3B8;
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 1;
    margin-top: 2px;
}

.score-label {
    color: #94A3B8;
    font-size: 0.9rem;
    text-align: center;
}

.impact-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.impact-category {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
}

.impact-category:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-1px);
}

.impact-category .category-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(255, 140, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4500;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.category-label {
    color: #94A3B8;
    font-size: 0.75rem;
    word-wrap: break-word;
}

.category-value {
    color: #F8FAFC;
    font-size: 0.9rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.recovery-timeline {
    margin-bottom: 2rem;
}

.recovery-timeline h4 {
    color: #CBD5E1;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #10B981, #F59E0B, #EF4444);
}

.timeline-phase {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.phase-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(30, 41, 59, 0.9);
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    z-index: 2;
}

.phase-marker.immediate { background: #10B981; }
.phase-marker.early { background:green; }
.phase-marker.restoration { background: #F59E0B; }
.phase-marker.full { background: #EF4444; }

.phase-content {
    flex: 1;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
}

.phase-title {
    color: #F8FAFC;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.phase-duration {
    color: #F59E0B;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.phase-description {
    color: #94A3B8;
    font-size: 0.85rem;
    line-height: 1.3;
}

.mitigation-recommendations h4 {
    color: #CBD5E1;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.recommendations-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendations-container .recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.recommendations-container .recommendation-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-1px);
}

.recommendations-container .recommendation-item i {
    color: #FF4500;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.viz-controls {
    display: flex;
    gap: 0.5rem;
}

.viz-btn {
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 8px;
    color: #94A3B8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viz-btn:hover {
    background: rgba(255, 69, 0, 0.1);
    color: #94A3B8;
}

.viz-btn.active {
    background: rgba(255, 69, 0, 0.2);
    color: #FF4500;
    border-color: rgba(255, 69, 0, 0.4);
}

.visualization-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
    flex: 1;
    min-height: 250px;
}

.viz-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.viz-panel.active {
    opacity: 1;
    visibility: visible;
}

.viz-panel canvas {
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
}

.key-statistics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    text-align: center;
}

.stat-label {
    color: #94A3B8;
    font-size: 0.8rem;
}

.stat-value {
    color: #FF4500;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Restoration Methods Styles */
.restoration-methods {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method-item {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
}

.method-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.15);
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.method-name {
    color: #F8FAFC;
    font-weight: 600;
    font-size: 1rem;
}

.method-percentage {
    color: #10B981;
    font-weight: 700;
    font-size: 1.1rem;
}

.method-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(51, 65, 85, 0.6);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.method-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.method-description {
    color: #94A3B8;
    font-size: 0.85rem;
    line-height: 1.4;
    font-style: italic;
}

.analysis-controls {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.control-section h4 {
    color: #CBD5E1;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.parameter-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: 500;
}

.control-group input,
.control-group select {
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    color: #F8FAFC;
    font-size: 0.9rem;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: #FF4500;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.analysis-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-actions .action-btn {
    justify-content: center;
    padding: 1.25rem 2rem;
    font-size: 0.95rem;
}

/* Safe Evacuation Route Mapping Styles */
.evacuation-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
}

.evacuation-map-container {
    position: relative;
    background: rgba(20, 40, 20, 0.7);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 80, 45, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.evacuation-map {
    height: 700px;
    border-radius: 20px;
    position: relative;
}

.evacuation-controls {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 280px;
}

.evacuation-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    background: rgba(51, 65, 85, 0.3);
    color: #CBD5E1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    margin-bottom: 0.75rem;
    width: 100%;
    justify-content: center;
}

.evacuation-btn:hover {
    background: rgba(255, 69, 0, 0.1);
    color: #FF4500;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.25);
}

.evacuation-btn.primary {
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    border: none;
    color: white;
}

.evacuation-btn.primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(255, 69, 0, 0.4);
}

.route-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 69, 0, 0.1);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #CBD5E1;
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-radius: 4px;
    background: rgba(51, 65, 85, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked {
    background: #FF4500;
    border-color: #FF4500;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.fire-risk-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

.fire-risk-legend h4 {
    color: #F8FAFC;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #CBD5E1;
    font-size: 0.85rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.danger { background: linear-gradient(45deg, #DC2626, #EF4444); }
.legend-color.warning { background: linear-gradient(45deg, #D97706, #F59E0B); }
.legend-color.caution { background: linear-gradient(45deg, #CA8A04, #EAB308); }
.legend-color.safe { background: linear-gradient(45deg, #059669, #10B981); }

.alert-banner {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
    color: white;
    min-width: 300px;
    animation: slideInRight 0.5s ease-out;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    margin-left: 1rem;
    transition: background 0.3s ease;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.evacuation-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 700px;
    overflow-y: auto;
}

.sidebar-panel {
    background: rgba(30, 41, 59, 0.85);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-panel:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
}

.panel-header h3 {
    color: #F8FAFC;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10B981;
    font-size: 0.85rem;
    font-weight: 500;
}

.route-safety-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.route-safety-badge.safe {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.route-safety-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.route-safety-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.metric-icon.danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.metric-icon.safe {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.metric-icon.info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 500;
}

.metric-value {
    color: #F8FAFC;
    font-size: 1.2rem;
    font-weight: 700;
}

.route-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.route-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    position: relative;
}

.route-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 1.75rem;
    width: 2px;
    height: 1rem;
    background: linear-gradient(180deg, #FF4500, transparent);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.step-instruction {
    color: #F8FAFC;
    font-weight: 500;
    font-size: 0.9rem;
}

.step-distance {
    color: #94A3B8;
    font-size: 0.8rem;
}

.route-actions {
    display: flex;
    gap: 1rem;
}

.safe-zones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.safe-zone-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
}

.safe-zone-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
}

.zone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    animation: zonePulse 2s infinite;
}

.zone-icon.hospital {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.zone-icon.shelter {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.zone-icon.school {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

@keyframes zonePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
}

.zone-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.zone-name {
    color: #F8FAFC;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.zone-details {
    color: #94A3B8;
    font-size: 0.8rem;
}

.zone-capacity {
    color: #64748B;
    font-size: 0.75rem;
}

.zone-status {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.zone-status.available {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.zone-status.full {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
}

.weather-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-1px);
}

.weather-item i {
    color: #FF4500;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.weather-label {
    color: #94A3B8;
    font-size: 0.75rem;
}

.weather-value {
    color: #F8FAFC;
    font-weight: 600;
    font-size: 0.85rem;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 500;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.ai-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message-content {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 69, 0, 0.1);
    flex: 1;
}

.message-content p {
    color: #CBD5E1;
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.message-time {
    color: #64748B;
    font-size: 0.7rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

#ai-chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    color: #F8FAFC;
    font-size: 0.85rem;
}

#ai-chat-input:focus {
    outline: none;
    border-color: #FF4500;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.chat-send-btn {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

.simulation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.simulation-modal.active {
    opacity: 1;
    visibility: visible;
}

.simulation-modal .modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
}

.modal-header h3 {
    color: #F8FAFC;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 69, 0, 0.1);
    color: #FF4500;
}

.simulation-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    color: #CBD5E1;
    font-size: 0.9rem;
    font-weight: 500;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(51, 65, 85, 0.5);
    outline: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4);
}

.control-group select {
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    color: #F8FAFC;
    font-size: 0.9rem;
}

.control-group select:focus {
    outline: none;
    border-color: #FF4500;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.blocked-roads-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simulation-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Route Marker Styles */
.safe-zone-marker {
    background: transparent !important;
    border: none !important;
}

.safe-zone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: safeZonePulse 2s infinite;
}

@keyframes safeZonePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
}

.route-marker {
    background: transparent !important;
    border: none !important;
}

.start-marker i {
    color: #3B82F6;
    font-size: 24px;
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
    animation: markerBounce 2s infinite;
}

.dest-marker i {
    color: #10B981;
    font-size: 24px;
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.6);
    animation: flagWave 3s infinite;
}

.user-location-marker i {
    color: #FF4500;
    font-size: 24px;
    text-shadow: 0 2px 8px rgba(255, 69, 0, 0.6);
    animation: userPulse 1.5s infinite;
}

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

@keyframes flagWave {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes userPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Tutorial Modal Styles */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tutorial-modal.active {
    opacity: 1;
    visibility: visible;
}

.tutorial-modal .modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tutorial-content {
    margin: 2rem 0;
}

.tutorial-step {
    display: none;
}

.tutorial-step.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-header h4 {
    color: #F8FAFC;
    font-size: 1.3rem;
    margin: 0;
}

.tutorial-step p {
    color: #CBD5E1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tutorial-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    margin: 1rem 0;
}

.tutorial-image span {
    color: #94A3B8;
    font-weight: 600;
    font-size: 1.1rem;
}

.tool-examples {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-example {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.tool-example i {
    color: #10B981;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.tool-example span {
    color: #CBD5E1;
    font-size: 0.95rem;
}

.tutorial-step ul {
    color: #CBD5E1;
    padding-left: 1.5rem;
}

.tutorial-step li {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.scoring-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.score-item i {
    color: #F59E0B;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.score-item span {
    color: #CBD5E1;
    font-size: 0.95rem;
}

.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.tutorial-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tutorial-btn.primary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
}

.tutorial-btn.secondary {
    background: rgba(51, 65, 85, 0.6);
    color: #CBD5E1;
}

.tutorial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.tutorial-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tutorial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #10B981;
    transform: scale(1.2);
}

/* Evacuation Route Line Animation */
.evacuation-route-line {
    animation: routeGlow 3s ease-in-out infinite;
}

.evacuation-route-line.pulsing {
    animation: routeGlow 2s ease-in-out infinite, routePulse 1s ease-in-out infinite;
}

@keyframes routeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.9));
    }
}

@keyframes routePulse {
    0%, 100% {
        stroke-width: 6;
        stroke-opacity: 0.8;
    }
    50% {
        stroke-width: 8;
        stroke-opacity: 1;
    }
}

/* Popup Styles */
.risk-popup, .safe-zone-popup {
    text-align: center;
    padding: 0.5rem;
}

.safe-zone-popup h4 {
    color: #1F2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.safe-zone-popup p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #4B5563;
}

.navigate-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.navigate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.full-indicator {
    color: #F59E0B;
    font-weight: 600;
    font-size: 0.8rem;
}

/* User Message Styling */
.user-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: flex-end;
}

.user-message-content {
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid rgba(255, 69, 0, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Range Slider Styling */
.control-group input[type="range"] {
    background: linear-gradient(to right, 
        rgba(255, 69, 0, 0.3) 0%, 
        rgba(255, 69, 0, 0.3) var(--value, 50%), 
        rgba(51, 65, 85, 0.5) var(--value, 50%), 
        rgba(51, 65, 85, 0.5) 100%);
}

.control-group input[type="range"]::-webkit-slider-thumb {
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4), 0 0 20px rgba(255, 69, 0, 0.2);
}

.control-group input[type="range"]::-moz-range-thumb {
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4);
}

/* Enhanced Alert Banner */
.alert-banner.info {
    background: rgba(59, 130, 246, 0.95);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.alert-banner.warning {
    background: rgba(245, 158, 11, 0.95);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

/* Responsive Design for Evacuation Routes */
@media (max-width: 1200px) {
    .evacuation-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .evacuation-sidebar {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .evacuation-controls {
        position: static;
        margin-bottom: 1rem;
        min-width: auto;
        width: 100%;
    }

    .fire-risk-legend {
        position: static;
        margin-top: 1rem;
        min-width: auto;
    }

    .evacuation-sidebar {
        grid-template-columns: 1fr;
    }

    .weather-grid {
        grid-template-columns: 1fr;
    }

    .route-actions {
        flex-direction: column;
    }

    .simulation-actions {
        flex-direction: column;
    }
}

/* Responsive Design for Environmental Impact */
@media (max-width: 1200px) {
    .environmental-impact-layout {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .impact-visualization {
        grid-column: span 2;
    }

    .analysis-controls {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carbon-emissions-panel,
    .environmental-impact-panel,
    .impact-visualization {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .environmental-impact-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .carbon-emissions-panel,
    .environmental-impact-panel,
    .impact-visualization {
        padding: 1rem;
        min-height: 350px;
    }

    .emissions-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .impact-categories {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .factors-grid {
        grid-template-columns: 1fr;
    }

    .key-statistics {
        grid-template-columns: 1fr;
    }

    .parameter-controls {
        grid-template-columns: 1fr;
    }

    .viz-controls {
        flex-wrap: wrap;
    }

    .emission-metric {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .impact-category {
        padding: 0.5rem;
        gap: 0.5rem;
    }
}

/* Enhanced Analytics Section */
.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.analytics-card {
    background: rgba(30, 41, 59, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.analytics-card:hover {
    background: rgba(255, 69, 0, 0.03);
    transform: translateY(-2px);
}

.analytics-card.full-width {
    grid-column: 1 / -1;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 0 16px 16px 0;
}

.analytics-card.wide {
    grid-column: span 2;
}

.analytics-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 0.5rem;
}

.chart-description {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.chart-container {
    height: 300px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    position: relative;
    padding: 1rem;
}

.gauge-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    overflow: hidden;
}

.gauge-item {
    text-align: center;
}

.gauge-wrapper {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.gauge-wrapper:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-2px);
}

.gauge-wrapper canvas {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto;
    flex-shrink: 0;
}

.gauge-label {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.gauge-value {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.25rem;
    text-align: center;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateX(4px);
}

.stat-number {
    font-weight: 700;
    color: #FF4500;
    font-size: 1.1rem;
}

.stat-number.critical {
    color: #EF4444;
}

.alert-stats-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 69, 0, 0.1);
}

.alert-stats-summary .stat-row {
    padding: 0.75rem 0;
    background: none;
    border: none;
    font-size: 0.9rem;
}

.performance-chart {
    height: 250px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 69, 0, 0.1);
}

/* Fire Animation Enhancements */
@keyframes fireGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.9), 0 0 40px rgba(245, 158, 11, 0.6);
    }
}

.fire-active {
    animation: fireGlow 2s infinite;
}

/* Custom Fire Marker Styles */
.fire-marker {
    background: transparent !important;
    border: none !important;
}

.fire-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.fire-flame {
    font-size: 32px !important;
    color: #EF4444 !important;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    animation: fireFlicker 1.5s infinite alternate;
    z-index: 2;
    position: relative;
}

.fire-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
    z-index: 1;
}

.fire-sparks {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 80%);
    border-radius: 50%;
    animation: sparkle 3s infinite;
    z-index: 0;
}

@keyframes fireFlicker {
    0% {
        transform: scale(1) rotate(-1deg);
        color: #EF4444;
    }
    50% {
        transform: scale(1.1) rotate(1deg);
        color: #F59E0B;
    }
    100% {
        transform: scale(1.05) rotate(-0.5deg);
        color: #EF4444;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
    }
    33% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1) rotate(120deg);
    }
    66% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9) rotate(240deg);
    }
}

.origin-fire .fire-flame {
    font-size: 36px !important;
    animation: fireFlicker 1s infinite alternate, fireGlow 2s infinite;
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0;
    }
}

@keyframes spreadGrow {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fire-burn-area {
    animation: burnSpread 2s ease-out;
}

@keyframes burnSpread {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* Enhanced Loading States */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    color: #94A3B8;
    font-size: 0.9rem;
}

.chart-loading::after {
    content: 'Loading chart data...';
    animation: pulse 2s infinite;
}

.loading-skeleton {
    background: linear-gradient(90deg, rgba(51, 65, 85, 0.3) 25%, rgba(255, 69, 0, 0.1) 50%, rgba(51, 65, 85, 0.3) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Professional Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 69, 0, 0.2);
    border-radius: 50%;
    border-top-color: #FF4500;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    color: #F8FAFC;
    font-size: 0.9rem;
    min-width: 300px;
    transform: translateX(100%);
    animation: slideInRight 0.3s ease-out forwards;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(15, 23, 42, 0.95);
}

.toast.success::before {
    content: '✓ ';
    color: #10B981;
    font-weight: bold;
}

.toast.warning {
    border-color: rgba(245, 158, 11, 0.5);
}

.toast.warning::before {
    content: '⚠ ';
    color: #F59E0B;
    font-weight: bold;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
}

.toast.error::before {
    content: '✕ ';
    color: #EF4444;
    font-weight: bold;
}

@keyframes slideInRight {
    to { transform: translateX(0); }
}

/* Enhanced Tooltips */
.tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #F8FAFC;
    font-size: 0.8rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F8FAFC;
}

.modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 69, 0, 0.1);
    color: #FF4500;
}

/* Professional Search Bar */
.search-container {
    position: relative;
    max-width: 600px;
    min-width: 400px;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-radius: 16px;
    color: #F8FAFC;
    font-size: 1rem;
    font-weight: 400;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input:focus {
    outline: none;
    border-color: #FF4500;
    background: rgba(255, 69, 0, 0.08);
    box-shadow:
        0 0 0 4px rgba(255, 69, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.search-input:hover {
    border-color: rgba(255, 69, 0, 0.5);
    background: rgba(30, 41, 59, 0.9);
}

.search-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #FF4500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.search-container:focus-within .search-icon {
    color: #FF8C00;
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.processing {
    background: rgba(255, 69, 0, 0.2);
    color: #FF4500;
    border: 1px solid rgba(255, 69, 0, 0.3);
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4500, #FF8C00);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* Enhanced Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #FF4500;
}

.breadcrumb-item.active {
    color: #FF4500;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #64748B;
    margin: 0 0.25rem;
}

/* Team Footer Styles */
.team-footer {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.95) 50%, 
        rgba(15, 23, 42, 0.95) 100%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 69, 0, 0.1) 0%, transparent 70%);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 69, 0, 0.3);
    margin-top: 4rem;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.team-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InRlYW1CZyIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiPgogICAgICA8Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIyIiBmaWxsPSJyZ2JhKDI1NSwgNjksIDAsIDAuMSkiLz4KICAgIDwvcGF0dGVybj4KICA8L2RlZnM+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCN0ZWFtQmcpIi8+Cjwvc3ZnPg==');
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.footer-header h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F8FAFC, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.3);
}

.footer-header p {
    font-size: 1.2rem;
    color: #94A3B8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF4500;
    margin-top: 1rem;
}

.team-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.4));
    animation: fireFlicker 2s infinite alternate;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    position: relative;
}

.team-member.leader {
    z-index: 10;
}

.member-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 1rem;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF4500, #FF8C00, #FF4500);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.team-member.leader .member-card {
    border: 2px solid rgba(255, 215, 0, 0.4);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.2);
}

.team-member.leader .member-card::before {
    background: linear-gradient(90deg, #FFD700, #FF8C00, #FFD700);
}

.member-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 69, 0, 0.3);
    border-color: rgba(255, 69, 0, 0.5);
}

.member-image-container {
    position: relative;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
}

.member-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 69, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.team-member.leader .member-image {
    border: 4px solid rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.4);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.member-card:hover .member-image {
    transform: scale(1.1);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 69, 0, 0.5);
}

.member-card:hover .member-image img {
    transform: scale(1.1);
}

.leader-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    animation: crownGlow 2s infinite alternate;
}

@keyframes crownGlow {
    0% {
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
    }
}

.member-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.member-card:hover .member-glow {
    opacity: 1;
    animation: pulseGlow 2s infinite;
}

.member-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #F8FAFC, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.member-info .role {
    font-size: 0.8rem;
    font-weight: 600;
    color: #FF4500;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.member-info .college {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.member-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 45px;
}

.stat:hover {
    background: rgba(255, 69, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
}

.stat i {
    color: #FF4500;
    font-size: 0.8rem;
}

.stat span {
    color: #CBD5E1;
    font-size: 0.6rem;
    font-weight: 500;
    text-align: center;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 69, 0, 0.2);
    align-items: center;
}

.project-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #94A3B8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 69, 0, 0.2);
    color: #FF4500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 69, 0, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 69, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 69, 0, 0.2);
}

.contact-info {
    text-align: right;
}

.contact-info p {
    color: #94A3B8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-info p:last-child {
    color: #FF4500;
    font-weight: 500;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(255, 69, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 69, 0, 0.6);
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-header h2 {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .team-member.leader {
        order: -1;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .member-stats {
        gap: 0.5rem;
    }

    .stat {
        min-width: 60px;
        padding: 0.5rem;
    }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(51, 65, 85, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF4500, #FF8C00);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D97706, #F59E0B);
}

/* Custom scrollbar for activity feed and regional summary */
.activity-feed::-webkit-scrollbar,
.regional-grid::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track,
.regional-grid::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb,
.regional-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.6), rgba(16, 185, 129, 0.8));
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb:hover,
.regional-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #10B981, #059669);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .analytics-card.full-width {
        grid-column: 1 / -1;
    }

    .analytics-card.wide {
        grid-column: span 1;
    }

    .simulation-layout {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .simulation-container {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .section {
        padding: 6rem 1rem 2rem;
    }

    .header-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .nav-menu {
        order: 2;
        grid-column: 1;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .header-controls {
        order: 3;
        justify-self: center;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        flex-shrink: 0;
    }

    .nav-link::before {
        background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 140, 0, 0.05));
    }

    .nav-link:hover {
        box-shadow: 0 4px 16px rgba(255, 69, 0, 0.15);
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(255, 140, 0, 0.1));
        border: 1px solid rgba(255, 69, 0, 0.3);
        box-shadow: 0 4px 16px rgba(255, 69, 0, 0.2);
    }

    #fire-risk .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #fire-risk .map-container {
        grid-column: span 1;
    }

    .dashboard-main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .conditions-overview,
    .regional-summary {
        grid-column: span 1;
    }

    .conditions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .regional-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .risk-panel {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .simulation-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .analytics-card.full-width {
        grid-column: 1;
    }

    .data-sources-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 1rem;
    }

    .gauge-container {
        grid-template-columns: 1fr;
    }

    .performance-metrics,
    .monitoring-stats {
        grid-template-columns: 1fr;
    }

    .alert-actions {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .fixed-header,
    .map-controls,
    .simulation-controls,
    .alert-actions {
        display: none;
    }

    .section {
        break-inside: avoid;
        padding: 2rem 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .section-header::after {
        background: #ffffff;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #ffffff;
        color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Fire Cursor Trail Effects */
.fire-cursor-trail {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    animation: fireCursorTrail 1s ease-out forwards;
}

@keyframes fireCursorTrail {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
}

/* Fire Particle Effects */
.fire-particle {
    background: radial-gradient(circle, #FF4500, #FF8C00);
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.8);
    animation: fireParticleFloat 2s ease-out forwards;
}

@keyframes fireParticleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }
}

@keyframes fireParticleFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Fire Click Ripple Effects */
@keyframes fireClickRipple {
    0% {
        opacity: 1;
        width: 0px;
        height: 0px;
    }
    100% {
        opacity: 0;
        width: 200px;
        height: 200px;
    }
}

@keyframes emberFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-25vh) translateX(10px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) translateX(-5px) scale(0.8);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-75vh) translateX(15px) scale(1.1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(-10px) scale(0.5);
        opacity: 0;
    }
}

/* Restoration Progress Section */
.restoration-progress-section {
    margin: 1.5rem 0;
}

.restoration-progress-section h4 {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.progress-chart-container {
    height: 120px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    margin-bottom: 1rem;
}

.restoration-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 69, 0, 0.1);
}

.restoration-options h4 {
    color: #CBD5E1;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.strategy-item-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
}

.strategy-item-enhanced:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-1px);
}

.strategy-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strategy-header i {
    color: #10B981;
    font-size: 1.1rem;
    width: 16px;
    text-align: center;
}

.strategy-name {
    color: #CBD5E1;
    font-weight: 500;
    font-size: 0.9rem;
}

.strategy-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.strategy-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.strategy-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 600;
}

.strategy-timeline {
    color: #94A3B8;
    font-size: 0.8rem;
}

/* Legacy strategy list for backwards compatibility */
.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.strategy-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
}

.strategy-item:hover {
    background: rgba(255, 69, 0, 0.05);
    transform: translateY(-1px);
}

.strategy-item i {
    color: #10B981;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}