/* --- HALAMAN BUDGET --- */
.budget-page {
    position: relative;
    z-index: 1;
    background-color: #ffffff !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 20px;
    min-height: 100vh;
    width: 100%;
}

.budget-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px;
}
.budget-header h2 { font-size: 17px; font-weight: 700; }
.budget-header .back-btn { background: none; border: none; font-size: 18px; cursor: pointer; }
.budget-date-selector {
    display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.budget-date-selector i { font-size: 12px; color: #333; }

/* Budget Cards */
.budget-card { padding: 16px; margin-bottom: 16px; }
.budget-card-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.budget-card-header h3 { font-size: 15px; font-weight: 500; color: #333; }
.budget-card-header .icon-btn {
    background: none; border: none; font-size: 16px; cursor: pointer; color: #333; padding: 4px;
}
.budget-card-body { display: flex; align-items: center; gap: 16px; }

/* Donut Chart & Data - Pakai yg sudah ada di home.css */
.budget-data { flex: 1; font-size: 14px; }
.budget-data .row { padding: 4px 0; }

/* Footer Button */
.budget-footer { padding: 20px 16px; }
.btn-create-budget {
    width: 100%; padding: 14px; border: none; border-radius: 25px;
    background: #f5a623; color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
}

/* ================================ */
/* MODALS (Edit & Date Picker) */
/* ================================ */
.budget-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.budget-modal-overlay.open { opacity: 1; pointer-events: auto; }

.budget-modal-content {
    background: #fff; width: 100%; max-width: 480px; padding: 20px;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%); transition: transform 0.3s ease;
}
.budget-modal-overlay.open .budget-modal-content { transform: translateY(0); }

/* Edit Modal */
#edit-modal .budget-modal-content { padding-bottom: 30px; }
#edit-modal h4 { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.edit-input-wrapper {
    border: 1px solid #f5a623; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.edit-input-wrapper input {
    width: 100%; border: none; outline: none; font-size: 18px; text-align: center;
}
.edit-actions { display: flex; justify-content: flex-end; }
.btn-ok {
    background: #f5a623; color: #fff; border: none; border-radius: 20px; padding: 10px 30px; font-size: 14px; cursor: pointer;
}

/* Date Picker Modal */
.date-picker-content { padding: 0; overflow: hidden; }
.date-picker-header {
    background: #f5a623; color: #fff; padding: 16px 20px; font-size: 16px;
}
.date-picker-body {
    display: flex; justify-content: center; gap: 40px; padding: 30px 20px;
}
.date-column { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.date-item { font-size: 18px; color: #333; cursor: pointer; }
.date-item.active { color: #f5a623; font-weight: 600; border-bottom: 2px solid #f5a623; padding-bottom: 2px; }
.date-item.inactive { color: #ccc; }
.date-picker-actions {
    display: flex; justify-content: flex-end; gap: 16px; padding: 16px 20px; border-top: 1px solid #eee;
}
.btn-cancel { background: none; border: none; font-size: 14px; color: #888; cursor: pointer; }

/* ================================ */
/* SETTINGS OVERLAY (Full Page) */
/* ================================ */
.budget-settings-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #fff; z-index: 3000;
    transform: translateX(100%); transition: transform 0.3s ease;
}
.budget-settings-overlay.open { transform: translateX(0); }

.settings-header {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px;
}
.settings-header .back-btn { background: none; border: none; font-size: 18px; cursor: pointer; }
.settings-header h2 { font-size: 17px; font-weight: 700; flex: 1; text-align: center; margin-right: 40px;}

.settings-list { padding: 0 16px; }
.settings-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid #f5f5f5;
}
.settings-left { display: flex; align-items: center; gap: 12px; }
.settings-left .icon-btn.add-btn {
    width: 28px; height: 28px; border-radius: 50%; background: #e0e0e0;
    border: none; color: #fff; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.settings-left .icon-btn.add-btn.is-active { background: #f5a623; }

.settings-left .circle-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.settings-name { font-size: 14px; color: #333; font-weight: 400; }

.settings-right { display: flex; align-items: center; gap: 8px; color: #888; font-size: 13px; cursor: pointer; }
.settings-right i { font-size: 12px; }
