:root {
    --text-color-black: #000;
    --text-color-white: #ffffff;
    --background-color-input: #fffaea;
    --border-color-input: #ffedb0;
    --background-color-active: rgba(255, 255, 255, 0.25);
}

.header {
    display: flex;
    padding: 18px 15px 0; /* atas kanan dan kiri bawah*/
    margin-bottom: 27px;
}
.header .btn-link {
    background: none;
    border: none;
    color: var(--text-color-black);
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 28px;
    width: fit-content;
    padding: 0 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    column-gap: 8px;
    font-weight: 400;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.43px;
}

/* --- LIST PAGE STYLES --- */
.body {
    padding: 16px;
    padding-bottom: 80px;
    background-color: #ffffff;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* Filter Style (reuse) */
.filter-container { 
    margin-bottom: 20px; 
    display: flex;
    gap: 10px; /* Jarak antar filter diperkecil sedikit */
}

.filter-group {
    position: relative; 
    border-radius: 10px; /* Radius diperkecil sedikit agar proporsional */
    background-color: #FFF9E6; 
    overflow: hidden;
    margin-bottom: 0; 
    flex: 10;
}



/* Style Select - UKURAN DIPERKECIL */
select {
    width: 100%; 
    background-color: #FFF9E6 !important; 
    border: none !important;
    outline: none !important; 
    box-shadow: none !important;
    color: #1F2937 !important; 
    font-weight: 500; 
    
    /* Font size dikecilkan sedikit (opsional, bisa tetap 14px) */
    font-size: 12px; 
    
    /* Padding dikurangi agar lebih ramping (Tadi 14px 16px) */
    padding: 8px 10px; 
    
    border-radius: 10px !important;
    appearance: none; 
    -webkit-appearance: none;
}

.filter-group img {
    position: absolute; 
    right: 12px; /* Posisi icon disesuaikan */
    top: 50%; 
    transform: translateY(-50%); 
    pointer-events: none;
    width: 14px; /* Ukuran icon diperkecil sedikit */
    height: auto;
}

/* Account Card Style */
.account-card {
    display: flex;
    background: #FFFFFF;
    border: none;
    /* Radius sedikit dikurangi agar pas dengan ukuran baru */
    border-radius: 14px; 
    padding: 0;
    
    /* Margin bawah standar */
    margin-bottom: 16px; 
    
    text-decoration: none;
    overflow: hidden;
    align-items: center;
    
    /* Bayangan 3D tetap kuat tapi lebih soft */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    
    /* Tinggi minimum dikurangi dari 100px jadi 85px */
    min-height: 85px; 
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0,0,0,0.06);
    z-index: 2;
}

.account-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #FAFAFA;
}

/* Bagian Icon (Kiri) */
.ac-icon {
    /* Lebar dikurangi 100px -> 85px (Cukup lega tapi pas) */
    width: 85px; 
    align-self: stretch; /* Stretch agar tinggi mengikuti kartu */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    margin-right: 14px;
}

.ac-icon img {
    /* Icon dikurangi 48px -> 42px */
    width: 42px; 
    height: 42px; 
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

/* Bagian Informasi (Teks) */
.ac-info {
    flex: 1;
    /* Padding disesuaikan */
    padding: 12px 16px 12px 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ac-title {
    /* Font Judul: 15px (Pas, tidak terlalu besar) */
    font-size: 15px; 
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 3px;
    line-height: 1.3;
}

.ac-code {
    font-size: 12px; 
    color: #9CA3AF;
    margin-bottom: 6px; 
}

.ac-balance {
    /* Font Saldo: 16px (Tebal & Jelas) */
    font-size: 16px; 
    font-weight: 700; 
    color: #059669; 
    letter-spacing: -0.3px;
}

/* --- DETAIL PAGE STYLES --- */

/* Gold Summary Card */
.summary-card-gold {
    background: linear-gradient(135deg, #D69E2E 0%, #B7791F 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(214, 158, 46, 0.2);
}
.sc-label { font-size: 14px; opacity: 0.9; margin-bottom: 4px; }
.sc-value { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.sc-note { font-size: 11px; opacity: 0.8; }

.account-info-text { font-size: 13px; color: #4B5563; }
.font-bold { font-weight: 600; color: #111827; }

/* Transaction List Item */
.trans-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
    align-items: flex-start;
}
.ti-icon { margin-right: 12px; margin-top: 2px; }
.ti-content { flex: 1; margin-right: 8px; }
.ti-desc { font-size: 13px; font-weight: 500; color: #1F2937; line-height: 1.4; margin-bottom: 4px; }
.ti-meta { font-size: 11px; color: #9CA3AF; }
.ti-amount { text-align: right; min-width: 80px; }
.text-red { color: #EF4444; font-weight: 600; font-size: 13px; }
.text-green { color: #10B981; font-weight: 600; font-size: 13px; }

.trans-doc-btn {
    display: inline-block; margin-top: 4px; cursor: pointer;
    background: #F3F4F6; padding: 4px 8px; border-radius: 4px;
}

.btn-load-more {
    background: transparent; border: 1px solid #D1D5DB; color: #4B5563;
    padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 500;
}

/* Bottom Sheet */
.bs-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 998;
}
.bs-content {
    position: fixed; bottom: -100%; left: 0; width: 100%;
    background: white; border-top-left-radius: 16px; border-top-right-radius: 16px;
    z-index: 999; transition: bottom 0.3s ease-in-out;
    max-height: 80vh; display: flex; flex-direction: column;
}
.bs-content.active { bottom: 0; }
.bs-header {
    padding: 16px; border-bottom: 1px solid #E5E7EB;
    display: flex; justify-content: space-between; align-items: center; font-weight: 600;
}
.bs-close { font-size: 24px; cursor: pointer; line-height: 1; }
.bs-body { padding: 16px; overflow-y: auto; }

.loading-state { text-align: center; padding: 40px 0; color: #9CA3AF; font-size: 14px; }