/* =========================================================
   1. ANIMASI & NAVIGASI MENU (Sangat Penting)
   ========================================================= */
.konten { 
    display: none; /* Menyembunyikan semua halaman */
}

.konten.aktif {
    display: block; /* Menampilkan halaman yang diklik */
    animation: fadeIn 0.4s ease-in-out; /* Tambahan animasi halus saat pindah menu */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   2. TAMPILAN GAMBAR ATAS (HERO) & STASIUN
   ========================================================= */
.hero-slider {
    position: relative;
    height: clamp(200px, 50vw, 450px); /* Menjaga agar gambar tidak terlalu raksasa di monitor */
    overflow: hidden;
}

.stasiun {
    background: url("/static/img/Namlea.png") center / cover no-repeat;
    position: relative;
}

.stasiun .overlay {
    background: rgba(0, 0, 0, 0.65); /* Digelapkan sedikit agar teks putih mudah dibaca */
}
.parallax-hero {
            background-image: 
                linear-gradient(to bottom, rgba(248, 249, 250, 0.1) 0%, rgba(248, 249, 250, 1) 100%), 
                url('/static/img/Namlea.png');
            background-attachment: fixed;
            background-position: center top;
            background-repeat: no-repeat;
            background-size: cover;
            height: 450px;
            
            /* JURUS MENDOBRAK BATAS CONTAINER (FULL SCREEN KANAN KIRI) */
            width: 100vw;
            position: relative;
            left: 50%;
            transform: translateX(-50%);
            
            border-radius: 0;
            box-shadow: none;
        }
/* =========================================================
   3. SETTING PETA & POPUP LEAFLET
   ========================================================= */
#map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
}

@media (max-width: 768px){ #map{ height: 350px; } }
@media (max-width: 480px){ #map{ height: 300px; } }

/* Desain Kotak Popup Geser Otomatis (Hasil Perbaikan Kita) */
.custom-popup-cuaca .leaflet-popup-content-wrapper {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.custom-popup-cuaca .leaflet-popup-content { margin: 12px 16px; }
.custom-popup-cuaca .leaflet-popup-tip { background: white; }

/* Isi Teks di Dalam Popup Peta */
.tooltip-pro { text-align: center; padding: 5px; }
.tooltip-header { font-weight: bold; color: #004a8f; font-size: 15px; }
.tooltip-status { font-size: 10px; background: #e1effe; color: #004a8f; display: inline-block; padding: 2px 8px; border-radius: 10px; margin: 5px 0; }
.tooltip-main { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; }
.tooltip-footer { font-size: 11px; color: #666; border-top: 1px solid #eee; padding-top: 5px; }

/* =========================================================
   4. DESAIN UNTUK JAVASCRIPT (Jangan Dihapus)
   Ini digunakan oleh script.js untuk mencetak data Pegawai & Cuaca
   ========================================================= */

/* --- A. Kartu Pegawai --- */
.pegawai { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; }
.pegawai .card {
    width: 220px; border: 1px solid #ddd; border-radius: 12px; padding: 15px;
    text-align: center; background: white; box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.pegawai .card img {
    width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
    border: 3px solid #005fa3; margin-bottom: 10px; margin-left: auto; margin-right: auto;
}

/* --- B. Grid Prakiraan Cuaca --- */
.grid-cuaca { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; padding: 20px 0; }
.card-prakiraan { background: #ffffff; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eef2f7; overflow: hidden; transition: all 0.3s ease; }
.card-prakiraan:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,74,143,0.1); }
.card-prakiraan-header { background: #004a8f; padding: 12px 20px; color: white; }
.card-prakiraan-header h4 { margin: 0; font-size: 16px; letter-spacing: 0.5px; }
.card-prakiraan-body { padding: 20px; }
.forecast-day { display: flex; flex-direction: column; gap: 8px; }
.label-day { font-weight: bold; color: #8898aa; font-size: 12px; text-transform: uppercase; }
.forecast-info { display: flex; align-items: center; gap: 15px; }
.weather-icon { font-size: 28px; }
.weather-detail .desc { margin: 0; font-weight: 600; color: #32325d; }
.weather-detail .stats { margin: 0; font-size: 13px; color: #525f7f; }
.divider { height: 1px; background: #eef2f7; margin: 15px 0; }

/* Animasi berdenyut untuk ikon gempa */
@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.pulse-animation {
    animation: pulse-red 2s infinite;
}

.fw-800 { font-weight: 800; }

/* =========================================================
           WARNA TOMBOL MENU NAVIGASI (SENADA DENGAN HEADER)
           ========================================================= */
        
        /* 1. Menu Aktif (Contoh: Beranda) - Gradasi Biru ke Hijau Toska */
        .nav-pills .nav-link.active {
            background: linear-gradient(135deg, #0B2447 0%, #0d9488 100%) !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
        }

        /* 2. Menu Tidak Aktif - Garis dan Teks Biru Navy */
        .nav-pills .nav-link {
            color: #19376D !important;
            border: 1px solid #19376D !important;
            background: transparent;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        /* 3. Efek Hover (Saat kursor mouse menyentuh tombol) */
        .nav-pills .nav-link:hover {
            background: rgba(13, 148, 136, 0.1) !important; 
            color: #0d9488 !important;
            border-color: #0d9488 !important;
        }