:root {
    /* Saya sesuaikan warna Primary dengan warna Ungu/Biru Logo Z-Pocket */
    --primary: #4e54c8; 
    --secondary: #8f94fb;
    --success: #16a34a; 
    --danger: #dc2626; 
    --warning: #ca8a04;
    --bg: #f8fafc; 
    --text: #1e293b;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 0; }
* { box-sizing: border-box; }

/* LOGO STYLING */
.logo-login {
    max-width: 150px; /* Ukuran logo di halaman login */
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-nav {
    height: 45px; /* Tinggi logo di navbar atas */
    width: auto;
    vertical-align: middle;
}

/* AUTH & MODAL */
#auth-page { display: flex; height: 100vh; justify-content: center; align-items: center; background: #e2e8f0; }
.auth-box { background: white; width: 100%; max-width: 400px; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

/* Header Login mengikuti warna logo */
.auth-header { 
    background: linear-gradient(135deg, #2b32b2, #1488cc); /* Gradasi Biru Z-Pocket */
    margin: -30px -30px 20px -30px; 
    padding: 25px; 
    border-radius: 12px 12px 0 0; 
    text-align: center; 
}

.login-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; margin-bottom: 10px; font-size: 0.95rem; }
.login-input:focus { outline: 2px solid var(--primary); border-color: transparent; }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.modal-content { 
    background-color: #fff; 
    margin: 5% auto; /* Jarak atas dikurangi biar lebih naik */
    padding: 25px; 
    border-radius: 10px; 
    width: 90%; 
    max-width: 500px; 
    position: relative; 
    animation: slideDown 0.3s;
    
    /* --- TAMBAHAN PENTING AGAR BISA SCROLL --- */
    max-height: 90vh;  /* Tinggi maksimal 90% dari layar HP/Laptop */
    overflow-y: auto;  /* Munculkan scrollbar jika konten kepanjangan */
    display: flex;     /* Mengatur tata letak agar rapi */
    flex-direction: column;
}
#img-proof-view {
    max-height: 50vh; /* Maksimal tinggi gambar setengah layar */
    width: auto;      /* Lebar menyesuaikan proporsi */
    max-width: 100%;  /* Tidak boleh lebih lebar dari kotak */
    object-fit: contain; /* Gambar utuh, tidak terpotong/gepeng */
    margin: 0 auto 15px auto; /* Posisi tengah */
    display: block;
}
.close { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; color: #94a3b8; }

/* LAYOUT */
.app-container { display: none; min-height: 100vh; }
.top-nav { background: white; padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,0.05); height: 70px; }

.nav-brand { display: flex; align-items: center; }
.nav-user { font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }

.btn-logout { background: #fee2e2; color: var(--danger); border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.btn-logout:hover { background: #fecaca; }

.section { padding: 20px; max-width: 900px; margin: 0 auto; display: none; }
.section.active { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* COMPONENTS */
.card { background: white; padding: 25px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.row { display: flex; gap: 10px; } .row input { flex: 1; }
.btn { padding: 12px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; color: white; transition: 0.2s; font-size: 0.9rem; }
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--primary); } 
.btn-success { background: var(--success); } 
.btn-danger { background: var(--danger); }
.btn-outline { background: white; border: 1px solid var(--primary); color: var(--primary); padding: 8px 15px; border-radius: 6px; cursor: pointer; width: 100%; }

/* TABLE & STATUS */
.table-responsive { overflow-x: auto; }
.table-modern { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; font-size: 0.9rem; }
.table-modern th { background: #f1f5f9; padding: 15px; text-align: left; color: #475569; border-bottom: 2px solid #e2e8f0; }
.table-modern td { padding: 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }

.status-badge { padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; display: inline-block; }
.st-unpaid { background: #fee2e2; color: var(--danger); }
.st-pending { background: #fef9c3; color: var(--warning); border: 1px solid #fde047; }
.st-paid { background: #dcfce7; color: var(--success); }

/* SISWA SPECIFIC */
.balance-card { background: linear-gradient(135deg, #2b32b2, #1488cc); color: white; padding: 30px; border-radius: 15px; text-align: center; margin-bottom: 25px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.bill-list { display: grid; gap: 15px; }
.bill-item { background: white; padding: 20px; border-radius: 10px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.bill-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--danger); }
.bill-item.pending::before { background: var(--warning); }
.bill-item.paid::before { background: var(--success); }

.file-upload-box { display: flex; gap: 10px; margin-top: 10px; }
.file-upload-box input { flex: 1; font-size: 0.85rem; }

.search-box { display: flex; align-items: center; background: white; padding: 12px 20px; border-radius: 50px; margin-bottom: 20px; border: 1px solid #e2e8f0; }
.search-box input { border: none; outline: none; margin-left: 10px; width: 100%; }

@media (max-width: 600px) { .row { flex-direction: column; } .file-upload-box { flex-direction: column; } }
/* Styling Kotak Info Rekening di Dashboard Siswa */
.bank-info-box {
    background: #eff6ff; /* Warna biru muda lembut */
    border: 1px dashed #3b82f6;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #1e3a8a;
    line-height: 1.4;
}

.bank-info-box i {
    margin-right: 5px;
    color: #2563eb;
}

/* Mempercantik Textarea Admin */
textarea.login-input {
    resize: vertical; /* Agar bisa ditarik ke bawah */
    font-family: inherit;
}