body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    overflow: hidden;
}

.top-header-bar {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
    gap: 10px;
}

.menu-toggle {
    background: #2563eb;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: #1d4ed8;
}

.search-container {
    display: flex;
    flex: 1;
    max-width: 400px; 
    background: rgba(15, 23, 42, 0.92);
    padding: 6px 10px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    align-items: center;
}

.search-container input {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 12px;
    outline: none;
    min-width: 0;
}

.search-container button {
    background: #334155;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    margin-left: 5px;
    flex-shrink: 0;
}

.sidebar-control {
    position: absolute;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    z-index: 1005;
    box-shadow: 5px 0 25px rgba(0,0,0,0.6);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 20px;
    box-sizing: border-box;
    transition: left 0.3s ease-in-out;
}

.sidebar-control.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    color: #38bdf8;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
}

.control-section h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #38bdf8;
    text-transform: uppercase;
}

.control-section label {
    display: block;
    margin: 8px 0;
    font-size: 12px;
    cursor: pointer;
    color: #e2e8f0;
}

.divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.animation-controls {
    display: flex;
    width: 100%;
}

.radar-toggle-btn {
    width: 100%;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s;
}

.radar-toggle-btn.btn-stopped {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
}
.radar-toggle-btn.btn-stopped:hover {
    background: #334155;
}

.radar-toggle-btn.btn-playing {
    background: #dc2626;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}
.radar-toggle-btn.btn-playing:hover {
    background: #b91c1c;
}

#opacity-slider {
    width: 100%;
}

.weather-legend {
    position: absolute;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.92);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 200px;
}

#legend-title {
    font-size: 11px;
    color: #cbd5e1;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.legend-bar {
    height: 10px;
    border-radius: 4px;
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
}

#map {
    height: 100vh;
    width: 100%;
}

.leaflet-popup-content-wrapper {
    background: #1e293b !important;
    color: white !important;
    border-radius: 12px;
}

@media (max-width: 360px) {
    .search-container button {
        padding: 6px 10px;
        font-size: 11px;
    }
}

.high-contrast-radar {
    filter: saturate(1.8) contrast(1.25) drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.5)) !important;
}
