
        :root {
            /* Palette 2025 */
            --glass-bg: rgba(255, 255, 255, 0.65);
            --glass-border: rgba(255, 255, 255, 0.4);
            --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
            --blur-amount: 16px;
            
            --primary: #2563eb;
            --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            --text-dark: #1e293b;
            --text-light: #64748b;
            
            --danger: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            
            --radius-xl: 24px;
            --radius-md: 16px;
            --radius-sm: 12px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            overflow: hidden;
            height: 100vh;
            background: #eef2f6;
            color: var(--text-dark);
        }

        /* Animated Background Mesh for Glass Effect */
        .bg-mesh {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: 0;
            background: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
                        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
                        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
            background-size: 200% 200%;
            animation: gradientBG 15s ease infinite;
            opacity: 0.1;
            pointer-events: none;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* --- MAP CONTAINER --- */
        #map {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 1;
        }

        /* --- GLASS COMPONENTS --- */
        .glass-panel {
            background: var(--glass-bg);
            backdrop-filter: blur(var(--blur-amount));
            -webkit-backdrop-filter: blur(var(--blur-amount));
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
        }


          /* --- FILTER STYLING COMPACT --- */
          .filter-group { margin-bottom: 12px; } /* Jarak antar grup filter lebih rapat */
          
          .filter-label { 
              font-size: 10px;    /* Font label sedikit lebih kecil */
              font-weight: 700; 
              color: var(--text-light); 
              text-transform: uppercase; 
              letter-spacing: 0.5px; 
              margin-bottom: 5px; 
              display: block;
          }

/* Year Pills (Compact) */
.year-selector { display: flex; gap: 4px; background: rgba(255,255,255,0.5); padding: 3px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.05); }
.year-btn {
    flex: 1; border: none; background: transparent; padding: 4px 0; /* Padding lebih kecil */
    font-family: 'Plus Jakarta Sans'; font-size: 11px; font-weight: 700;
    color: var(--text-light); border-radius: 7px; cursor: pointer; transition: all 0.2s;
}
.year-btn.active { background: white; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* Week Inputs (Compact) */
.week-range { display: flex; align-items: center; gap: 6px; }
.input-glass {
    width: 100%; background: rgba(255,255,255,0.5); border: 1px solid rgba(0,0,0,0.1);
    padding: 6px 8px; /* Input lebih tipis */
    font-size: 12px;  /* Font input disesuaikan */
    border-radius: 8px; font-family: 'Plus Jakarta Sans'; font-weight: 700;
    color: var(--text-dark); text-align: center; outline: none; transition: all 0.2s;
}

/* Toggle Switch (Compact) */
.toggle-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; cursor: pointer; }
/* Switch diperkecil skalanya */
.switch { position: relative; display: inline-block; width: 34px; height: 18px; } 
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--danger); }
input:checked + .slider:before { transform: translateX(16px); }

/* --- SIDEBAR COMPACT --- */
.sidebar-container {
    position: absolute;
    top: 15px;          /* Jarak atas dikurangi */
    left: 15px;         /* Jarak kiri dikurangi */
    width: 260px;       /* LEBIH RAMPING (dari 300px ke 260px) */
    height: auto;
    bottom: auto;
    border-radius: 16px; /* Radius sedikit dikecilkan agar proporsional */
    z-index: 99;
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: transform 0.3s ease;
}

.sidebar-content {
    padding: 15px;      /* Padding dalam lebih kecil (dari 20px ke 15px) */
    overflow: visible;
    height: auto;
    transition: all 0.3s ease;
}

/* --- TAMBAHAN UNTUK MINIMIZE & ANIMASI --- */
.toggle-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    transition: transform 0.3s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper Generik untuk Isi (Filter & Legenda) */
section-body {
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* PINDAHKAN JARAK KE SINI */
    padding-top: 15px;    /* Ini pengganti margin-bottom header */
    margin-top: 0;
}

/* State ketika Minimized (Tertutup) */
.section-body.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    
    /* HILANGKAN PADDING SAAT TUTUP */
    padding-top: 0;       
    padding-bottom: 0;
    pointer-events: none;
}

/* Rotasi Panah */
/* Default (class .rotated ada) = Panah Menghadap Bawah (Posisi Tertutup) */
.toggle-btn.rotated {
    transform: rotate(180deg);
}

        /* Section Styling */
.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    /* margin-bottom: 16px;  <-- HAPUS INI (Penyebab renggang) */
    margin-bottom: 0;     /* Ganti jadi 0 */
    padding: 5px 0;       /* Beri sedikit napas internal */
    cursor: pointer;      /* Agar user tau ini bisa diklik */
}


.gradient-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 100;
}
        
        
        @keyframes spin { 100% { transform: rotate(360deg); } }

        /* Custom Tooltip */
        /* Minimal RW Tooltip */
        .glass-tooltip-minimal {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(10px) !important;
            border: 1px solid rgba(0,0,0,0.08) !important;
            border-radius: 10px !important;
            color: var(--text-dark) !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
            padding: 0 !important;
            font-family: 'Plus Jakarta Sans', sans-serif !important;
        }
        
/* Menghilangkan Panah Kecil (Triangle) di semua sisi */
        .leaflet-tooltip.glass-tooltip-minimal::before {
            display: none !important;
        }

        /* Update styling tooltip agar transisi opacity lebih halus */
        .glass-tooltip-minimal {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(10px) !important;
            border: 1px solid rgba(0,0,0,0.08) !important;
            border-radius: 12px !important; /* Sedikit lebih bulat */
            color: var(--text-dark) !important;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important; /* Shadow lebih lembut */
            padding: 0 !important;
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            margin: 0 !important; /* Reset margin agar posisi sticky pas */
            transition: opacity 0.2s ease-out; /* Animasi fade in/out halus */
        }
        
        .rw-tooltip-minimal {
            padding: 12px;
            min-width: 140px;
        }
        
        .rw-header-minimal {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }
        
        .rw-badge-minimal {
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.3px;
            color: white;
        }
        
        .rw-badge-minimal.safe {
            background: linear-gradient(135deg, #10b981, #059669);
        }
        
        .rw-badge-minimal.warning {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
        
        .rw-badge-minimal.danger {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }
        
        .rw-kelurahan-minimal {
            font-size: 10px;
            color: var(--text-light);
            font-weight: 500;
            background: rgba(241, 245, 249, 0.7);
            padding: 2px 6px;
            border-radius: 4px;
        }
        
        .rw-stats-minimal {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        
        .rw-stat-item-minimal {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .rw-stat-icon-minimal {
            width: 28px;
            height: 28px;
            border-radius: 7px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        
        .rw-stat-icon-minimal.safe {
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
        }
        
        .rw-stat-icon-minimal.danger {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
        }
        
        .rw-stat-content-minimal {
            display: flex;
            flex-direction: column;
        }
        
        .rw-stat-value-minimal {
            font-size: 16px;
            font-weight: 700;
            line-height: 1;
            color: var(--text-dark);
        }
        
        .rw-stat-label-minimal {
            font-size: 9px;
            color: var(--text-light);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 2px;
        }

        /* Utility */
        .hidden { display: none; }
        .fade-in { animation: fadeIn 0.4s forwards; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

    /* Menghilangkan kotak hitam (outline) saat diklik pada peta Leaflet */
path.leaflet-interactive:focus {
    outline: none;
}

/* --- TAMBAHAN: Style untuk Label RW --- */
.rw-map-label {
    background: transparent;
    border: none;
    box-shadow: none;
}

.rw-map-label div {
    /* Design Pil */
    background: rgba(255, 255, 255, 0.95); /* Putih agak transparan */
    backdrop-filter: blur(4px); /* Efek kaca halus */
    padding: 6px 12px; /* Jarak dalam agar terlihat gembul */
    border-radius: 30px; /* Membuat sudut sangat bulat (Pil) */
    
    /* Border & Shadow */
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Bayangan agar melayang */

    /* Typography */
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    white-space: nowrap;
    
    /* Positioning Center */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Mulai agak kecil */

    /* Animasi */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efek membal (bouncy) */
    pointer-events: none;
}

/* Class ini akan ditambahkan ke Peta saat Zoom In */
.show-rw-labels .rw-map-label div {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Kembali ke ukuran normal */
}



/* === MULAI UPDATE DESIGN DARI KODE 1 (FILTER & LEGENDA) === */

        /* 1. Sidebar Container & Glass Panel Update */
        .sidebar-container {
            width: 270px !important;
            border-radius: 16px !important; /* Radius disesuaikan (16px) agar sama dengan kanan */
            top: 15px !important; left: 15px !important; /* Posisi disesuaikan (15px) agar sejajar */
            background: rgba(255, 255, 255, 0.75) !important;
            backdrop-filter: blur(20px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
            border: 1px solid rgba(255, 255, 255, 0.6) !important;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
        }
        
        /* Padding diperkecil (12px) agar saat minimize terlihat lebih pendek/ramping */
        .sidebar-content { padding: 12px 15px !important; }

        /* 2. Section Header Modern (Icon Box Style) */
        .section-header {
            display: flex; align-items: center; justify-content: space-between;
            padding-bottom: 5px; cursor: pointer; user-select: none;
            margin-bottom: 0 !important;
        }
        .header-left-group { display: flex; align-items: center; gap: 10px; }
        
        .section-icon-box {
            width: 28px; height: 28px;
            background: white; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05); color: #2563eb; font-size: 12px;
        }
        .section-title { font-size: 13px !important; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; text-transform: uppercase;}

        .toggle-btn {
            background: rgba(255,255,255,0.5); border: none; width: 24px; height: 24px;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            color: #64748b; font-size: 12px; cursor: pointer;
            transition: transform 0.3s ease, background 0.2s;
            margin-left: 0 !important; /* Reset margin lama */
        }
        .toggle-btn:hover { background: white; color: #2563eb; }
        .toggle-btn.rotated { transform: rotate(180deg); }

        .section-body { margin-top: 15px; padding-top: 0 !important; }
        .section-body.collapsed { margin-top: 0; }

        /* 3. Filter Components (Year Selector & Inputs) */
        .filter-group { margin-bottom: 16px; }
        .year-selector {
            display: flex; background: rgba(255, 255, 255, 0.5);
            padding: 4px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.4);
            gap: 0 !important; /* Reset gap lama */
        }
        .year-btn {
            padding: 6px 0 !important; font-size: 12px !important; border-radius: 10px !important;
        }
        .year-btn.active { font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transform: scale(1.02); }

        .week-range { 
            display: flex; align-items: center; gap: 8px; background: white; 
            padding: 4px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); 
        }
        .input-glass {
            background: transparent !important; border: none !important; padding: 6px;
            font-size: 13px !important; font-weight: 700; color: #0f172a;
        }

        /* 4. Switch Toggle */
        .toggle-row {
            display: flex; align-items: center; justify-content: space-between; padding: 10px;
            background: rgba(255,255,255,0.5); border-radius: 12px; cursor: pointer; border: 1px solid rgba(255,255,255,0.4);
            margin-top: 0 !important;
        }
        .switch { width: 36px !important; height: 20px !important; } 
        .slider { border-radius: 30px !important; background-color: #cbd5e1; }
        .slider:before { height: 16px !important; width: 16px !important; left: 2px !important; bottom: 2px !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        input:checked + .slider { background-color: #2563eb !important; }
        input:checked + .slider:before { transform: translateX(16px); }

/* 5. Divider & Legend */
        /* Margin dikurangi dari 15px ke 8px agar lebih hemat tempat */
        .glass-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent); margin: 8px 0; }
        
                
        /* Legend Category Accordion */
        .legend-category {
            margin-bottom: 4px;
            border-radius: 8px;
            overflow: hidden;
            background: rgba(255,255,255,0.3);
        }
        
        .legend-cat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 10px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 700;
            color: #0f172a;
            transition: all 0.2s;
            border-radius: 8px;
        }
        
        .legend-cat-header:hover {
            background: rgba(255,255,255,0.6);
        }
        
        .legend-cat-header .cat-arrow {
            font-size: 10px;
            color: #64748b;
            transition: transform 0.3s ease;
        }
        
        .legend-cat-header.active .cat-arrow {
            transform: rotate(180deg);
        }
        
        .legend-cat-body {
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0 8px;
        }
        
        .legend-cat-body:not(.collapsed) {
            max-height: 300px;
            padding: 8px;
            padding-top: 4px;
        }
        
        .legend-cat-body .legend-item {
            padding: 4px 0;
            font-size: 10px;
        }
        
        .legend-cat-body .legend-icon {
            width: 16px;
            height: 16px;
            font-size: 8px;
        }
        
        .legend-cat-body .legend-text {
            font-size: 10px;
        }
        
        .gradient-container { padding: 4px; background: white; border-radius: 8px; border: 1px solid rgba(0,0,0,0.05); margin-top: 5px; }
        .gradient-bar {
            width: 100%; height: 10px !important; border-radius: 4px !important;
            background: linear-gradient(90deg, #10b981 0%, #ffcccc 20%, #ff9999 40%, #ff6666 60%, #ff3333 80%, #990000 100%) !important;
            /* Tambahan untuk print */
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }
        .gradient-fill { display: none; } /* Sembunyikan style lama */
        
        .legend-box { padding: 0; }
        .legend-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
        .legend-icon { width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
        
        /* Warna Icon Legenda */
        .icon-safe { background: rgba(16, 185, 129, 0.15); color: #10b981; }
        .icon-border { border: 2px solid #64748b; background: white; }
        .icon-edu { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
        .icon-health { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
        .icon-culture { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
        .icon-case { 
            background: rgba(239, 68, 68, 0.15); 
            color: #ef4444; 
            border: 1px solid rgba(239, 68, 68, 0.3);
        }
        .legend-text { font-size: 11px; font-weight: 600; color: #0f172a; }

        /* Sembunyikan element lama jika masih ada */
        .legend-row { display: none !important; } 
        .gradient-legend { display: none !important; }
        /* === SELESAI UPDATE DESIGN === */

/* --- STYLE SIDEBAR KANAN (TOP 3) - PROFESSIONAL HEALTH THEME --- */
.top-rw-container {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 220px;
    height: auto;
    z-index: 99;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    /* Tambahan border halus agar lebih terdefinisi */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.top-rw-header {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    /* UBAH: Background header lebih putih dan bersih */
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: background 0.3s;
}

.top-rw-header:hover {
    background: rgba(255,255,255,0.95);
}

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

/* UBAH: Ikon Piala menjadi warna Merah Alert, bukan Emas Judi */
.virus-icon-bg {
    width: 32px; height: 32px;
    /* Gradasi Merah Tua */
    background: linear-gradient(135deg, #dc2626, #991b1b); 
    border-radius: 8px; /* Sudut sedikit lebih tajam agar terlihat serius */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    /* Shadow merah halus */
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(255,255,255,0.2);
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-label { font-size: 9px; text-transform: uppercase; color: var(--text-light); font-weight: 700; letter-spacing: 0.5px; }
.header-value { font-size: 13px; font-weight: 800; color: var(--text-dark); line-height: 1.1; }

.toggle-btn-right {
    background: transparent; border: none; color: var(--text-light);
    transition: transform 0.3s ease; cursor: pointer;
    padding: 4px;
}
.toggle-btn-right.rotated { transform: rotate(180deg); }

/* Body & Animation (TETAP SAMA) */
.top-rw-body {
    padding: 0 12px 12px 12px;
    max-height: 300px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: rgba(255,255,255,0.4); /* Background body sedikit transparan */
}

.top-rw-body.collapsed {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
}

/* Pastikan body bisa di-scroll */
.top-rw-body {
    padding: 0 12px 12px 12px;
    max-height: 400px; /* Saya perbesar sedikit tingginya agar muat lebih banyak */
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Scroll aktif */
    overflow-y: auto;  
    overflow-x: hidden;
    background: rgba(255,255,255,0.4);
    
    /* Scrollbar Tipis */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

/* List Items */
.rank-item {
    display: flex;
    align-items: center;
    /* Background item lebih bersih */
    background: rgba(255,255,255,0.7);
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.rank-item:active { transform: scale(0.98); }

/* UBAH: Badge Peringkat menggunakan palet "Danger Severity" */
.rank-badge {
    width: 24px; height: 24px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: white;
    margin-right: 10px; flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Peringkat 1: Merah Bahaya (Sangat Tinggi) */
.rank-1 { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
} 

/* Peringkat 2: Oranye Kemerahan (Tinggi) */
.rank-2 { 
    background: linear-gradient(135deg, #f97316, #ea580c); 
    box-shadow: 0 2px 5px rgba(249, 115, 22, 0.3);
} 

/* Peringkat 3: Oranye Peringatan (Sedang) */
.rank-3 { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
} 

.rank-other { 
    background: #94a3b8; /* Slate Grey */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rank-info { flex: 1; display: flex; flex-direction: column; }
.rank-rw { font-size: 12px; font-weight: 700; color: var(--text-dark); }
.rank-kel { font-size: 9px; color: var(--text-light); font-weight: 600; text-transform: uppercase; }

/* UBAH: Badge Jumlah Kasus agar lebih tajam dan serius */
.rank-count {
    background: white; /* Background putih */
    color: #dc2626; /* Teks merah tua */
    padding: 3px 8px; 
    border-radius: 6px;
    font-size: 12px; font-weight: 800;
    border: 1px solid #fecaca; /* Border merah tipis */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* === PERBAIKAN ANIMASI BUKA TUTUP (TRANSISI) === */
        
        .section-body {
            /* Pastikan transisi aktif untuk semua properti yang berubah */
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
            
            /* Kondisi saat TERBUKA */
            max-height: 1000px !important; /* Beri nilai cukup besar agar konten muat */
            opacity: 1 !important;
            margin-top: 15px !important;
            transform: translateY(0) !important;
            overflow: hidden !important;
            visibility: visible !important;
        }

        .section-body.collapsed {
            /* Kondisi saat TERTUTUP */
            max-height: 0 !important;
            opacity: 0 !important;
            margin-top: 0 !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            transform: translateY(-10px) !important; /* Efek geser sedikit ke atas */
            pointer-events: none !important;
            visibility: hidden !important;
        }

        /* Pastikan tombol panah juga berputar halus */
        .toggle-btn {
            transition: transform 0.4s ease !important;
        }
        
        .toggle-btn.rotated {
            transform: rotate(180deg) !important;
        }
        
/* --- STYLE BOTTOM DRAWER (DOCK) --- */
.bottom-dock-container {
    position: absolute;
    bottom: 25px;
    left: 20px;
    z-index: 999;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- TOMBOL FULLSCREEN ESTETIK --- */
        .fullscreen-btn {
            position: absolute;
            bottom: 10px; /* Sejajar dengan dock kiri */
            right: 10px;  /* Pojok kanan */
            width: 48px; 
            height: 48px;
            background: rgba(255, 255, 255, 0.85); /* Putih kaca */
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 16px; /* Radius sama dengan dock */
            display: flex; 
            align-items: center; 
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Shadow lembut */
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efek membal (bouncy) */
            z-index: 1000; /* Pastikan di atas peta */
            color: var(--text-dark);
            font-size: 18px;
            
                    /* RESET FULLSCREEN BUTTON SAAT PRINT */
        @media print {
            .fullscreen-btn {
                box-shadow: none !important;
                -webkit-box-shadow: none !important;
                -moz-box-shadow: none !important;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                background: white !important;
                border: 1px solid #999 !important;
                text-shadow: none !important;
            }
        }
    }

        .fullscreen-btn:hover {
            transform: translateY(-4px) scale(1.05); /* Naik sedikit saat hover */
            background: white;
            color: var(--primary); /* Berubah biru */
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25); /* Glow biru */
            border-color: var(--primary);
        }

        .fullscreen-btn:active {
            transform: scale(0.95); /* Efek tekan */
        }

/* Tombol Pemicu (Trigger Buttons) */
.dock-trigger-group {
    display: flex;
    gap: 10px;
    transition: all 0.3s ease;
}

.dock-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: 16px;
    font-family: 'Plus Jakarta Sans';
    font-weight: 700;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

/* TAMBAHKAN: Reset tombol saat print */
@media print {
    .dock-btn {
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid #999 !important;
        background: white !important;
        text-shadow: none !important;
    }
}

.dock-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); color: var(--primary); }
.dock-btn:active { transform: scale(0.95); }
.dock-btn i { font-size: 14px; color: var(--text-light); }
.dock-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.dock-btn.active i { color: white; }

/* Drawer Panel Panjang (Hidden by default) */
.dock-drawer {
    position: fixed; /* Fixed agar relatif layar */
    z-index: 2000; /* <--- WAJIB DITAMBAHKAN AGAR MUNCUL PALING DEPAN */
    bottom: 25px;
    left: 20px;
    right: 20px; /* Memanjang sampai kanan */
    height: 140px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    
    /* Animasi Masuk */
    transform: translateY(150%); /* Sembunyi di bawah */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.dock-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Header Drawer (Judul & Close) */
.drawer-header {
    min-width: 120px;
    padding-right: 20px;
    border-right: 1px solid rgba(0,0,0,0.05);
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drawer-title { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 5px; }
.drawer-subtitle { font-size: 11px; color: var(--text-light); font-weight: 600; text-transform: uppercase; }

.btn-close-drawer {
    margin-top: 10px;
    background: #f1f5f9; border: none; padding: 6px 12px; border-radius: 8px;
    font-size: 11px; font-weight: 700; color: var(--text-light); cursor: pointer;
    transition: 0.2s;
}
.btn-close-drawer:hover { background: #e2e8f0; color: var(--danger); }

/* --- CSS TOMBOL GESER (Baru) --- */
.drawer-nav-group {
    display: flex;
    gap: 8px; /* Jarak antar tombol */
    margin-top: 8px; /* Jarak dari tombol Tutup */
    width: 100%;
}

.nav-btn {
    flex: 1; /* Agar lebar kiri & kanan sama */
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 6px 0;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.nav-btn:hover {
    background: #f8fafc;
    color: var(--primary); /* Biru saat hover */
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Scrollable Cards Container */
.cards-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px;
    width: 100%;
    height: 100%;
    align-items: center;
    scroll-behavior: smooth;
    /* Hide Scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.cards-scroller::-webkit-scrollbar { display: none; }

/* Design Kartu RW Modern */
.card-rw {
    min-width: 130px;
    height: 100px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.card-rw:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }

/* Indikator Status di atas kartu */
.card-indicator {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
}
.card-indicator.safe { background: var(--success); }
.card-indicator.warning { background: var(--warning); }
.card-indicator.danger { background: var(--danger); }

.card-head { display: flex; justify-content: space-between; align-items: center; }
.card-rw-label { font-size: 12px; font-weight: 800; color: var(--text-dark); background: #f8fafc; padding: 2px 8px; border-radius: 6px; }

.card-stats { display: flex; justify-content: space-between; margin-top: auto; }
.stat-box { text-align: center; }
.stat-val { font-size: 16px; font-weight: 800; line-height: 1; }
.stat-lbl { font-size: 9px; color: var(--text-light); font-weight: 600; margin-top: 2px; }

        .val-danger { color: var(--danger); }
        .val-safe { color: var(--success); }      


/* Style untuk marker fasilitas - Versi Normal (Web) */
.facility-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

/* ========================================= */
/* STYLE FASILITAS SAAT PRINT - UKURAN LEBIH KECIL */
/* ========================================= */
@media print {
    .facility-marker {
        width: 22px !important;      /* SAMA dengan titik kasus */
        height: 22px !important;     /* SAMA dengan titik kasus */
        border: 2px solid white !important;  /* SAMA dengan titik kasus */
        box-shadow: none !important; /* Hilangkan shadow */
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .facility-marker i {
        font-size: 9px !important;   /* SAMA dengan titik kasus */
    }
    
    /* Warna spesifik tetap dipertahankan */
    .school-marker {
        background: #3b82f6 !important;
    }
    .health-marker {
        background: #ff007f !important;
    }
    .culture-marker {
        background: #8b5cf6 !important;
    }
}

.facility-marker:hover {
    transform: scale(1.1);
}

/* Warna spesifik */
.school-marker {
    background: #3b82f6;
}
.health-marker {
    background: #ff007f;
}
.culture-marker {
    background: #8b5cf6;
}

/* Style untuk titik kasus - Versi Normal */
.case-point-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.2s;
}

.case-point-marker:hover .case-point-inner {
    transform: scale(1.2);
}

/* Animasi pulse hanya untuk web */
.case-pulse {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    top: 0;
    left: 0;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(2.5); opacity: 0; }
}
        /* ========================================= */
        /* CSS PRINT FIX - VERSI STRICT WYSIWYG      */
        /* Hanya fix warna, jangan ubah visibility   */
        /* ========================================= */
@media print {
    /* 1. Paksa browser tampilkan background color/image */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
    
    /* Global force background colors */
    * {
        -webkit-filter: none !important;
        filter: none !important;
    }
            
            
            
/* Hapus .print-clean-marker dari selector global */
.case-point-marker,
.facility-marker,
.leaflet-marker-icon {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

/* Pisahkan styling untuk print-clean-marker */
.print-clean-marker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
            
                        /* ========================================= */
            /* FIX TITIK KASUS SAAT PRINT - TETAP TERLIHAT */
            /* ========================================= */
            
            /* Container tetap ada tapi tanpa animasi */
            .case-point-container {
                position: relative !important;
                width: 20px !important; /* Sedikit lebih kecil saat print */
                height: 20px !important;
                background: transparent !important;
            }
            
            /* Icon tetap terlihat jelas */
            .case-point-icon {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: 20px !important;
                height: 20px !important;
                border-radius: 50% !important;
                color: white !important;
                font-size: 9px !important;
                border: 2px solid white !important;
                box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important; /* Shadow lebih tipis */
                position: relative !important;
                z-index: 2 !important;
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
            
/* ========================================= */
/* FIX WARNA MERAH SAAT PRINT - PASTIKAN EXACT */
/* ========================================= */

.case-point-icon {
    background: #ff0000 !important; /* MERAH PURE untuk semua kasus */
    background-color: #ff0000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    -webkit-filter: none !important;
    filter: none !important;
}

.case-point-icon.positif {
    background: #ff0000 !important; /* MERAH PURE */
    background-color: #ff0000 !important;
    border: 2px solid #ffffff !important;
}

.case-point-icon.suspek {
    background: #ff0000 !important; /* MERAH PURE (bukan orange) */
    background-color: #ff0000 !important;
    border: 2px solid #ffffff !important;
}

/* Fix untuk container dan animasi */
.case-point-container {
    background: transparent !important;
}

.case-point-icon i {
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}
            
            /* SEMBUNYIKAN animasi pulse SAAT PRINT */
            .case-pulse-ring {
                display: none !important;
            }
            
            /* Pastikan icon font terlihat */
            .case-point-icon i {
                color: white !important;
                font-size: 9px !important;
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
            
/* Style khusus untuk icon di dalam marker */
.facility-marker {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    width: 22px !important;      /* SAMA dengan titik kasus */
    height: 22px !important;     /* SAMA dengan titik kasus */
    color: white !important;
    border: 2px solid white !important;
    box-shadow: none !important; /* Hapus shadow saat print */
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

/* Titik kasus tetap 20px */
.case-point-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    color: white !important;
    border: 2px solid white !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}
            
            /* Ukuran lebih kecil untuk titik kasus saat print */
            .case-point-inner {
                width: 24px !important;
                height: 24px !important;
                font-size: 10px !important;
                border: 2px solid white !important;
            }
            
            /* Sembunyikan elemen animasi saat print */
            .case-pulse {
                display: none !important;
            }
            
            /* Pastikan icon font terlihat jelas */
            .facility-marker i,
            .case-point-inner i {
                color: white !important;
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
            
            /* Warna spesifik untuk setiap jenis marker */
            .school-marker {
                background: #3b82f6 !important;
            }
            .health-marker {
                background: #ff007f !important;
            }
            .culture-marker {
                background: #8b5cf6 !important;
            }
            
            /* 2. Background body tetap sama seperti web */
            body {
                background: #eef2f6 !important;
                -webkit-print-color-adjust: exact !important;
            }
            
            /* 3. Mesh background tetap ada */
            .bg-mesh {
                opacity: 0.1 !important;
                -webkit-print-color-adjust: exact !important;
            }
            
/* 4. GLASS PANEL: FIX BAYANGAN HITAM DIBUANG */
/* HAPUS .bottom-dock-container dari list di bawah ini */
.glass-panel, .sidebar-container, .top-rw-container, 
.fullscreen-btn {
    -webkit-print-color-adjust: exact !important;
    
    /* UBAH: Pakai putih solid agar tidak jadi abu-abu/hitam */
    background: #ffffff !important; 
    
    /* UBAH: Border abu tipis */
    border: 1px solid #ffffff !important;
    
    /* UBAH: Wajib NONE agar tidak ada kotak hitam */
    box-shadow: none !important; 
    filter: none !important;
}

/* TAMBAHAN BARU: Pastikan wadah tombol transparan, jangan putih */
.bottom-dock-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    z-index: 9999 !important; /* Pastikan di atas layer shape kota/peta */
}
            
/* TAMBAHAN KHUSUS TOMBOL DOCK & FULLSCREEN */
/* 1. Style Umum (Warna, Border, Radius) - Sama untuk keduanya */
.dock-btn, .fullscreen-btn {
    background: #ffffff !important;
    box-shadow: none !important;
    color: #000000 !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 16px !important;
    -webkit-border-radius: 16px !important;
    -moz-border-radius: 16px !important;
    z-index: 9999 !important;
    transform: none !important;
}

/* 2. KHUSUS TOMBOL DOCK: Pakai Relative agar berjejer di kiri */
.dock-btn {
    position: relative !important;
}

/* 3. KHUSUS TOMBOL FULLSCREEN: Pakai Absolute agar DIAM DI POJOK KANAN BAWAH */
.fullscreen-btn {
    position: absolute !important;
    bottom: 25px !important;
    right: 20px !important;
}
            
          /* TAMBAHAN KHUSUS TOMBOL DOCK & FULLSCREEN */
           .dock-btn, .fullscreen-btn {
             background: #ffffff !important;
               box-shadow: none !important;
                border: 1px solid #ffffff !important;
                color: #000000 !important;
            } 
            


            /* --- BARU: FIX LOGO FILTER & LEGENDA --- */
            .section-icon-box {
                /* Matikan bayangan */
                box-shadow: none !important;
                -webkit-box-shadow: none !important;
                filter: none !important;
                
                /* Beri garis tepi tipis sebagai pengganti bayangan agar kotak tetap terlihat */
                border: 1px solid #ffffff !important;
                background: #ffffff !important;
                
                /* Pastikan ikon di dalamnya tetap berwarna biru */
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
            
            /* 5. Drawer: Jika sedang tertutup (display: none), biarkan tertutup */
            /* Jika sedang terbuka, baru tampilkan dengan warna yang benar */
            .dock-drawer {
                -webkit-print-color-adjust: exact !important;
                background: rgba(255, 255, 255, 0.85) !important;
                /* Tidak ada 'display: flex !important' di sini */
            }
            
            /* 6. Elemen yang sedang collapsed/minimized harus tetap hidden */
            /* Jangan override .collapsed atau .hidden */
            .collapsed, .hidden {
                /* Biarkan browser hormati class ini */
                /* Jangan diubah ke display: block !important */
            }
            
            /* 7. Tombol dan switch tetap berwarna */
            .year-btn.active, .toggle-btn, .dock-btn, 
            .slider, input:checked + .slider,
            .legend-icon, .rank-badge, .virus-icon-bg, 
            .case-icon, .gradient-bar {
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
            
            /* 8. Warna gradient legenda */
            .gradient-bar {
                background: linear-gradient(90deg, #10b981 0%, #ffcccc 20%, #ff9999 40%, #ff6666 60%, #ff3333 80%, #990000 100%) !important;
            }
            
            /* 9. Peta tetap sebagai background */
            #map {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                width: 100% !important;
                height: 100% !important;
                z-index: 1 !important;
            }
            
            /* 10. Layer peta tetap berwarna */
            .leaflet-interactive {
                fill-opacity: 0.85 !important;
                stroke-opacity: 1 !important;
                -webkit-print-color-adjust: exact !important;
            }
            
            /* 11. Hilangkan efek hover yang mengganggu */
            *:hover {
                transform: none !important;
            }
            
            /* 12. Scrollbar tetap hidden supaya rapi */
            ::-webkit-scrollbar {
                display: none !important;
            }
            
         /* TAMBAHAN: Reset shadow hanya untuk tombol dan panel */
    .dock-btn, .fullscreen-btn, .glass-panel, .sidebar-container, 
    .top-rw-container, .bottom-dock-container, .dock-drawer {
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Kecuali untuk elemen yang memang butuh efek */
    .case-point-icon,
    .facility-marker,
    .year-btn.active {
        box-shadow: none !important; /* Hapus semua bayangan saat print */
    }
    
    /* Pastikan backdrop-filter tidak merusak render */
    .glass-panel,
    .sidebar-container,
    .top-rw-container,
    .bottom-dock-container,
    .fullscreen-btn,
    .dock-drawer {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
  
}


        /* Fix tambahan untuk browser yang mengabaikan backdrop-filter saat print */
/* ========================================= */
/* FIX EKSTRA UNTUK CHROME/WEBKIT PRINT */
/* ========================================= */
@media print and (-webkit-min-device-pixel-ratio:0) {
    .case-point-icon,
    .case-point-icon.positif,
    .case-point-icon.suspek {
        background: rgb(255, 0, 0) !important;
        background-color: rgb(255, 0, 0) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Fix untuk Firefox */
@-moz-document url-prefix() {
    @media print {
        .case-point-icon {
            background: rgb(255, 0, 0) !important;
        }
    }
}

/* --- STYLE TITIK LOKASI KASUS --- */
.case-point-marker {
    background: transparent;
    border: none;
}


@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(2.5); opacity: 0; }
}

.case-point-marker:hover .case-icon {
    transform: scale(1.2);
}

/* ========================================= */
/* STYLE TITIK KASUS - VERSI WEB (DENGAN ANIMASI) */
/* ========================================= */

.case-point-marker {
    background: transparent;
    border: none;
}

/* Container untuk titik kasus dengan animasi pulse */
.case-point-container {
    position: relative;
    width: 24px;
    height: 24px;
}

/* Icon titik kasus (bagian tengah yang berwarna) */
.case-point-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 10px !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    position: relative !important;
    z-index: 2 !important;
    transition: transform 0.2s !important;
    background: #ef4444 !important;
}

/* TAMBAHKAN: Hilangkan shadow saat print */
@media print {
    .case-point-icon,
    .case-point-icon.positif,
    .case-point-icon.suspek {
        box-shadow: none !important;
        border: 2px solid white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}



/* Animasi pulse ring - hanya untuk web */
.case-pulse-ring {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: inherit; /* Warna sama dengan icon */
    opacity: 0.4;
    z-index: 1;
    top: 0;
    left: 0;
    animation: pulse-ring-anim 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring-anim {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(2.5); opacity: 0; }
}

.case-point-marker:hover .case-point-icon {
    transform: scale(1.2);
}

/* Warna spesifik untuk klasifikasi (opsional) */
.case-point-icon.positif {
    background: #dc2626; /* Merah tua untuk positif */
}
.case-point-icon.suspek {
    background: #f59e0b; /* Oranye untuk suspek */
}

/* ========================================= */
/* CUSTOM ZOOM CONTROL - DESAIN GLASS MORPHISM */
/* ========================================= */

/* Container utama tombol zoom */
.custom-zoom-control {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 70px !important; /* Jarak dari tombol fullscreen di bawahnya */
    margin-right: 10 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.custom-zoom-control:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Style untuk setiap tombol (+ dan -) */
.custom-zoom-btn {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-dark) !important;
    font-size: 16px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Hover effect */
.custom-zoom-btn:hover {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary) !important;
}

/* Active/Click effect */
.custom-zoom-btn:active {
    background: rgba(37, 99, 235, 0.2) !important;
    transform: scale(0.95) !important;
}

/* Icon styling */
.custom-zoom-btn i {
    font-size: 16px !important;
    font-weight: 600 !important;
    pointer-events: none !important;
}

/* Divider antara + dan - */
.zoom-divider {
    width: 60% !important;
    height: 1px !important;
    background: rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
}

/* ========================================= */
/* PRINT STYLES UNTUK ZOOM CONTROL */
/* ========================================= */
@media print {
    .custom-zoom-control {
        background: #ffffff !important;
        box-shadow: none !important;
        border: 1px solid #94a3b8 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .custom-zoom-btn {
        color: #000000 !important;
    }
    
    .zoom-divider {
        background: rgba(0, 0, 0, 0.2) !important;
    }
}

/* ========================================= */
/* TOOLTIP IMUNISASI - TAMBAHAN BARU */
/* ========================================= */

/* Divider antara stats kasus dan imunisasi */
.rw-divider-minimal {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 10px 0;
}

/* Container imunisasi */
.rw-imunisasi-minimal {
    margin-top: 2px;
}

/* Header imunisasi */
.rw-imun-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.rw-imun-header i {
    font-size: 10px;
}

/* Container progress bar */
.rw-imun-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Background progress bar */
.rw-imun-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

/* Fill progress bar */
.rw-imun-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.rw-imun-bar-fill.safe {
    background: linear-gradient(90deg, #10b981, #059669);
}

.rw-imun-bar-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.rw-imun-bar-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Nilai persentase */
.rw-imun-value {
    font-size: 11px;
    font-weight: 800;
    min-width: 35px;
    text-align: right;
}

.rw-imun-value.safe {
    color: #059669;
}

.rw-imun-value.warning {
    color: #d97706;
}

.rw-imun-value.danger {
    color: #dc2626;
}

/* ========================================= */
/* LEGEND ICON - DYNAMIC COLORS SUPPORT */
/* ========================================= */

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.legend-icon:hover {
    transform: scale(1.1);
}

/* Override untuk icon yang menggunakan inline style */
.legend-icon[style*="background"] {
    border: 1px solid currentColor;
    opacity: 0.9;
}

/* Print support untuk warna dinamis */
@media print {
    .legend-icon[style*="background"] {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border: 1px solid currentColor !important;
    }
}
/* Print styles untuk imunisasi */
@media print {
    .rw-imun-bar-fill {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .rw-imun-bar-fill.safe {
        background: #10b981 !important;
    }
    
    .rw-imun-bar-fill.warning {
        background: #f59e0b !important;
    }
    
    .rw-imun-bar-fill.danger {
        background: #ef4444 !important;
    }
}
