/* ============================================================
   FROSTED GLASS PASSPORT (VOI DATA CENTER)
   ============================================================ */

:root {
    /* LIGHT MODE */
    --bg-body: #f4f7f6; 
    --bg-card: rgba(255, 255, 255, 0.45); /* Kaca tembus pandang */
    --border-glass: rgba(255, 255, 255, 0.6);
    --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.07);
    --shadow-hover: 0 12px 40px rgba(31, 38, 135, 0.12);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --radius-card: 24px; /* Sudut kartu lebih melengkung */
}

[data-bs-theme="dark"] {
    /* DARK MODE */
    --bg-body: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.45);
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 24px 0 80px 0; /* Tambahkan padding bawah 80px agar konten paling bawah tidak tertutup footer */
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* ===== ANIMATED BACKGROUND BLOBS (DIPERKUAT) ===== */
body::before, body::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px); /* Blur sedikit dikurangi agar warnanya lebih solid */
    animation: float 15s infinite alternate ease-in-out;
}
body::before {
    width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
    background: rgba(59, 130, 246, 0.25); /* Biru lebih pekat */
    top: -10%; left: -10%;
}
body::after {
    width: 70vw; height: 70vw; max-width: 800px; max-height: 800px;
    background: rgba(168, 85, 247, 0.2); /* Ungu lebih pekat */
    bottom: -20%; right: -10%;
    animation-delay: -7s;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.1); }
}

.app { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== NAVBAR & BREADCRUMB ===== */
.navbar-custom {
    background: var(--bg-card);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
    padding: 14px 24px;
    margin-bottom: 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text-primary); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand i { color: var(--accent); font-size: 1.4rem; }
.btn-dark-toggle {
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 50%; /* Dibuat bulat sempurna */
    width: 42px; /* Ukuran presisi */
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efek membal (bouncy) */
}

.btn-dark-toggle:hover {
    background: rgba(150, 150, 150, 0.15);
    color: var(--accent);
    transform: scale(1.15) rotate(15deg); /* Membesar & agak miring sedikit saat disentuh */
}

.btn-dark-toggle:active {
    transform: scale(0.9) rotate(-15deg); /* Mengecil saat ditekan */
}

.btn-dark-toggle i {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.breadcrumb-custom {
    padding: 0 12px; margin-bottom: 24px; font-size: 0.95rem; font-weight: 500;
}
.breadcrumb-custom a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.breadcrumb-custom a:hover { color: var(--accent); }
.breadcrumb-custom .active { color: var(--text-primary); font-weight: 700; }
.breadcrumb-custom a:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--text-muted); }

/* ===== PURE FLAT UI CARD (HALAMAN DEPAN) ===== */
.flat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Desain Kartu Flat (Solid, Tanpa Kaca/Blur) */
.flat-card {
    background: #ffffff; /* Warna solid putih */
    border: 1px solid #e2e8f0; /* Garis tepi abu-abu tegas */
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); /* Bayangan sangat tipis */
}

/* Interaksi saat disentuh */
.flat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1); /* Bayangan biru tipis */
}

/* Flat Card untuk Mode Gelap */
[data-bs-theme="dark"] .flat-card {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
[data-bs-theme="dark"] .flat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Wadah Bendera (Berupa Lingkaran Solid) */
.flat-flag-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

[data-bs-theme="dark"] .flat-flag-wrapper {
    border-color: #0f172a;
    background: #0f172a;
}

.flat-card:hover .flat-flag-wrapper {
    transform: scale(1.1);
}

/* Bendera SVG bawaan (Di-zoom agar pas di lingkaran) */
.flat-flag-wrapper svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.3);
}

.flat-flag-wrapper .folder-icon-big {
    font-size: 2rem;
    color: var(--text-muted);
}

/* Teks Negara */
.flat-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: color 0.2s ease;
}

.flat-card:hover .flat-name {
    color: var(--accent);
}

/* ===== TABLE & MISC ===== */
/* Tabel dibalut kaca juga */
.card-table {
    background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 16px; border: 1px solid var(--border-glass); box-shadow: var(--shadow-glass); padding: 16px; overflow: hidden;
}
.table-custom { width: 100%; border-collapse: collapse; }
.table-custom thead th { text-align: left; padding: 12px 16px; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border-glass); }
.table-custom tbody td { padding: 14px 16px; border-bottom: 1px solid rgba(150,150,150,0.1); color: var(--text-primary); font-size: 0.9rem; vertical-align: middle; }
.table-custom tbody tr:hover { background: rgba(0,0,0,0.02); }
[data-bs-theme="dark"] .table-custom tbody tr:hover { background: rgba(255,255,255,0.02); }
.table-custom a { color: var(--text-primary); font-weight: 600; text-decoration: none; }
.table-custom a:hover { color: var(--accent); }
.badge-count { font-size: 0.7rem; padding: 2px 8px; background: rgba(150,150,150,0.1); color: var(--text-secondary); border-radius: 20px; margin-left: 8px; }
/* ===== TOMBOL AKSI DI TABEL (COPY & DOWNLOAD) ===== */
.btn-copy, .btn-download {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none; /* Diperlukan karena tombol download berupa tag <a> */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.btn-copy:hover, .btn-download:hover {
    background: rgba(150, 150, 150, 0.1);
    color: var(--accent);
}
.btn-copy:hover { background: rgba(150,150,150,0.1); color: var(--accent); }

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.1); /* Efek kaca tipis */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    z-index: 100; /* Memastikan footer selalu di atas */
}

[data-bs-theme="dark"] footer {
    background: rgba(0, 0, 0, 0.2);
}

.toast { background: var(--bg-card) !important; color: var(--text-primary); border: 1px solid var(--border-glass); backdrop-filter: blur(16px); }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border: 1px solid var(--border-glass); border-radius: 8px; padding: 6px 12px; background: transparent; color: var(--text-primary); }
.dataTables_wrapper .dataTables_paginate .paginate_button { border: none !important; border-radius: 8px !important; margin: 0 2px; color: var(--text-primary) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--accent) !important; color: #fff !important; }

/* ===== TAMBAHAN: PANAH DI PILL CARD ===== */
.pill-arrow {
    margin-left: auto; /* Mendorong panah ke ujung kanan */
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.pill-card:hover .pill-arrow {
    opacity: 1;
    color: var(--accent);
    transform: translateX(4px); /* Animasi geser sedikit saat di-hover */
}

/* ===== CUSTOM AUDIO PLAYER PREMIUM ===== */
.custom-audio-player {
    position: fixed;
    bottom: 70px; /* Dinaikkan agar tidak menabrak footer */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 10px 16px 10px 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

[data-bs-theme="dark"] .custom-audio-player {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 70px; opacity: 1; } /* Dinaikkan juga di animasinya */
}

/* Lingkaran Ikon (Cover) */
.cap-cover {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #8a2be2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- ANIMASI BULET-BULET (EQUALIZER) --- */
.eq-anim {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}
.eq-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: bounce 0.5s alternate infinite ease-in-out;
}
.eq-dot:nth-child(2) { animation-delay: 0.15s; }
.eq-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
    from { transform: translateY(4px); }
    to { transform: translateY(-4px); }
}


/* Judul Audio */
.cap-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cap-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Titik-titik jika judul kepanjangan */
}

/* Garis Waktu (Slider) & Angka Menit */
.cap-timeline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* WADAH SLIDER CUSTOM */
.slider-container {
    position: relative;
    width: 100%;
    height: 16px; /* Area klik dibuat agak lebar agar mudah disentuh */
    display: flex;
    align-items: center;
}

/* Garis Dasar (Abu-abu) */
.slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(150, 150, 150, 0.2);
    border-radius: 2px;
    pointer-events: none;
}

/* Garis Progress (Biru) */
.slider-fill {
    position: absolute;
    left: 0;
    height: 4px;
    width: 0%; /* Akan diatur oleh JS */
    background: var(--accent);
    border-radius: 2px;
    pointer-events: none;
}

/* Titik Bulat di ujung progress (Hanya muncul saat disentuh) */
.slider-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

/* Tampilkan titik bulat saat mouse berada di area slider */
.slider-container:hover .slider-fill::after {
    opacity: 1;
}

/* Input Range Asli (Dibuat Tembus Pandang / Invisible) */
.cap-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0; /* KUNCI UTAMA: Disembunyikan total dari pandangan */
    cursor: pointer;
    margin: 0;
    z-index: 5;
}

/* Tombol Kontrol */
.cap-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cap-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.cap-play {
    color: var(--text-primary);
    font-size: 2rem;
    width: 36px;
    height: 36px;
}
.cap-play:hover {
    color: var(--accent);
    transform: scale(1.1);
}
.cap-close {
    color: var(--text-muted);
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(150, 150, 150, 0.1);
}
.cap-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545; /* Merah menyala */
}