:root {
    --pu-dark-blue: #003366; 
    --pu-yellow: #FFC72C;    
}
.header-pu {
    /* Jika header menggunakan fixed/sticky, konten di bawahnya harus didorong ke bawah */
    position: sticky; /* Atau 'fixed' */
    top: 0;
    z-index: 1030; /* Pastikan ia di atas elemen lain */
    width: 100%;
    background-color: var(--pu-dark-blue);
    color: white;
    /* padding: 15px 30px; */
    border-bottom: 5px solid var(--pu-yellow);
}
/* 1. Mengubah warna ikon menjadi putih */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f7a900' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 2. Mengubah warna border dan shadow saat fokus */
.navbar-toggler {
    border-color: #f7a900;
    transition: all 0.2s ease-in-out;
}

/* Optional: Menghilangkan border dan box-shadow saat diklik/fokus agar lebih bersih */
.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none; /* Menghilangkan shadow biru/putih default saat fokus */
}

/* Efek HOVER: Border Kuning PU lebih solid */
.navbar-toggler:hover {
    border-color: #f7a900; /* Kuning PU solid */
    background-color: #f7a9001a; /* Opsi: Sedikit latar belakang kuning sangat transparan */
}

/* Efek FOCUS dan ACTIVE (saat diklik) */
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: 0 0 0 0.25rem #f7a90050; /* Efek shadow Kuning PU yang lembut */
    border-color: #f7a900;
}

/* Definisikan Warna Link Menu Default (Putih/Whitesmoke) */
.navbar-nav .nav-link {
    /* Mengganti inline style color: whitesmoke; */
    color: whitesmoke !important; 
    font-weight: 500;
    transition: color 0.3s ease; /* Transisi halus saat hover */
    /* Tambahkan padding vertikal di sini jika belum diatur di HTML */
    padding-top: 0.5rem; 
    padding-bottom: 0.5rem;
}

/* Link Menu Saat Aktif (Active) */
.navbar-nav .nav-link.active {
    color: #f7a900 !important; /* Warna kuning untuk link yang sedang aktif */
    font-weight: 700;
    /* Opsional: Tambahkan garis bawah kuning tipis untuk penanda aktif */
    border-bottom: 2px solid #f7a900; 
}

/* Efek HOVER Kuning (Aksen PU) */
.navbar-nav .nav-link:hover {
    color: #f7a900 !important; /* Warna kuning saat di-hover */
}

/* Catatan untuk Tampilan Mobile */
/* Di mobile, saat menu dropdown terbuka, background-nya mungkin putih. 
   Pastikan warna link tetap terlihat jelas. */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #102B4B; /* Tetap pertahankan background biru tua saat menu terbuka di mobile */
        padding: 10px;
    }
    .navbar-nav .nav-link {
        /* Warna putih tetap bagus di background biru tua mobile */
        color: whitesmoke !important; 
    }
}

#map {
    height: calc(100vh - 80px); 
    width: 100%;
    z-index: 1;
}
.logo-text {
    color: var(--pu-yellow);
    font-weight: 700;
}
.leaflet-control-container {
    z-index: 999;
}
.info.legend {
    background: white;
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}
/* Style Awal Marker */
.custom-div-icon i {
    display: block;
    text-align: center;
    line-height: 1; 
    text-shadow: 1px 1px 1px #00000080;
}
.btn-pu-login {
    background-color: #f7a900; /* Kuning terang sebagai aksen */
    color: #102B4B; 
    font-weight: 600;
    border: none;
}
.btn-pu-login:hover {
    background-color: #ffd85c;
    color: var(--pu-dark-blue);
}

/* --- KOTAK RINGKASAN STATUS --- */
.status-summary {
    position: absolute;
    top: 90px; 
    left: 50px; 
    /* z-index: 1000;  */
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    padding-top: 20px;
    background-color: #f8f9fa;
}
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-weight: 500;
}
.status-item .count {
    font-weight: bold;
    font-size: 1.1em;
}

/* --- CSS MARKER PULSING (ROTARI VISUAL) --- */
@keyframes pulse-critical {
    0% { box-shadow: 0 0 0 0px rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0px rgba(220, 53, 69, 0); }
}
@keyframes pulse-moderate {
    0% { box-shadow: 0 0 0 0px rgba(255, 199, 44, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 199, 44, 0); }
    100% { box-shadow: 0 0 0 0px rgba(255, 199, 44, 0); }
}
.marker-critical {
    animation: pulse-critical 1.5s infinite;
    border-radius: 50%;
    padding: 5px; 
}
.marker-moderate {
    animation: pulse-moderate 2s infinite;
    border-radius: 50%;
    padding: 3px;
}
.app-logo {
    height: 40px; 
    margin-right: 15px;
}
/* --- CSS BARU UNTUK POPUP GAMBAR --- */
.leaflet-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}
.leaflet-popup-content {
    min-width: 200px;
}