:root {
    --bg-color: #020406;
    --panel-bg: rgba(10, 20, 30, 0.6);
    --glass-border: rgba(0, 243, 255, 0.2);
    --cyan: #00f3ff;
    --cyan-dim: rgba(0, 243, 255, 0.3);
    --red: #ff2a2a;
    --amber: #ffaa00;
    --font-tech: 'Share Tech Mono', monospace;
    --font-head: 'Rajdhani', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    font-family: var(--font-head);
    overflow: hidden;
    color: #e2e8f0;
}

#map {
    width: 100vw;
    height: 100vh;
    background: #020406;
    z-index: 1;
}

/* Dark Map Tiles Filter */
.leaflet-tile {
    filter: invert(100%) hue-rotate(180deg) brightness(70%) contrast(115%) grayscale(100%) sepia(10%) saturate(150%) hue-rotate(180deg);
}

.ui-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
}

/* Professional Terminal Panels */
.glass-panel {
    background: rgba(5, 10, 15, 0.85);
    /* Darker, more solid */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    /* Sharper border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

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

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

/* Typography Helpers */
.font-rajdhani {
    font-family: var(--font-head);
}

.font-mono {
    font-family: var(--font-tech);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan-dim);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* Leaflet Customizations */
.leaflet-popup-content-wrapper {
    background: rgba(10, 20, 30, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--cyan);
    color: #fff;
    border-radius: 0;
    font-family: var(--font-tech);
}

.leaflet-popup-tip {
    background: var(--cyan);
}

.incident-marker {
    background: rgba(255, 42, 42, 0.2);
    border: 1px solid var(--red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--red);
    animation: pulse 2s infinite;
}

.chokepoint-marker {
    background: rgba(0, 243, 255, 0.2);
    border: 1px solid var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
}

/* Custom Scrollbar for Intel Feed */
.custom-scrollbar::-webkit-scrollbar {
    width: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--cyan-dim);
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* Markers */
.congestion-marker {
    border-radius: 50%;
    border: 1px dashed white;
}

/* Utility Colors */
.text-cyan-400 {
    color: var(--cyan);
}

.text-cyan-500 {
    color: #06b6d4;
}

.text-red-500 {
    color: var(--red);
}

.text-amber-500 {
    color: var(--amber);
}

.text-slate-300 {
    color: #cbd5e1;
}

.text-slate-400 {
    color: #94a3b8;
}

.text-slate-500 {
    color: #64748b;
}

.bg-cyan-500\/10 {
    background-color: rgba(6, 182, 212, 0.1);
}