/* style.css - Cyber Surveillance Center Theme (Kaspersky-inspired) */
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Orbitron:wght@400;500;700;900&display=swap');

/* --- Base Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Advanced Keyframe Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.15; }
    25% { transform: translateY(-25px) translateX(15px); opacity: 0.3; }
    50% { transform: translateY(-15px) translateX(-15px); opacity: 0.25; }
    75% { transform: translateY(-35px) translateX(8px); opacity: 0.35; }
}

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

@keyframes glow-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6)) drop-shadow(0 0 40px rgba(255, 0, 255, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 60px rgba(255, 0, 255, 0.6));
    }
}

@keyframes number-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #050810 0%, #0a0e1a 50%, #0d1220 100%);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #e0f3ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Cyber Grid Background with hexagon pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 20% 50%, rgba(157, 0, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Animated Scanline Effect - Cyan */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), transparent);
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

:root {
    --fire-orange: #ff8c00;
    --fire-red: #ff6b6b;
    --alert-red: #ff0040;
    --status-green: #00ff88;
    --cyber-blue: #00d9ff;
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-purple: #9d00ff;
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --panel-bg: rgba(15, 20, 35, 0.9);
    --border-glow: rgba(0, 255, 255, 0.3);
    --text-primary: #e0f3ff;
    --text-secondary: #8aa9c7;
}


/* --- Cyber Surveillance Header - Minimalist Kaspersky Style --- */
header {
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(30px);
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.9);
    padding: 0.8rem 2rem;
    margin-bottom: 0;
    position: relative;
    flex-shrink: 0;
    z-index: 1000;
}

header .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 100%;
    gap: 1.5rem;
}

/* Logo with minimal glow */
header .site-logo {
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.3));
    opacity: 0.85;
}

/* Title Group - Ultra Minimal */
header .header-title-group {
    text-align: left;
}

header .header-title-group h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00ffff 0%, #00d9ff 50%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
}

header .header-title-group h1::before {
    display: none;
}

header .header-title-group p {
    margin: 0.15rem 0 0 0;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Real-Time Status - Compact */
.auto-refresh-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--status-green);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 255, 255, 0.08));
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.auto-refresh-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff88, 0 0 25px rgba(0, 255, 136, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.auto-refresh-indicator > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.auto-refresh-indicator #currentTime {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.auto-refresh-indicator #refresh-countdown {
    font-weight: 500;
    color: var(--status-green);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}



/* --- Main Layout: Kaspersky-Style with Left Sidebar --- */
main {
    flex-grow: 1;
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    padding: 0;
    margin: 0;
    z-index: 1;
    background: #000000;
    display: flex;
}

/* Mobile Sidebar Toggle Button */
#sidebar-toggle {
    display: none;
    position: fixed;
    top: 80px;
    left: 10px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(157, 0, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    cursor: pointer;
    z-index: 300;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.5);
}

#sidebar-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(157, 0, 255, 0.2));
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

#sidebar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

#sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

#sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    #sidebar-toggle {
        display: flex;
    }
}

/* Left Sidebar - Futuristic Cyberpunk Style */
#left-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.95) 0%, rgba(5, 8, 16, 0.98) 100%);
    backdrop-filter: blur(30px);
    border-right: 2px solid rgba(0, 255, 255, 0.2);
    box-shadow: 4px 0 40px rgba(0, 255, 255, 0.15), inset -1px 0 20px rgba(0, 255, 255, 0.05);
    z-index: 200;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
}

#left-sidebar::-webkit-scrollbar {
    width: 4px;
}

#left-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#left-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.4), rgba(157, 0, 255, 0.4));
    border-radius: 10px;
}

.sidebar-section {
    padding: 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
}

.sidebar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.5), transparent);
}

.sidebar-section h3 {
    margin: 0 0 1.2rem 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(0, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.8), transparent);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Stat Items - Enhanced Cyberpunk Cards */
.stat-item {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(157, 0, 255, 0.05) 100%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-item:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.05);
    transform: translateX(5px);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(0, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ffff 0%, #00d9ff 50%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
    animation: number-flicker 3s ease-in-out infinite;
    transition: transform 0.2s ease;
    display: inline-block;
}

.stat-value.counting {
    animation: counter-pulse 0.3s ease-in-out;
}

@keyframes counter-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Ranking List - Enhanced with Hexagon Effect */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ranking-item {
    display: grid;
    grid-template-columns: 35px 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(157, 0, 255, 0.05));
    border-left: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.7rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.ranking-item:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(157, 0, 255, 0.1));
    border-left-color: var(--neon-cyan);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.ranking-item:hover::before {
    transform: translateX(0);
}

.ranking-item .rank {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1rem;
    color: var(--neon-cyan);
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.ranking-item:nth-child(1) .rank {
    color: #ffff00;
    text-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
    font-size: 1.1rem;
}

.ranking-item:nth-child(2) .rank {
    color: #00ffff;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}

.ranking-item:nth-child(3) .rank {
    color: #ff00ff;
    text-shadow: 0 0 12px rgba(255, 0, 255, 0.7);
}

.ranking-item .location {
    color: var(--text-primary);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item .count {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 180px;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03), rgba(157, 0, 255, 0.03));
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.chart-container canvas {
    max-height: 100%;
}

/* Prediction Items */
.prediction-item {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(157, 0, 255, 0.05));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.prediction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.prediction-item:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateX(3px);
}

.prediction-item:hover::before {
    left: 100%;
}

.prediction-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(0, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.prediction-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.prediction-value.increase {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.prediction-value.decrease {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.prediction-value.high-risk {
    color: #ff0040;
    text-shadow: 0 0 15px rgba(255, 0, 64, 0.7);
    animation: pulse 2s ease-in-out infinite;
}

.prediction-value.medium-risk {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.prediction-value.low-risk {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Full Screen Immersive Map */
#interactive-map-section {
    position: absolute;
    top: 0;
    left: 300px;
    right: 0;
    height: 100%;
    z-index: 1;
    border-left: 1px solid rgba(0, 255, 255, 0.1);
}

#interactive-map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: linear-gradient(135deg, #050810 0%, #0a0e1a 100%);
}

/* Top Title Overlay - Cyberpunk Neon Style */
#map-title-overlay {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    pointer-events: none;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(157, 0, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.05);
    position: relative;
}

#map-title-overlay::before,
#map-title-overlay::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
}

#map-title-overlay::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    box-shadow: -2px -2px 10px rgba(0, 255, 255, 0.5);
}

#map-title-overlay::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    box-shadow: 2px 2px 10px rgba(0, 255, 255, 0.5);
}

#map-title-overlay h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(90deg, #00ffff 0%, #00d9ff 30%, #ff00ff 70%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 6px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 0, 255, 0.5));
    animation: glow-pulse 3s ease-in-out infinite;
}

#map-title-overlay p {
    margin: 0.6rem 0 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(0, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Bottom Status Bar - Cyberpunk Style */
#status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, rgba(5, 8, 16, 0.95), rgba(10, 14, 26, 0.95));
    backdrop-filter: blur(30px);
    border-top: 2px solid rgba(0, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 2rem;
    z-index: 200;
    box-shadow: 0 -4px 30px rgba(0, 255, 255, 0.15), inset 0 1px 20px rgba(0, 255, 255, 0.05);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(0, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.status-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(0, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.live-indicator {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

.live-indicator::before {
    content: '● ';
    color: #00ff88;
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 1));
}


















/* --- Fire Emoji with Glow Effects --- */
.fire-emoji {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    font-size: 1em;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.6));
}

.fire-emoji.fire-size-medium {
    font-size: 1.2em;
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.7));
}

.fire-emoji.fire-size-high {
    font-size: 1.4em;
    filter: drop-shadow(0 0 12px rgba(255, 107, 107, 0.9));
    animation: fireGlow 2s ease-in-out infinite;
}

.fire-emoji.fire-size-veryhigh {
    font-size: 1.6em;
    filter: drop-shadow(0 0 15px rgba(255, 0, 64, 1)) drop-shadow(0 0 25px rgba(255, 107, 107, 0.8));
    animation: fireGlow 1.2s ease-in-out infinite;
}

@keyframes fireGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.8)) drop-shadow(0 0 15px rgba(255, 107, 107, 0.6)); 
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(255, 0, 64, 1)) drop-shadow(0 0 35px rgba(255, 107, 107, 0.9)); 
        transform: scale(1.1);
    }
}


/* --- Footer - Ultra Minimal Kaspersky Style --- */
footer {
    background: linear-gradient(90deg, rgba(5, 8, 16, 0.98), rgba(10, 14, 26, 0.98));
    backdrop-filter: blur(30px);
    border-top: 2px solid rgba(0, 255, 255, 0.15);
    color: rgba(0, 255, 255, 0.5);
    text-align: center;
    padding: 0.8rem;
    font-size: 0.7rem;
    flex-shrink: 0;
    z-index: 1000;
    position: relative;
    box-shadow: 0 -2px 20px rgba(0, 255, 255, 0.1);
}

footer::before {
    display: none;
}

footer p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

footer a {
    color: rgba(0, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

footer a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}



/* --- Responsive Adjustments for Kaspersky Layout --- */
@media (max-width: 900px) {
    #left-sidebar {
        width: 280px;
    }
    
    #interactive-map-section {
        left: 280px;
    }
    
    .sidebar-section {
        padding: 1.3rem 1rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    #map-title-overlay h1 {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }
    
    #map-title-overlay p {
        font-size: 0.7rem;
    }
    
    #status-bar {
        height: 48px;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Hide sidebar on mobile, show toggle instead */
    #left-sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    #left-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(0, 255, 255, 0.3);
    }
    
    /* Map takes full width when sidebar is hidden */
    #interactive-map-section {
        left: 0;
    }
    
    /* Map adjusts when sidebar is open */
    #left-sidebar.mobile-open ~ #interactive-map-section {
        left: 240px;
    }
    
    .sidebar-section {
        padding: 1.2rem 1rem;
    }
    
    .sidebar-section h3 {
        font-size: 0.7rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
    
    .ranking-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .chart-container {
        height: 160px;
        padding: 0.6rem;
    }
    
    .prediction-item {
        padding: 0.7rem;
    }
    
    .prediction-value {
        font-size: 1rem;
    }
    
    #map-title-overlay {
        top: 1.2rem;
        padding: 0.8rem 2rem;
    }
    
    #map-title-overlay h1 {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
    
    #map-title-overlay p {
        font-size: 0.65rem;
        margin-top: 0.4rem;
    }
    
    #status-bar {
        flex-direction: column;
        height: auto;
        padding: 1rem 1.5rem;
        gap: 0.7rem;
    }
    
    .status-item {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    header {
        padding: 0.8rem 1rem;
    }

    header .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    header .site-logo {
        margin: 0 auto;
        height: 45px;
    }

    header .header-title-group {
        text-align: center;
    }

    header .header-title-group h1 {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    header .header-title-group h1::before {
        display: none;
    }

    header .header-title-group p {
        font-size: 0.7rem;
    }

    .auto-refresh-indicator {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        justify-content: center;
    }

    .auto-refresh-indicator > div {
        padding-left: 45px;
    }
    
    #left-sidebar {
        width: 180px;
    }
    
    #interactive-map-section {
        left: 0; /* Full width on small screens */
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    #map-title-overlay h1 {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }
    
    #map-title-overlay p {
        font-size: 0.6rem;
    }
    
    .status-label {
        font-size: 0.6rem;
    }
    
    .status-value {
        font-size: 0.7rem;
    }

    footer {
        font-size: 0.65rem;
        padding: 0.7rem;
    }
}

@media (max-width: 400px) {
    header .site-logo {
        height: 40px;
    }

    header .header-title-group h1 {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .auto-refresh-indicator #currentTime {
        font-size: 0.95rem;
    }
    
    #left-sidebar {
        width: 160px;
    }
    
    .sidebar-section {
        padding: 0.8rem 0.6rem;
    }
    
    .sidebar-section h3 {
        font-size: 0.6rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }

    #map-title-overlay {
        top: 0.5rem;
    }

    #map-title-overlay h1 {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    #map-title-overlay p {
        display: none;
    }
}

/* --- Additional Cyber UI Elements --- */

/* Pulse Effect for Fire Markers (Can be added to map markers via JS) */
@keyframes marker-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
        transform: scale(1);
    }
}

.fire-marker-pulse {
    animation: marker-pulse 2s ease-out infinite;
}

/* Cyber Corner Brackets (Can be added to panels for extra tech feel) */
.cyber-bracket::before,
.cyber-bracket::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--fire-red);
    opacity: 0.5;
}

.cyber-bracket::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.cyber-bracket::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Loading Indicator */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cyber-loading {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 107, 0.2);
    border-top-color: var(--fire-red);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.active {
    background: rgba(255, 107, 107, 0.15);
    color: var(--fire-red);
    border: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
}

.status-badge.warning {
    background: rgba(255, 140, 0, 0.15);
    color: var(--fire-orange);
    border: 1px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

.status-badge.ok {
    background: rgba(0, 255, 136, 0.15);
    color: var(--status-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

/* Counter Animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter-animated {
    animation: count-up 0.6s ease-out;
}

/* Glitch Effect (Optional for critical alerts) */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-effect {
    animation: glitch 0.3s infinite;
}

/* Neon Text */
.neon-text {
    color: #ffffff;
    text-shadow: 
        0 0 7px var(--fire-red),
        0 0 10px var(--fire-red),
        0 0 21px var(--fire-red),
        0 0 42px var(--fire-red),
        0 0 82px var(--fire-red);
}

/* Cyber Grid Overlay (Optional for panels) */
.cyber-grid {
    background-image: 
        linear-gradient(rgba(255, 107, 107, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 107, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Scan Line Effect */
.scan-effect {
    position: relative;
    overflow: hidden;
}

.scan-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.6), transparent);
    animation: scanline 3s linear infinite;
    pointer-events: none;
}