
* {
    box-sizing: border-box;
}

body {
    background-color: #eef2f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* SIDE NAVIGATION PANEL*/

.menu-toggle {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 1001;
    background: #1e3a5f;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: #2c5282;
}

.navigation-panel {
    position: fixed;
    top: 0;
    left: -280px; 
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.navigation-panel.active-menu {
    left: 0;
}

.panel-header {
    background: #1e3a5f;
    color: white;
    padding: 25px 20px 25px 75px;
    font-size: 18px;
    font-weight: bold;
}

.navigation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.navigation-option {
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 1px solid #e8ecf1;
    transition: background 0.2s;
    font-weight: 500;
    color: #333;
}

.navigation-option.selected-option {
    background: #edf2f7;
    border-left: 4px solid #1e3a5f;
}

.overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay-backdrop.active-overlay {
    display: block;
}

/* MAIN LAYOUT */

.primary-container {
    width: 98%;
    max-width: 1400px;
}

.page-heading {
    text-align: center;
    color: #1e3a5f;
    margin-bottom: 25px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.content-grid--single {
    display: flex;
    justify-content: center;
}

.content-grid--single .grid-section-right {
    max-width: 700px;
    width: 100%;
}

.content-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section-heading {
    margin-top: 0;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #e8ecf1;
    padding-bottom: 8px;
}

/* NOTIFICATION BANNERS */

.restriction-notice {
    background: #fef5e7; 
    color: #7d6608;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    border: 1px solid #f9e79f;
    display: none; 
}

.success-notice {
    background: #d4edda; 
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    display: none; 
}

/* FORMS & INPUTS */

.input-wrapper {
    margin-bottom: 12px;
}

.input-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #555;
}

.text-field,
.dropdown-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    outline-color: #1e3a5f;
}

/* Button UI Components */

.btn-base {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-base:disabled {
    background: #cbd5e0 !important;
    cursor: not-allowed;
}

.btn-primary {
    background: #1e3a5f;
    color: white;
}

.btn-danger {
    background: #c53030;
    color: white;
}

.analysis-range-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: #edf2f7;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.analysis-range-buttons .btn-base {
    width: auto;
    flex: 1;
    padding: 8px 5px;
    font-size: 12px;
    border-radius: 6px;
    background: transparent;
    color: #4a5568;
    box-shadow: none;
    text-transform: uppercase;
}

.analysis-range-buttons .btn-base.active-range {
    background: white;
    color: #1e3a5f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* METRICS & DASHBOARD CARDS */

.metrics-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metric-box {
    padding: 15px;
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

/* Main Balance Highlight Box */
.metric-box-large {
    grid-column: span 2;
    background: #1e3a5f;
    color: white;
}

.metric-title {
    font-size: 10px;
    color: #718096;
    text-transform: uppercase;
    margin: 0;
}

.metric-box-large .metric-title {
    color: #cbd5e0;
}

.metric-amount {
    margin: 5px 0 0;
    font-weight: bold;
    font-size: 18px;
}

.metric-box-large .metric-amount {
    font-size: 24px;
}

/* TRANSACTION LIST ENTRIES */

.record-container {
    list-style: none;
    padding: 0;
}

.record-entry {
    background: #fff;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    border-left: 5px solid #c53030; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.record-entry-inflow {
    border-left-color: #2f855a;
}

.entry-description {
    display: block;
    font-weight: bold;
}

.entry-type {
    font-size: 12px;
    color: #718096;
}

.entry-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.remove-button {
    background: none;
    border: none;
    color: #cbd5e0;
    cursor: pointer;
    font-size: 18px;
}

.remove-button:hover {
    color: #c53030;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 15px;
}

.breakdown-table th {
    text-align: left;
    color: #718096;
    font-size: 11px;
    padding: 10px;
    border-bottom: 2px solid #e8ecf1;
}

.breakdown-table td {
    padding: 10px;
    border-bottom: 1px solid #f7fafc;
}

.text-red { color: #c53030; }
.text-green { color: #2f855a; }
.align-right { text-align: right; }
.hide-element { display: none !important; }


@media (max-width: 1100px) {
    .content-grid {
        grid-template-columns: 1fr; 
    }
    
    .primary-container {
        padding-top: 50px; 
    }
}