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

        :root {
            --primary: #0f172a;
            --primary-dark: #020617;
            --secondary: #1e3a8a;
            --secondary-light: #3b82f6;
            --accent: #f59e0b;
            --accent-light: #fbbf24;
            --success: #10b981;
            --warning: #f97316;
            --danger: #ef4444;
            --bg-dark: #0f172a;
            --bg-darker: #020617;
            --bg-light: #f0f4f9;
            --bg-lighter: #f8fafc;
            --bg-white: #ffffff;
            --border: #e2e8f0;
            --border-light: #f1f5f9;
            --text-dark: #0f172a;
            --text-muted: #64748b;
            --text-light: #94a3b8;
            --glass-bg: rgba(255, 255, 255, 0.7);
            --glass-border: rgba(255, 255, 255, 0.2);
        }

        html, body {
            height: 100%;
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
        }

        /* ========== ADVANCED HEADER ========== */
        .header-wrapper {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
            padding: 0;
            position: relative;
            overflow: hidden;
        }

        .header-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
            pointer-events: none;
            z-index: 1;
        }

        .header-wrapper::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%),
                linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
            pointer-events: none;
            z-index: 1;
        }

    .header-content {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 32px;     /* hapus padding atas bawah */
        height: 88px;        /* tentukan tinggi header */
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
            flex: 1;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-left: -8px; /* geser sedikit ke kiri */
        }

.logo-icon {
    height: 56px;           /* proporsional dengan header 88px */
    width: 56px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* supaya logo PU tidak terpotong */
}

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

        .logo-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .logo-text .brand-name {
            font-size: 18px;
            font-weight: 800;
            color: white;
            letter-spacing: -0.5px;
            font-family: 'Outfit', sans-serif;
        }

            .logo-text .brand-tagline {
                font-size: 11px;
                color: rgba(255, 255, 255, 0.7);
                text-transform: uppercase;
                letter-spacing: 1.2px;
                font-weight: 600;
            }

        .header-divider {
            width: 1px;
            height: 32px;
            background: rgba(255, 255, 255, 0.1);
            margin: 0 16px;
        }

        .header-stats {
            display: flex;
            gap: 20px;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .stat-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .stat-icon {
            font-size: 16px;
            color: var(--accent);
        }

        .stat-content {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .stat-label {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .stat-value {
            font-size: 14px;
            font-weight: 700;
            color: white;
            font-family: 'IBM Plex Mono', monospace;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .status-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 8px;
            backdrop-filter: blur(10px);
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: var(--success);
            border-radius: 50%;
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }

        .datetime-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.current-time {
    font-size: 15px;
    font-weight: 600;
}

.current-date {
    font-size: 12px;
    opacity: 0.85;
}

        .status-text {
            font-size: 12px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
        }

        .header-icons {
            display: flex;
            gap: 12px;
        }

        .icon-btn {
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .icon-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* ========== MAIN WRAPPER ========== */
        .main-wrapper {
            display: flex;
            height: calc(100vh - 80px);
            gap: 0;
        }

        /* ========== CLEAN SIDEBAR WITH DROPDOWN ========== */
        .sidebar {
            width: 340px;
            background: var(--bg-white);
            padding: 0;
            overflow-y: auto;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: inset -1px 0 0 var(--border);
            position: relative;
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

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

        .sidebar::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 3px;
        }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--text-light);
        }

        /* ========== SIDEBAR HEADER ========== */
        .sidebar-header {
            padding: 28px 24px;
            background: linear-gradient(135deg, rgba(30, 58, 138, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .sidebar-header-top {
            display: flex;
            align-items: center;
            gap: 9px;
            margin-bottom: 0px;
            transform: translateX(5px); /* geser kanan */
        }

        .sidebar-header-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .sidebar-header h5 {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-dark);
            margin: 0;
            font-family: 'Outfit', sans-serif;
        }

        /* ========== LAYERS CONTAINER ========== */
        .layers-container {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* ========== MENU GROUP ========== */
        .menu-group {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .menu-group-header {
            background: var(--bg-lighter);
            border: 1px solid var(--border);
            border-radius: 12px 12px 0 0;
            padding: 14px 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
        }

        .menu-group-header:hover {
            border-color: var(--secondary-light);
            background: var(--bg-white);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
        }

        .menu-group-header.active {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
            border-color: var(--secondary-light);
        }

        .menu-group-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            margin: 0;
        }

        .menu-group-icon {
            width: 28px;
            height: 28px;
            background: white;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: var(--secondary-light);
            box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
            transition: all 0.3s ease;
        }

        .menu-group-header:hover .menu-group-icon,
        .menu-group-header.active .menu-group-icon {
            transform: scale(1.1);
        }

        .menu-group-header.active .menu-group-icon {
            background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .menu-toggle-arrow {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: var(--text-muted);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
        }

        .menu-group-header.active .menu-toggle-arrow {
            transform: rotate(180deg);
            color: var(--secondary-light);
        }

        /* ========== SUBMENU ITEMS ========== */
        .submenu-items {
            background: var(--bg-lighter);
            border: 1px solid var(--border);
            border-top: none;
            border-radius: 0 0 12px 12px;
            overflow: hidden;
            max-height: 0;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .menu-group-header.active ~ .submenu-items {
            max-height: 500px;
            opacity: 1;
            pointer-events: auto;
        }

        .submenu-item {
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 1px solid var(--border);
            user-select: none;
        }

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

        .submenu-item:hover {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
            padding-left: 20px;
        }

        .submenu-item.active {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
            border-left: 3px solid var(--secondary-light);
            padding-left: 14px;
        }

        .submenu-checkbox {
            width: 16px;
            height: 16px;
            border: 2px solid var(--border);
            border-radius: 4px;
            background-color: white;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .submenu-item input[type="checkbox"] {
            display: none;
        }

        .submenu-item input[type="checkbox"]:checked ~ .submenu-checkbox {
            background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
            border-color: var(--secondary-light);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
        }

        .submenu-item input[type="checkbox"]:checked ~ .submenu-checkbox::after {
            content: '✓';
            color: white;
            font-size: 10px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .submenu-checkbox:hover {
            border-color: var(--secondary-light);
        }

        .submenu-label {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            margin: 0;
            flex: 1;
        }

        .submenu-item:hover .submenu-label {
            color: var(--secondary-light);
        }

        .submenu-status {
            width: 6px;
            height: 6px;
            background: var(--text-light);
            border-radius: 50%;
            flex-shrink: 0;
            animation: submenuPulse 2s ease-in-out infinite;
        }

        .submenu-item.active .submenu-status {
            background: var(--success);
            animation: submenuActivePulse 2s ease-in-out infinite;
        }

        @keyframes submenuPulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 1; }
        }

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

        /* ========== SIDEBAR FOOTER ========== */
        .sidebar-footer {
            padding: 16px 24px;
            border-top: 1px solid var(--border);
            background: var(--bg-lighter);
            display: flex;
            gap: 8px;
        }

        .footer-stat {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 12px 8px;
            background: white;
            border-radius: 8px;
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }

        .footer-stat:hover {
            border-color: var(--secondary-light);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
        }

        .footer-stat-label {
            font-size: 10px;
            color: var(--text-muted);
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .footer-stat-value {
            font-size: 16px;
            font-weight: 700;
            color: var(--secondary-light);
            font-family: 'IBM Plex Mono', monospace;
        }

        /* ========== MAP CONTAINER ========== */
        .map-container {
            flex: 1;
            position: relative;
            background: var(--bg-light);
            overflow: hidden;
                margin: 20px;              /* JARAK dari pinggir */
    border-radius: 20px;       /* Rounded seperti card */
        }

        #map {
            height: 100%;
            width: 100%;
            background: linear-gradient(135deg, #e0f2fe 0%, #cffafe 100%);
        }

        /* ========== FLOATING INFO CARD ========== */
        .info-card {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 300px;
            background: var(--bg-white);
            border: 1px solid var(--border);
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
            z-index: 1000;
            overflow: hidden;
            animation: slideInRight 0.5s ease-out;
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(40px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .info-card-header {
            background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
            color: white;
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .info-card-header h6 {
            font-size: 13px;
            font-weight: 700;
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            font-family: 'Outfit', sans-serif;
        }

        .info-card-body {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .info-stat {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
        }

        .info-stat:last-child {
            border-bottom: none;
        }

        .info-stat-label {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .info-stat-value {
            font-size: 15px;
            font-weight: 700;
            color: var(--secondary-light);
            font-family: 'IBM Plex Mono', monospace;
        }

        .info-stat-active {
            color: var(--success);
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
            padding: 4px 10px;
            border-radius: 6px;
            font-weight: 600;
        }

        /* ========== CONTROL PANEL ========== */
        .control-panel {
            position: absolute;
            bottom: 20px;
            left: 20px;
            display: flex;
            gap: 10px;
            z-index: 999;
            animation: slideInUp 0.5s ease-out 0.1s both;
        }

.control-ws {
    position: absolute;
    bottom: 30px;          /* jarak dari bawah peta */
    left: 50%;             /* tengah horizontal */
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 999;
}
.ws-button{
    padding: 8px 18px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(3px);
}

@media (max-width: 768px){

    .control-ws{
        bottom: 20px;          /* naikkan posisi agar tidak menabrak legenda */
        left: 50%;
        transform: translateX(-50%);
        gap: 6px;
    }

    .ws-button{
        padding: 6px 10px;
        font-size: 8px;
    }

}

.ws-button:hover{
    background: rgba(0,0,0,0.9);
}

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .control-btn {
            width: 48px;
            height: 48px;
            background: var(--bg-white);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-dark);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .control-btn:hover {
            background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
            color: white;
            border-color: var(--secondary-light);
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
        }

        /* ========== LEGEND ========== */
        .legend-container {
            position: absolute;
            bottom: 20px;
            right: 20px;
            background: var(--bg-white);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 18px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
            z-index: 999;
            max-width: 220px;
            animation: slideInRight 0.5s ease-out 0.2s both;
        }

        .legend-title {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-dark);
            text-transform: uppercase;
            letter-spacing: 0.3px;
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border);
            font-family: 'Outfit', sans-serif;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 10px;
            padding: 8px 0;
            transition: all 0.2s ease;
        }

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

        .legend-item:hover {
            color: var(--text-dark);
            transform: translateX(4px);
        }

        .legend-icon {
            width: 24px;
            height: 24px;
            border-radius: 8px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            font-weight: 600;
        }

        .leaflet-container path:focus {
    outline: none;
}

        .legend-icon.hidro {
            background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
        }

        .legend-icon.hujan {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }

        .legend-icon.sumur {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }

        /* ========== RESPONSIVE DESIGN ========== */
        @media (max-width: 1200px) {
            .sidebar {
                width: 320px;
            }

            .header-stats {
                gap: 12px;
            }

            .stat-item {
                padding: 6px 10px;
            }

            .stat-label {
                font-size: 9px;
            }

            .stat-value {
                font-size: 12px;
            }
        }

        @media (max-width: 1024px) {
            .sidebar {
                width: 300px;
            }

            .sidebar-header {
                padding: 20px 16px;
            }

            .layers-container {
                padding: 16px;
            }

            .menu-group-header {
                padding: 12px 14px;
            }

            .submenu-item {
                padding: 10px 14px;
            }

            .info-card {
                width: 280px;
                right: 15px;
                top: 15px;
            }

            .header-stats {
                display: none;
            }
        }

        @media (max-width: 768px) {
    .logo-text .brand-tagline {
        font-size: 0; /* sembunyikan teks asli */
    }

    .logo-text .brand-tagline::after {
        content: "BWSKV";
        font-size: 10px;
        letter-spacing: 1px;
          display: inline-block;
        transform: translateX(-18px); /* geser ke kiri */
    }

            .header-divider {
                display: none;
            }

            .header-icons {
                gap: 8px;
            }

            .icon-btn {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }

            .main-wrapper {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                height: auto;
                max-height: 280px;
                flex-direction: column;
                border-right: none;
                border-bottom: 1px solid var(--border);
                padding: 0;
            }

            .layers-container {
                padding: 12px;
                gap: 10px;
            }

            .menu-group-header {
                padding: 12px;
                font-size: 13px;
            }

            .submenu-item {
                padding: 10px 12px;
                font-size: 12px;
            }

            .sidebar-footer {
                display: none;
            }

            .map-container {
                flex: 1;
            }

            .info-card {
                width: 260px;
                font-size: 12px;
            }

            .control-btn {
                width: 44px;
                height: 44px;
                font-size: 16px;
            }

            .legend-container {
                width: 200px;
                padding: 14px;
                font-size: 11px;
            }
        }

        @media (max-width: 480px) {
            .header-content {
                flex-direction: column;
                gap: 12px;
                padding: 12px 16px;
            }

            .header-left {
                width: 100%;
            }

            .logo-icon {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }

            .logo-text .brand-name {
                font-size: 16px;
            }

            .header-right {
                width: 100%;
                justify-content: space-between;
            }

            .status-badge {
                flex: 1;
            }

            .sidebar {
                max-height: 240px;
            }

            .sidebar-header {
                padding: 12px;
            }

            .sidebar-header h5 {
                font-size: 14px;
            }

            .menu-group-header {
                padding: 10px;
                font-size: 12px;
            }

            .submenu-item {
                padding: 8px 10px;
                font-size: 11px;
            }

            .info-card {
                width: 240px;
                top: 10px;
                right: 10px;
            }

            .control-panel {
                bottom: 10px;
                left: 10px;
            }

            .legend-container {
                width: 180px;
                bottom: 10px;
                right: 10px;
                padding: 12px;
            }
        }

@media (max-width: 768px) {
    .header-right {
        display: none !important;
    }
}

        /* ========== DARK MODE ========== */
        @media (prefers-color-scheme: dark) {
            :root {
                --bg-white: #1e293b;
                --bg-light: #0f172a;
                --bg-lighter: #1a2332;
                --border: #334155;
                --border-light: #475569;
                --text-dark: #f1f5f9;
                --text-muted: #cbd5e1;
                --text-light: #94a3b8;
            }
        }
.legend-icon.hidro {
    background: #3b82f6;
}

.legend-icon.kualitas-air {
    background: #0ea5e9;
}

.legend-icon.hujan {
    background: #10b981;
}

.legend-icon.klimatologi {
    background: #f59e0b;
}

.legend-icon.cat {
    background: #8b5cf6;
}

.legend-icon.aquifer {
    background: #06b6d4;
}

/* CONTAINER LEGENDA */
.legend-container{
    background: rgb(18, 16, 81);
    padding: 6px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    font-size: 11px;
    line-height: 1.2;
}

/* JUDUL */
.legend-title{
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
}

/* ITEM */
.legend-item{
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

/* ICON */
.legend-icon{
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 9px;
}

@media (max-width: 768px){

    .legend-container{
        display: none;
    }

    .control-panel{
        display: none;
    }

}

@media (max-width: 768px) {
    header {
        background: rgba(0,0,0,0.3);
        backdrop-filter: blur(8px);
    }
}