* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f2f4f8;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* --- PENGATURAN UTAMA (MOBILE FULL WIDTH) --- */
#app {
    width: 100%;
    /* max-width: 480px; <-- INI DIHAPUS. BIAR LEBAR PENUH */
    position: relative;
    min-height: 100vh;
    background-color: #f2f4f8;
}

/* PADDING KIRI KANAN DIKURANGI SEDIKIT AGAR CARD MELEBAR */
.app-container {
    padding: 16px 8px 100px 8px; 
}

/* --- PENGATURAN NAVBAR FULL WIDTH --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* max-width: 480px; <-- INI JUGA DIHAPUS */
    /* transform: translateX(-50%); <-- INI DIHAPUS KARENA SUDAH LEFT:0 */
    
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 20px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    height: 70px;
    z-index: 999;
}

.nav-item {
    display: flex; flex-direction: column; align-items: center; color: #8e8e93;
    font-size: 10px; gap: 4px; cursor: pointer; width: 50px; position: relative; text-decoration: none;
}
.nav-item i { font-size: 20px; }
.nav-item.active { color: #f5a623; }

/* FAB */
.tab-placeholder { position: relative; width: 60px; height: 100%; }
.fab-container { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; }
.fab { 
    width: 56px; height: 56px; 
    background: #f5a623;
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: white; font-size: 26px; 
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
    border: none; cursor: pointer; transition: transform 0.1s; 
}
.fab:active { transform: scale(0.95); }

/* --- STYLE CARD (DILEBARKAN) --- */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px; /* Padding card tetap agar isi tidak mepet ke batas card */
    margin-bottom: 12px; /* Jarak antar card sedikit dikurangi */
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: block;
    width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-header h3 { color: #f5a623; font-size: 15px; font-weight: 700; }

.arrow-icon {
    background: #fff6e5;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #f5a623; font-size: 12px;
}

.text-green { color: #4cd964; }
.text-red { color: #ff3b30; }
.text-gray { color: #8e8e93; }
.fw-bold { font-weight: 700; }
.flex-row { display: flex; align-items: center; justify-content: space-between; }

/* 1. Financial Statement */
.financial-statement .balance {
    text-align: center;
    font-size: 24px; font-weight: 700; color: #4cd964;
    padding: 10px 0;
}

/* 2. Expense & Income */
.expense-income .filter-select { text-align: center; margin-bottom: 20px; }
.expense-income .filter-select select {
    padding: 8px 36px 8px 16px;
    border: 1px solid #f5a623; border-radius: 20px;
    color: #333; font-size: 14px; background: #fff; outline: none;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5a623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer;
}

.chart-container { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 4px; height: 90px; }
.chart-labels { display: flex; flex-direction: column; justify-content: space-between; height: 100%; font-size: 10px; color: #8e8e93; }
.chart-bars { display: flex; align-items: flex-end; gap: 16px; height: 100%; margin-right: 16px; }
.chart-bar { width: 24px; border-radius: 4px 4px 0 0; }
.bar-income { height: 6px; background-color: #4cd964; }
.bar-expense { height: 80px; background-color: #ff3b30; }

.chart-data { flex: 1; }
.chart-data .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid #f2f2f2; }
.chart-data .row:last-child { border-bottom: none; }
.chart-data .row span:first-child { color: #333; }

/* 3. Monthly Budget */
.budget-container { display: flex; align-items: center; gap: 20px; }
.donut-chart {
    width: 90px; height: 90px; border-radius: 50%;
    background: conic-gradient(#4cd964 0% 7.2%, #e5e5ea 7.2% 100%);
    display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0;
}
.donut-inner {
    width: 70px; height: 70px; background: #fff; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 10px; color: #8e8e93;
}
.donut-inner strong { color: #4cd964; font-size: 12px; }
.budget-data { flex: 1; font-size: 14px; }
.budget-data .row { padding: 4px 0; }
.budget-data .row span:first-child { color: #8e8e93; }

/* 4. Recent Transactions */
.transaction-item { background: #f9f9f9; border-radius: 10px; padding: 12px; margin-bottom: 12px; display: flex; align-items: center; }
.transaction-item:last-child { margin-bottom: 0; }
.trans-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 14px; color: #fff; font-size: 18px; flex-shrink: 0; }
.bg-orange { background: #ffcd5c; }
.bg-gray { background: #a4aab3; }
.bg-pink { background: #ff7a9e; }
.trans-details { flex: 1; }
.trans-details h4 { font-size: 14px; color: #333; font-weight: 600; }
.trans-details p { font-size: 12px; color: #8e8e93; margin-top: 2px; }
.trans-amount { font-size: 14px; color: #ff3b30; }

.placeholder-page { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; color: #8e8e93; }
.placeholder-page i { font-size: 50px; margin-bottom: 20px; color: #f5a623; }
.placeholder-page h2 { font-size: 20px; margin-bottom: 10px; }

/* --- STYLE UNTUK HALAMAN WALLET --- */

/* KHUSUS UNTUK HALAMAN WALLET: Hapus padding atas agar naik ke atas */
.wallet-page {
    padding-top: 0 !important; 
}

/* Header Halaman Accounts */
.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 8px; /* Beri jarak sedikit saja dari atas layar (8px) */
}
.wallet-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}
.btn-add-account {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
}

/* Ringkasan Saldo (Financial Statement) */
.wallet-summary {
    border: 1px solid #f5a623;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #ffffff;
}
.wallet-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.wallet-summary .total-balance {
    font-size: 16px;
}

/* List Item Akun */
.account-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.account-item:last-child {
    margin-bottom: 0;
}

.account-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 14px;
}
.account-icon.bg-green { background-color: #2ecc71; }
.account-icon.bg-blue  { background-color: #3498db; }

.account-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.account-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.account-balance {
    font-size: 15px;
}

.account-menu-btn {
    background: transparent;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

/* --- STYLE UNTUK HALAMAN GRAPH --- */

/* Hapus padding atas agar naik ke atas (seperti wallet) */
.graph-page {
    padding-top: 0 !important;
}

/* Header Halaman Graph */
.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 8px;
}
.graph-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}
.btn-date-picker {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}
.btn-date-picker i {
    font-size: 18px;
}

/* Card Graph */
.graph-card {
    margin-bottom: 16px;
    padding-bottom: 20px; /* Ruang ekstra di bawah untuk chart */
}

.graph-card-header {
    margin-bottom: 16px;
}
.graph-card-header h3 {
    color: #f5a623;
    font-size: 16px;
    font-weight: 700;
}
.graph-card-header .graph-subtitle {
    color: #8e8e93;
    font-size: 12px;
    margin-top: 4px;
}

/* Pembungkus Chart agar responsif */
.chart-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Label Sumbu X untuk Line Chart (dilakukan manual agar selaras) */
.x-axis-labels {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px 0 50px; /* Padding kiri menyesuaikan label Y chart */
    margin-top: -5px;
}
.x-axis-labels span {
    font-size: 10px;
    color: #888;
}
