/* === Variabel SAMA PENUH DENGAN ADMIN === */
:root {
    --primary: #0A1435;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --text-dark: #111827;
    --text-light: #6B7280;
    --bg-page: #F0F7FF;
    --bg-card: #FFFFFF;
    --border: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --purple: #8B5CF6;
    --sidebar-width: 220px;
    --sidebar-kecil: 0px;
    --shadow-soft: 0 8px 24px rgba(37, 99, 235, 0.08);
    --shadow-hover: 0 12px 32px rgba(37, 99, 235, 0.15);
    --transition-speed: 0.5s;
    --transition-fast: 0.3s;
    --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(180deg, #F0F7FF 0%, #E6EFFC 100%);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    font-size: 14px;
}

#app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ==============================================
✅ SIDEBAR - 100% SAMA DENGAN ADMIN
============================================== */
.sidebar {
    width: 220px;
    background: linear-gradient(180deg, #0F2540 0%, #091C33 100%);
    color: #E2E8F0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    background-image: 
        linear-gradient(180deg, rgba(15, 37, 64, 0.92) 0%, rgba(9, 28, 51, 0.95) 100%),
        url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_YTgPjh8yFs573qzCCJvnWJCef0n9e3jxeZtf5mkyDX8tnG1PVRRWVP0YUiwPn40_GtjLU2YjvQwN-iYe6dClkzB_024rRjaeR2667TJgBhyphenhyphenAxd09o7ZfirsJRtPWRIMGeCxfJSCezObVN-GO3wWySJarV_Vu-F_KkivBy2BgSrrCuxVMqKEbSiTWyDY/w225-h400/Pisahkan%20Gambar.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sidebar.tertutup {
    transform: translateX(-100%);
}

.sidebar-brand {
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo-row img {
    height: 42px;
    width: auto;
    object-fit: contain;
}
.brand-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.brand-title-main {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}
.brand-title-sub {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 500;
}

.brand-description {
    margin-top: 14px;
    padding: 12px 3px 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    text-align: left;
}

.brand-system-name {
    font-size: 8.5px;
    line-height: 1.6;
    font-weight: 600;
    color: #CBD5E1;
    letter-spacing: 0.35px;
}

.brand-location {
    margin-top: 6px;
    font-size: 8px;
    line-height: 1.5;
    color: #64748B;
    font-weight: 500;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}
.sidebar-menu::-webkit-scrollbar {
    width: 3px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.menu-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748B;
    padding: 12px 8px 8px;
    letter-spacing: 0.8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.menu-item i {
    width: 20px;
    font-size: 17px;
    text-align: center;
    flex-shrink: 0;
}
.menu-item-sub {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 1px;
}
.menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #FFFFFF;
    transform: translateX(3px);
}
.menu-item.active {
    background: rgba(59, 130, 246, 0.18);
    color: #FFFFFF;
    border-left: 3px solid #3B82F6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.sidebar-footer {
    padding: 16px 12px 20px;
    border-top: 0px solid rgba(255,255,255,0.1);
    text-align: center;
}
.sidebar-footer-logo img {
    height: 150px;
    width: auto;
    margin-bottom: 8px;
    object-fit: contain;
}
.sidebar-footer-text div {
    font-size: 10px;
    color: #94A3B8;
    line-height: 1.4;
}

.sidebar-logout {
    padding: 12px 12px 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}
.sidebar-logout .menu-item {
    color: #FCA5A5;
}
.sidebar-logout .menu-item:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #FECDD3;
    transform: translateX(3px);
}
.sidebar-logout .menu-item i {
    color: #F87171;
}
.sidebar-logout .menu-item:hover i {
    color: #FCA5A5;
}

/* ==============================================
✅ KONTEN UTAMA & HEADER - 100% SAMA DENGAN ADMIN
============================================== */
.main-content {
    margin-left: var(--sidebar-width);
    width: 100%;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}
.main-content.geser {
    margin-left: var(--sidebar-kecil);
}

.top-header.premium {
    background: linear-gradient(135deg, #0F2540 0%, #2563EB 50%, #0A1435 100%);
    color: white;
    padding: 1.75rem 2rem;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(15, 37, 64, 0.3);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    border: 1px solid rgba(255,255,255,0.1);
}

.header-left {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex: 1; 
    min-width: 300px;
}

.header-right {
    text-align: right; 
    display: flex; 
    flex-direction: row;    /* ← Ubah dari column → row */
    align-items: center;   /* ← Sejajar tengah vertikal */
    justify-content: flex-end; /* ← Rata kanan semua elemen */
    gap: 12px;              /* ← Jarak antar elemen */
    flex-wrap: wrap;        /* ← Pindah baris otomatis di layar sempit */
}

/* Tambahkan: Kelompok tanggal+jam tetap tersusun vertikal */
.tanggal-waktu-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-sidebar {
    width: 38px; 
    height: 38px; 
    border-radius: 10px;
    background: rgba(255,255,255,0.2); 
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 17px; 
    color: white; 
    transition: all 0.3s ease; 
    flex-shrink: 0;
}
.toggle-sidebar:hover { background: rgba(255,255,255,0.3); transform: scale(1.05); }

.header-text h1 { 
    font-size: 26px; 
    font-weight: 700; 
    color: white; 
    line-height: 1.2; 
    margin: 0;
}
.tanggal-header { 
    font-size: 15px; 
    font-weight: 500; 
    color: rgba(255,255,255,0.95); 
}
.jam-realtime { 
    font-size: 13px; 
    color: rgba(255,255,255,0.75); 
    font-weight: 400; 
}

.btn-refresh {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-refresh:hover {
    background: #ffffff;
    color: var(--accent);
}

.btn-notif {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-notif:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ==========================================
   📢 COMPONENT: BASIC TOAST / NOTIFIKASI
========================================== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: #0E2E22;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.4s ease;
    pointer-events: auto;
    border: none;
}

.toast.muncul {
    opacity: 1;
    transform: translateX(0);
    animation: shake 0.6s ease 0.4s;
}

.toast.hilang {
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.3s ease;
}

@keyframes shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px); }
    40%  { transform: translateX(4px); }
    60%  { transform: translateX(-3px); }
    80%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.toast__konten {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast__ikon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.toast__teks {
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.4;
}

.toast.sukses     { background: #0E2E22; }
.toast.sukses .toast__ikon { background: var(--success); color: #ffffff; }
.toast.info       { background: #0E222E; }
.toast.info .toast__ikon { background: var(--accent); color: #ffffff; }
.toast.peringatan { background: #2E280E; }
.toast.peringatan .toast__ikon { background: var(--warning); color: #ffffff; }
.toast.gagal      { background: #2E0E14; }
.toast.gagal .toast__ikon { background: var(--danger); color: #ffffff; }

.toast__tutup {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #A1AAB3;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.2s;
}

.toast__tutup:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* ==========================================
   HALAMAN & ANIMASI
========================================== */
.halaman { 
    display: none; 
    padding: 0;
}
.halaman.aktif { 
    display: block; 
    animation: fadeSlideIn 0.4s ease; 
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ✅ JUDUL HALAMAN */
.page-header {
    animation: fadeSlideIn 0.5s ease backwards;
}

.page-header h1 {
    font-size: 26px;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, var(--accent), #8b5cf6);
    border-radius: 10px;
}

.page-header p {
    color: #64748b;
    font-size: 14px;
    margin-top: 4px;
    letter-spacing: -0.1px;
    margin-left: 17px;
}

/* ✅ STATISTIK GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
    animation: fadeSlideUp 0.45s ease-out 0.1s both;
}

.stat-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(10, 20, 53, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--accent);
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.blue { 
    background: linear-gradient(135deg, #eff6ff, #dbeafe); 
    color: #2563eb; 
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.stat-icon.yellow { 
    background: linear-gradient(135deg, #fffbeb, #fef3c7); 
    color: #d97706; 
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.stat-icon.green { 
    background: linear-gradient(135deg, #ecfdf5, #d1fae5); 
    color: #059669; 
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.stat-icon.red { 
    background: linear-gradient(135deg, #fef2f2, #fecaca); 
    color: #dc2626; 
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.stat-card.disetujui { border-left-color: #22c55e; }
.stat-card.menunggu { border-left-color: #f59e0b; }
.stat-card.ditolak { border-left-color: #ef4444; }

.stat-card h3 {
    font-size: 32px;
    color: var(--primary);
    text-align: right;
    letter-spacing: -0.5px;
    font-weight: 800;
    line-height: 1;
}
.stat-card p {
    font-size: 13px;
    color: #64748b;
    text-align: right;
    font-weight: 500;
    margin-top: 4px;
}

/* ✅ TATA LETAK 2 KOLOM */
.bento-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    animation: fadeSlideUp 0.45s ease-out 0.2s both;
    width: 100%;
}

/* === WADAH KARTU STATISTIK === */
.wadah-kartu-statistik {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* === GAYA SETIAP KARTU === */
.kartu-statistik {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(10, 20, 53, 0.06);
    border-left: 3px solid;
    transition: all 0.25s ease;
}
.kartu-statistik:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 20, 53, 0.1);
}

/* === Warna Garis Tepi Kiri Sesuai Gambar === */
.kartu-statistik:nth-child(1) { border-left-color: #2563eb; }
.kartu-statistik:nth-child(2) { border-left-color: #10b981; }
.kartu-statistik:nth-child(3) { border-left-color: #f59e0b; }
.kartu-statistik:nth-child(4) { border-left-color: #8b5cf6; }

/* === WADAH IKON DALAM KARTU === */
.ikon-kartu {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}
.ikon-kartu.biru { background-color: #2563eb; }
.ikon-kartu.hijau { background-color: #10b981; }
.ikon-kartu.oranye { background-color: #f59e0b; }
.ikon-kartu.ungu { background-color: #8b5cf6; }

/* === ISI TEKS & ANGKA === */
.isi-kartu {
    flex: 1;
    text-align: right;
}
.angka-kartu {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.label-kartu {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .wadah-kartu-statistik {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .wadah-kartu-statistik {
        grid-template-columns: 1fr;
    }
}

/* ✅ KARTU */
.card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(10, 20, 53, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #3b82f6, #8b5cf6);
    border-radius: 20px 20px 0 0;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

.card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i {
    color: var(--accent);
    font-size: 22px;
}

.form-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    margin-bottom: 24px;
    line-height: 1.5;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

/* ✅ ELEMEN FORMULIR */
.form-jadwal {
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--accent);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.form-row-sejajar {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 18px;
    align-items: end;
    width: 100%;
}

.label-dengan-ikon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input, 
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea, 
.form-group select {
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: #f8fafc;
    width: 100%;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 48px;
    color: #1e293b;
}

.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:hover, 
.form-group input[type="tel"]:hover,
.form-group textarea:hover, 
.form-group select:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.form-group input:focus, 
.form-group input[type="tel"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.radio-group {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 48px;
    background: #f8fafc;
    flex: 1;
    min-width: 140px;
}

.radio-item:hover {
    border-color: var(--accent);
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.radio-item:has(input[type="radio"]:checked) {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
}

.radio-group label {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #475569;
}

.radio-item:has(input[type="radio"]:checked) label {
    color: var(--accent);
    font-weight: 600;
}

.opsi-lainnya {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.opsi-lainnya input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
}

.opsi-lainnya label {
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    font-weight: 500;
    color: #475569;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.opsi-lainnya label:hover {
    border-color: var(--accent);
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.jumlah-orang-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

.jumlah-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jumlah-input-group input {
    max-width: 160px;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.jumlah-bantuan {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jumlah-bantuan i {
    font-size: 14px;
}

.pesan-error {
    font-size: 12px;
    color: var(--danger);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* ✅ MODAL KAMERA */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 53, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 16px;
    box-sizing: border-box;
}

.modal-konten.kamera-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    padding: 0;
    position: relative;
    box-shadow: 0 25px 60px rgba(15, 37, 64, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.kamera-modal .kamera-header {
    background: linear-gradient(135deg, #0F2540 0%, #2563EB 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kamera-modal .kamera-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    text-align: left;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kamera-modal .kamera-header h4 i {
    font-size: 18px;
}

.kamera-modal .kamera-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    position: relative;
}

.kamera-modal .tutup {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.kamera-modal .tutup:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

#videoKamera {
    width: 100%;
    height: auto;
    max-height: 360px;
    min-height: 240px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    transform: scaleX(-1);
    object-fit: cover;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.kamera-tombol {
    display: flex;
    justify-content: center;
    margin: 0;
    padding-top: 4px;
}

.kamera-tombol .btn-primary {
    width: 100%;
    max-width: 220px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease;
}

.kamera-tombol .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.hasil-foto {
    margin-top: 8px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hasil-foto img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hasil-foto .btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hasil-foto .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

/* ✅ TOMBOL UTAMA */
.btn {
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-outline {
    background: #ffffff;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline i {
    font-size: 16px;
}

.btn-primary { 
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); 
    color: white; 
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-primary:hover { 
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-block { 
    width: 100%; 
    padding: 16px;
    font-size: 16px;
    border-radius: 14px;
    margin-top: 8px;
}

.btn-block i {
    font-size: 18px;
}

/* ✅ KALENDER */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.kalender-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kalender-nav button {
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--accent);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kalender-nav button:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#namaBulanTahun { 
    font-size: 18px; 
    margin: 0 12px; 
    font-weight: 700;
    color: var(--primary);
}

.hari-nama, .hari-tanggal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    width: 100%;
}

.hari-nama {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 12px;
    height: 40px;
    align-items: center;
    display: grid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hari-tanggal { 
    gap: 0;
    row-gap: 10px;
    width: 100%;
}

.hari-tanggal span {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 52px;
    height: 52px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: 12px;
    cursor: pointer;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    box-shadow: none;
    border: 2px solid transparent;
    font-weight: 600;
}

.hari-tanggal span:hover { 
    background: rgba(37, 99, 235, 0.08); 
    color: var(--accent);
    transform: scale(1.08);
}

.hari-tanggal span.active { 
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; 
    color: white !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transform: scale(1.05);
}

.hari-tanggal span.hari-libur {
    color: #94a3b8;
    text-decoration: line-through;
    cursor: not-allowed;
}

.hari-tanggal span.hari-libur:hover {
    background: transparent;
    color: #94a3b8;
    transform: none;
}

.hari-tanggal span.status-disetujui { 
    background: rgba(34, 197, 94, 0.1); 
    color: #16a34a; 
    font-weight: 700;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.hari-tanggal span.status-menunggu { 
    background: rgba(245, 158, 11, 0.1); 
    color: #d97706; 
    font-weight: 700;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.hari-tanggal span.status-ditolak { 
    background: rgba(239, 68, 68, 0.1); 
    color: #dc2626; 
    font-weight: 700;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.hari-tanggal span.hari-ini { 
    border: 2px solid var(--accent); 
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.kalender-keterangan { 
    display: flex; 
    gap: 20px; 
    font-size: 12px; 
    color: #64748b; 
    margin-top: auto;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.kalender-keterangan span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot { 
    display: inline-block; 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    flex-shrink: 0;
}

.dot.hijau { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
.dot.kuning { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.dot.merah { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }

.kosong {
    background: #f8fafc;
    padding: 32px 20px;
    border-radius: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    border: 2px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.kosong i {
    font-size: 32px;
    color: #cbd5e1;
}

/* ================================================
   INFO TANGGAL PANEL
================================ */
.info-tanggal-panel {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: fadeIn 0.3s ease;
}

.info-tanggal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.2);
}

.info-tanggal-header i {
    font-size: 16px;
}

.info-tanggal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-item > i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: white;
    color: var(--accent);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

.info-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-item > div small {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item > div span {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
}

/* ================================================
   JADWAL MENDATANG
================================ */
.jadwal-mendatang {
    margin-top: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.jadwal-mendatang-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jadwal-mendatang-header i {
    font-size: 14px;
    color: var(--accent);
}

.jadwal-mendatang-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.jadwal-mendatang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: default;
}

.jadwal-mendatang-item:hover {
    border-color: var(--accent);
    background: white;
    transform: translateX(4px);
}

.jadwal-mendatang-tanggal {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.jadwal-mendatang-tanggal .hari {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.jadwal-mendatang-tanggal .bulan {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.jadwal-mendatang-info {
    flex: 1;
    min-width: 0;
}

.jadwal-mendatang-info .nama {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jadwal-mendatang-info .waktu {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.jadwal-mendatang-info .waktu i {
    font-size: 11px;
}

.jadwal-mendatang-status {
    flex-shrink: 0;
}

.jadwal-kosong {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    color: #94a3b8;
    font-size: 13px;
}

.jadwal-kosong i {
    font-size: 24px;
    color: #cbd5e1;
}

/* Scrollbar untuk jadwal mendatang */
.jadwal-mendatang-list::-webkit-scrollbar {
    width: 4px;
}

.jadwal-mendatang-list::-webkit-scrollbar-track {
    background: transparent;
}

.jadwal-mendatang-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ✅ MODAL DETAIL KUNJUNGAN */
.modal { 
    display: none; 
    position: fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.5); 
    z-index:999; 
    align-items:center; 
    justify-content:center; 
    backdrop-filter: blur(3px);
}
.modal-konten { 
    background:white; 
    padding: 0; 
    border-radius:12px; 
    text-align:left; 
    max-width:480px; 
    width:94%; 
    position:relative; 
    box-shadow: var(--shadow-hover);
    animation: fadeSlideUp 0.3s ease-out;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.6;
}
.modal-header {
    background: linear-gradient(135deg, var(--accent), #1D4ED8);
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
}
.modal-body {
    padding: 18px 20px;
}
.tutup { 
    position:absolute; 
    top:10px; 
    right:15px; 
    font-size:20px; 
    cursor:pointer; 
    color: #ffffff;
    transition: color 0.2s ease;
    z-index: 10;
}
.tutup:hover {
    color: #e2e8f0;
}

/* ✅ MODAL SUKSES KIRIM FORM */
.modal-sukses { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(10, 20, 53, 0.45); 
    z-index: 10000; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(4px);
}
.modal-sukses .modal-konten {
    max-width: 460px;
    width: 92%;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    background: #ffffff;
}
.modal-sukses .modal-header {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #ffffff;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    position: relative;
}
.modal-sukses .tutup {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.2s ease;
    z-index: 10;
}
.modal-sukses .tutup:hover {
    color: #dcfce7;
}
.modal-sukses .modal-body {
    padding: 22px 24px;
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}
.modal-sukses .no-reg {
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
    margin: 8px 0;
    display: block;
}

/* ✅ INFO PANDUAN / KETENTUAN */
.info-panduan {
    margin-top: 20px;
    padding: 12px 16px;
    background: #f0f7ff;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
}
.info-panduan h5 {
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 14px;
}
.info-panduan ul {
    font-size: 13px;
    color: var(--text-dark);
    padding-left: 20px;
    margin: 0;
}

/* ✅ RESPONSIF UNTUK LAYAR KECIL - DIPERBAIKI POSISI */
@media (max-width: 1024px) {
    .bento-main-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row-sejajar { grid-template-columns: 1fr; gap: 16px; }
    .hari-tanggal span { max-width: 48px; height: 48px; font-size: 15px; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .main-content { margin-left: 0; width: 100%; padding: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .top-header-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    .form-row { grid-template-columns: 1fr; }
    .jumlah-input-group { flex-wrap: wrap; }
    .hari-tanggal span { max-width: 42px; height: 42px; font-size: 14px; }
}

/* ✅ PENYESUAIAN KALENDER DENGAN STATUS */
.titik-status {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    justify-content: center;
}

.titik-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.titik-status .dot.hijau { background: var(--success); }
.titik-status .dot.kuning { background: var(--warning); }
.titik-status .dot.merah { background: var(--danger); }

.hari-tanggal span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.kalender-nav button {
    background: var(--bg-page);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--accent);
    font-size: 16px;
    transition: all 0.2s ease;
}
.kalender-nav button:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

/* ================================================
   UPLOAD FILE AREA
================================ */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.03);
}

.upload-area.dragover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.06);
    transform: scale(1.01);
}

.upload-placeholder i {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: block;
}

.upload-placeholder p {
    margin: 4px 0;
    font-size: 14px;
    color: #64748b;
}

.upload-link {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}

.upload-link:hover {
    text-decoration: underline;
}

.upload-info {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-top: 8px !important;
}

.upload-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.upload-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.upload-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.upload-item-icon.pdf {
    background: #fef2f2;
    color: #ef4444;
}

.upload-item-icon.gambar {
    background: #eff6ff;
    color: #3b82f6;
}

.upload-item-icon.dokumen {
    background: #f0f7ff;
    color: #2563eb;
}

.upload-item-info {
    flex: 1;
    min-width: 0;
}

.upload-item-nama {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-item-ukuran {
    font-size: 11px;
    color: #94a3b8;
}

.upload-item-hapus {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.upload-item-hapus:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.upload-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ================================================
   ANIMASI MASUK HALAMAN BOOKING JADWAL
================================================ */
@keyframes fadeMasuk {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terapkan animasi ke setiap blok konten */
.top-header.premium,
.kartu-statistik,
#formAjuanKartu,
.bento-main-layout > div:last-child,
.info-panduan {
    opacity: 0;
    animation: fadeMasuk 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Jeda waktu agar muncul BERURUTAN dari atas ke bawah */
.top-header.premium { animation-delay: 0.08s; }
.kartu-statistik:nth-child(1) { animation-delay: 0.18s; }
.kartu-statistik:nth-child(2) { animation-delay: 0.26s; }
.kartu-statistik:nth-child(3) { animation-delay: 0.34s; }
.kartu-statistik:nth-child(4) { animation-delay: 0.42s; }
#formAjuanKartu { animation-delay: 0.52s; }
.bento-main-layout > div:last-child { animation-delay: 0.60s; }
.info-panduan { animation-delay: 0.68s; }

/* ================================== */
/* ✅ POPUP KONFIRMASI - TANPA ANIMASI */
/* ================================== */
.popup-latar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 20, 53, 0.45);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
}

.popup-latar.aktif {
    opacity: 1;
    visibility: visible;
}

.popup-kotak {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.2rem;
    width: 92%;
    max-width: 440px;
    box-shadow: 
        0 20px 60px rgba(37, 99, 235, 0.18),
        0 8px 24px rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
}

.popup-kotak::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
}

.popup-kotak h3 {
    margin: 0 0 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.popup-kotak h3::before {
    content: '\f2f5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--accent);
}

.popup-kotak p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.9;
}

.popup-tombol {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn {
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    min-width: 110px;
}

.btn-batal {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    color: var(--text-dark);
    border: 1px solid var(--border);
}
.btn-batal:hover {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

.btn-ya {
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-ya:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* ==============================================
✅ MODAL DETAIL KUNJUNGAN — DIPERBESAR & DIRAPIHKAN
============================================== */
#modalDetailJadwal .modal-konten {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 37, 64, 0.25);
    border: 2px solid rgba(37, 99, 235, 0.08);
    /* ✅ Perbesar ukuran modal */
    width: 750px !important;
    max-width: 95% !important;
    max-height: 85vh !important;
}

#isiDetailJadwal {
    padding: 24px;
    background: #FFFFFF;
}

#isiDetailJadwal > div:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

/* ✅ Responsif untuk layar kecil */
@media (max-width: 640px) {
    #modalDetailJadwal .modal-konten {
        width: 95% !important;
    }
}
@media (max-width: 480px) {
    #isiDetailJadwal > div > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }
}

/* ==============================================
✅ MODAL FOTO PENUH — KLIK FOTO UNTUK MEMPERBESAR
============================================== */
.modal-foto-konten {
    background: rgba(0, 0, 0, 0.85);
    padding: 0;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-foto-konten img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.tutup-foto {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.tutup-foto:hover {
    color: #fca5a5;
}

/* ✅ Foto di modal detail bisa diklik */
.foto-bisa-diklik {
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.foto-bisa-diklik:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* --- Validasi Real-Time --- */
.pesan-kesalahan {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: none;
  align-items: center;
  gap: 4px;
}
.pesan-kesalahan.tampil { display: flex; }

.form-group.input-salah input,
.form-group.input-salah select,
.form-group.input-salah textarea {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

/* Efek Getar */
@keyframes getar {
  0%,100% {transform:translateX(0);}
  25% {transform:translateX(-3px);}
  75% {transform:translateX(3px);}
}
.getar { animation: getar 0.3s ease-in-out 2; }

/* BUTTON PROFILE */
.user-profile-btn {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 8px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.10);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.user-profile-btn:hover {
    background: rgba(255,255,255,0.17);
    border-color: rgba(255,255,255,0.20);
}

.user-profile-btn:active {
    transform: scale(0.98);
}

/* AVATAR HEADER */
.user-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    overflow: hidden;
}

/* USER INFO HEADER */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 60px;
    line-height: 1.25;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
}

.user-role {
    font-size: 10px;
    color: rgba(255,255,255,0.65);
    margin-top: 2px;
}

/* CHEVRON */
.user-profile-btn > .fa-chevron-down {
    font-size: 10px;
    color: rgba(255,255,255,0.75);
    margin-left: 2px;
    transition: transform 0.2s ease;
}

/* DROPDOWN */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    min-width: 220px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
    display: none;
    z-index: 999999;
    transform-origin: top right;
}

.user-dropdown.show {
    display: block;
    animation: dropdownMasuk 0.18s ease-out;
}

@keyframes dropdownMasuk {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* HEADER USER DI DROPDOWN */
.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px 11px;
}

.dropdown-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(37,99,235,0.20);
    overflow: hidden;
}

.dropdown-user-info strong {
    display: block;
    color: #0F172A;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.dropdown-user-info span {
    display: block;
    margin-top: 2px;
    color: #64748B;
    font-size: 11px;
}

/* GARIS PEMISAH */
.dropdown-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 5px 2px;
}

/* ITEM MENU */
.dropdown-item {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #64748B;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.dropdown-item:hover {
    background: #F1F5F9;
    color: #1D4ED8;
    transform: translateX(2px);
}

.dropdown-item:hover i {
    color: #2563EB;
}

/* LOGOUT */
.dropdown-item.logout-item {
    color: #DC2626;
}

.dropdown-item.logout-item i {
    color: #EF4444;
}

.dropdown-item.logout-item:hover {
    background: #FEF2F2;
    color: #B91C1C;
    transform: translateX(2px);
}

.dropdown-item.logout-item:hover i {
    color: #DC2626;
}

/* ================================================
✅ PERBAIKAN: Header & Dropdown Tidak Tertutup
================================================ */
.top-header.premium {
    position: relative; /* Penting! Agar z-index anak bekerja */
    z-index: 100; /* Header berada di atas kartu statistik */
}

/* Pastikan dropdown pengguna SELALU di paling atas */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    min-width: 220px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
    display: none;
    z-index: 999999 !important; /* Paling tinggi dari semua elemen lain */
    transform-origin: top right;
}

.user-dropdown.show {
    display: block;
    animation: dropdownMasuk 0.18s ease-out;
}

/* Beri jarak yang cukup agar kartu tidak menumpuk ke header */
.stats-grid {
    position: relative;
    z-index: 1; /* Kartu statistik berada DI BAWAH header */
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Pastikan wrapper header-kanan juga punya posisi relatif */
.header-right {
    position: relative;
    display: flex; 
    gap: 10px;
}

/* Pastikan menu pengguna juga punya posisi relatif sebagai induk */
.user-menu {
    position: relative;
}

/* ================================================
   ANIMASI HALUS FORM
================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.form-group {
    animation: fadeInUp 0.5s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.05s; }
.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.15s; }
.form-group:nth-child(4) { animation-delay: 0.2s; }
.form-group:nth-child(5) { animation-delay: 0.25s; }
.form-group:nth-child(6) { animation-delay: 0.3s; }
.form-group:nth-child(7) { animation-delay: 0.35s; }
.form-group:nth-child(8) { animation-delay: 0.4s; }
.form-group:nth-child(9) { animation-delay: 0.45s; }

.card {
    animation: fadeIn 0.6s ease backwards;
}

/* ================================================
   SCROLLBAR KUSTOM
================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ================================================
   TOOLTIP & BADGE
================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-info {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}