      /* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* ==========================================
   TOP NAVIGATION BAR
   ========================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    display: flex;
    width: 100%;
    max-width: 500px; /* Menyesuaikan batas lebar yang sama dengan bottom nav */
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #FFA500;
}
a {
    text-decoration: none;
}
.top-nav-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #8e8e93;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: #FFA500;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   KONTEN UTAMA (Agar tidak tertutup navbar)
   ========================================== */
.content {
    padding: 80px 20px 90px 20px; /* Padding atas 80px, bawah 90px */
    max-width: 500px;
    margin: 0 auto;
}

.content h2 {
    margin-bottom: 10px;
    color: #333;
}

.content p {
    color: #666;
    line-height: 1.5;
}

/* ==========================================
   BOTTOM NAVIGATION BAR
   ========================================== */
.bottom-nav {
    position: fixed;
    bottom: 20px;              /* Memberi jarak dari bawah layar agar melayang */
    left: 50%;                 /* Posisikan di tengah secara horizontal */
    transform: translateX(-50%); /* Sentralisasi sempurna */
    width: calc(100% - 40px);  /* Lebar navbar mengikuti layar dikurangi margin kiri-kanan */
    max-width: 460px;          /* Batas lebar maksimal navbar */
    height: 70px;
    background-color: #ffffff;
    
    /* Trik Membuat Kotak Melengkung */
    border-radius: 25px;       /* Semakin besar angkanya, semakin melengkung sudutnya */
    
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); /* Bayangan lebih halus untuk efek melayang */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999 !important; /* Set ke angka besar agar mutlak berada di atas semua elemen */
    padding: 0 10px;
}

.nav-list {
    display: flex;
    width: 100%;
    max-width: 500px;
    justify-content: space-around;
    list-style: none;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8e8e93;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

/* State Aktif */
.nav-item.active a {
    animation: bounceEffect 0.5s ease-out;
    color: #FFA500;
}

.nav-item.active .nav-icon {
    stroke: #FFA500;
    transform: translateY(-3px);
}
/* Struktur Animasi Memantul (Bounce) */
@keyframes bounceEffect {
    0% {
        transform: scale(1) translateY(0);
    }
    30% {
        /* Naik ke atas dan sedikit memanjang */
        transform: scale(0.9, 1.1) translateY(-8px);
    }
    50% {
        /* Turun kembali dan sedikit memipih saat menyentuh dasar */
        transform: scale(1.1, 0.9) translateY(0);
    }
    70% {
        /* Membal sedikit ke atas lagi (lebih rendah dari yang pertama) */
        transform: scale(0.95, 1.05) translateY(-3px);
    }
    100% {
        /* Kembali ke ukuran dan posisi semula */
        transform: scale(1) translateY(0);
    }
}
/* ==========================================
   TATA LETAK KONTEN GRID KOTAK KECIL
   ========================================== */

/* Wadah Utama Grid */
.box-container {
    display: grid;
    /* MENGUBAH JADI 3 KOLOM: 
       Di layar HP/Mobile, kotak otomatis dibagi menjadi 3 kolom sejajar */
    grid-template-columns: repeat(3, 1fr); 
    
    /* Jarak antar kotak kecil (dikecilkan sedikit menjadi 10px agar pas di layar HP) */
    gap: 10px; 
    width: 100%;
}

/* Gaya untuk Setiap Kotak Kecil */
.box-item {
    background-color: #ffffff;
    border-radius: 12px; /* Sudut melengkung disesuaikan */
    padding: 12px 8px;   /* Padding diperkecil agar teks tidak luber */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    text-decoration: none; 
    transition: transform 0.2s ease;
}

/* Efek Interaktif Saat Kotak Disentuh / Di-hover */
.box-item:hover {
    transform: translateY(-4px); /* Efek melayang sedikit ke atas */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); /* Bayangan menajam */
}

/* Komponen di dalam Kotak */
.box-icon {
    font-size: 24px; /* Ukuran emoji lebih kompak */
    margin-bottom: 6px;
}

.box-item h3 {
    font-size: 12px;
    color: #333333;
    font-weight: 600;
    margin-bottom: 4px;
}

.box-item h2 {
    font-size: 10px;
    color: #8e8e93;
    line-height: 1.16;
}
/* Container Utama Box Filter */
.filter-container {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Judul Utama Filter */
.filter-main-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
}

/* Membagi input menjadi 2 kolom berdampingan */
.filter-range-wrapper {
    display: flex;
    gap: 12px; /* Jarak antara kolom 'Dari' dan 'Sampai' */
}

/* Mengatur porsi masing-masing kolom agar sama rata (50:50) */
.filter-group {
    flex: 1;
}

.filter-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #8e8e93;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input {
    width: 100%;
    height: 42px;
    background-color: #f2f2f7;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 35px 0 12px;
    font-size: 14px;
    color: #333333;
    font-weight: 500;
    outline: none;
    
    /* SOLUSI NYA: Pastikan kursor berubah menjadi pointer dan input mendukung klik penuh */
    cursor: pointer;
}

.filter-input:focus {
    border-color: #FFA500;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Posisi Ikon Kalender Custom */
.calendar-icon {
    position: absolute;
    right: 12px;
    width: 18px;
    height: 18px;
    color: #8e8e93;
    pointer-events: none;
}/* Menghilangkan ikon kalender di browser berbasis WebKit (Chrome, Safari, Edge, Opera) */
.filter-input::-webkit-calendar-picker-indicator {
    /* Cara 1: Sembunyikan total */
    display: none;
    
    /* Cara 2 (Alternatif jika display none bermasalah di beberapa versi HP): */
    /* opacity: 0; */
     -webkit-appearance: none; 
}

/* Menghilangkan tombol pembersih silang (X) bawaan jika ada */
.filter-input::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}
/* Memberikan jarak antara baris tanggal dan baris opsi di bawahnya */
.filter-options-wrapper {
    margin-top: 14px;
    display: flex;
    width: 100%;
}

/* Khusus untuk elemen select kustom */
.select-custom {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 35px; /* Spasi agar teks tidak menabrak ikon panah */
}

/* Mengatur posisi ikon panah kustom di sebelah kanan dropdown */
.select-arrow-icon {
    position: absolute;
    right: 12px;
    width: 18px;
    height: 18px;
    color: #8e8e93;
    pointer-events: none; /* Klik tembus ke select di bawahnya */
}

/* Container untuk tombol aksi */
.filter-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px; /* Jarak antara tombol reset dan submit */
    justify-content: flex-end; /* Tombol bergeser ke kanan di desktop */
}

/* Gaya dasar kedua tombol */
.btn-filter {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Tombol Terapkan (Primary - Biru) */
.btn-primary {
    background-color: #FFA500;
    color: #ffffff;
    flex: 2; /* Membuat tombol submit sedikit lebih lebar di HP */
}

.btn-primary:hover {
    background-color: #0062cc;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Tombol Reset (Secondary - Abu-abu Lembut) */
.btn-secondary {
    background-color: #e5e5ea;
    color: #3a3a3c;
    flex: 1; /* Porsi tombol reset lebih kecil */
}

.btn-secondary:hover {
    background-color: #d1d1d6;
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* Responsif khusus layar HP: tombol memanjang penuh */
@media (max-width: 480px) {
    .filter-actions {
        width: 100%;
    }
}/* Pembungkus luar filter */
.filter-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Memastikan konten terpotong rapi saat ditutup */
}

/* Tombol Pemicu Buka Tutup */
.filter-trigger {
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.trigger-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333333;
}

.trigger-icon {
    width: 16px;
    height: 16px;
    color: #FFA500; /* Warna biru aksen */
}

/* Animasi Putar Panah */
.arrow-toggle-icon {
    width: 18px;
    height: 18px;
    color: #8e8e93;
    transition: transform 0.3s ease;
}

/* Kelas khusus saat filter aktif terbuka (ditambahkan via JS) */
.filter-wrapper.is-open .arrow-toggle-icon {
    transform: rotate(180deg); /* Panah berputar ke atas */
}

/* Wadah Utama Konten Filter */
.filter-container {
    padding: 0 16px 16px 16px; /* Padding atas dibuat 0 agar rapat dengan tombol trigger */
    display: none; /* Default: Tertutup/tersembunyi */
    animation: slideDown 0.25s ease forwards;
}

/* Kelas untuk memunculkan kembali konten filter */
.filter-wrapper.is-open .filter-container {
    display: block;
}
/* Pembungkus Luar Konten Box */
.content-box-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Tombol Pemicu Buka Tutup Konten */
.box-trigger {
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.box-trigger-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333333;
}

.box-trigger-icon {
    width: 16px;
    height: 16px;
    color: #007aff; /* Warna biru aksen ikon grid */
}

/* Ikon Panah Konten */
.arrow-box-icon {
    width: 18px;
    height: 18px;
    color: #8e8e93;
    transition: transform 0.3s ease;
}

/* Efek Putar Panah saat Kelas .is-open Aktif */
.content-box-wrapper.is-open .arrow-box-icon {
    transform: rotate(180deg);
}

/* Mengatur Ulang Box Container Bawaan Anda */
.box-container {
    display: none; /* Sembunyikan secara default */
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    width: 100%;
    padding: 0 16px 16px 16px; /* Tambah padding dalam agar rapi */
    animation: slideDownBox 0.25s ease forwards;
}

/* Tampilkan Grid saat Pembungkus Memiliki Kelas .is-open */
.content-box-wrapper.is-open .box-container {
    display: grid; /* Mengubah dari none menjadi grid agar tata letak tidak rusak */
}

/* Animasi Muncul Halus */
@keyframes slideDownBox {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Animasi Halus Muncul ke Bawah */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}