/* =========================================================
   MYBANK - STYLE CSS GLOBAL, MODERNE & RESPONSIVE UNIFIÉ
   Optimisé pour Smartphone Android/iOS, Tablette & Desktop
========================================================= */

/* ---------------------------------------------------------
   1. VARIABLES GLOBALES & RESET
--------------------------------------------------------- */
:root {
    --primary: #2672e8;
    --primary-dark: #1d5fc5;
    --primary-light: #eaf2ff;
    --dark: #14213d;
    --dark-light: #1f2d4d;
    --text: #172033;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --background: #f8fafc;
    --surface: #ffffff;

    --income: #16a34a;
    --income-bg: #f0fdf4;
    --income-border: #bbf7d0;

    --expense: #dc2626;
    --expense-bg: #fef2f2;
    --expense-border: #fecaca;

    --transfer: #2563eb;
    --transfer-bg: #eff6ff;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 14px;
}

svg {
    display: inline-block;
    vertical-align: middle;
}

.lucide {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

/* ---------------------------------------------------------
   2. TYPOGRAPHIE & BOUTONS GLOBAUX
--------------------------------------------------------- */
h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

.font-bold { font-weight: 700; }
.income-value { color: var(--income); }
.expense-value { color: var(--expense); }
.transfer-value { color: var(--transfer); }

.primary-button, .secondary-button, .danger-button, .cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.primary-button {
    background: var(--primary);
    color: #ffffff;
}
.primary-button:hover { background: var(--primary-dark); }
.primary-button:active { transform: scale(0.98); }

.secondary-button {
    background: #ffffff;
    color: var(--dark);
    border: 1px solid var(--border);
}
.secondary-button:hover { background: var(--background); border-color: #cbd5e1; }

.danger-button {
    background: var(--expense-bg);
    color: var(--expense);
    border: 1px solid var(--expense-border);
}
.danger-button:hover { background: var(--expense); color: #ffffff; }

.cancel-button {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--border);
}
.cancel-button:hover { background: #e2e8f0; }

.btn-xs {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.width-full { width: 100%; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: var(--income-bg); color: var(--income); border: 1px solid var(--income-border); }
.alert-error { background: var(--expense-bg); color: var(--expense); border: 1px solid var(--expense-border); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}
.badge-income { background: var(--income-bg); color: var(--income); }
.badge-expense { background: var(--expense-bg); color: var(--expense); }
.badge-transfer { background: var(--transfer-bg); color: var(--transfer); }
.badge-admin { background: #fef3c7; color: #b45309; }
.badge-user { background: #e2e8f0; color: #334155; }
.active-badge { background: #dcfce7; color: #15803d; font-size: 11px; }

/* ---------------------------------------------------------
   3. LAYOUT GLOBAL & CONTAINER
--------------------------------------------------------- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    transition: var(--transition);
}

/* ---------------------------------------------------------
   4. HEADER / TOPBAR
--------------------------------------------------------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 24px 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--dark);
    font-size: 1.1rem;
}

.mobile-menu {
    display: none;
    background: transparent;
    border: none;
    color: var(--dark);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.user-profile-link {
    display: block;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.user-profile:hover {
    border-color: var(--primary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-info strong {
    font-size: 13px;
    color: var(--dark);
}

.user-info span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* ---------------------------------------------------------
   5. DESKTOP SIDEBAR
--------------------------------------------------------- */
.sidebar {
    width: 260px;
    background: var(--dark);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
    min-height: 100vh;
}

.sidebar-logo {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text h2 {
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-text span {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: #94a3b8;
    font-weight: 500;
    transition: var(--transition);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.menu-item.active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(38, 114, 232, 0.3);
}

.sidebar-bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-item.logout {
    color: #f87171;
}
.menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.sidebar-overlay {
    display: none;
}

/* ---------------------------------------------------------
   6. MOBILE BOTTOM NAVIGATION (FIXÉE AU POUCE)
--------------------------------------------------------- */
.bottom-nav {
    display: none; /* Visible sur mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    z-index: 990;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
}

.bottom-nav-item .lucide {
    width: 22px;
    height: 22px;
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.bottom-nav-item.active .lucide {
    stroke-width: 2.5px;
}

/* ---------------------------------------------------------
   7. SECTIONS & CARTES D'INDICATEURS (STATISTICS)
--------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 13px;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.stat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-header h2 {
    font-size: 1.5rem;
    margin-top: 6px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    color: var(--dark);
}

.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.income-icon { background: var(--income-bg); color: var(--income); }
.stat-icon.expense-icon { background: var(--expense-bg); color: var(--expense); }
.stat-icon.transfer-icon { background: var(--transfer-bg); color: var(--transfer); }

.stat-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ---------------------------------------------------------
   8. MES COMPTES - GRID RESPONSIVE
--------------------------------------------------------- */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.account-card-link {
    display: block;
}

.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.account-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.account-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.account-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.account-number {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.account-balance {
    background: var(--background);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.account-balance span {
    font-size: 12px;
    color: var(--text-muted);
}

.account-balance strong {
    font-size: 1.2rem;
    color: var(--dark);
}

.account-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 16px;
}

.account-details div {
    display: flex;
    flex-direction: column;
}

.account-details span {
    color: var(--text-muted);
}

.view-account {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.account-actions {
    margin-top: auto;
    padding-top: 12px;
}

/* ---------------------------------------------------------
   9. RAPPORTS & GRAPHIQUES
--------------------------------------------------------- */
.reports-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.report-filters-card {
    background: var(--background);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.report-filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.report-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.report-filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.report-filter-group input,
.report-filter-group select {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #ffffff;
}

.period-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.period-stat-box {
    background: var(--background);
    padding: 14px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--border);
}

.period-stat-box span {
    font-size: 12px;
    color: var(--text-muted);
}

.period-stat-box strong {
    font-size: 1.2rem;
}

.reports-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.report-chart-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    min-width: 0;
}

.report-chart-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
}

.chart-container {
    position: relative;
    height: 260px;
    width: 100%;
    min-width: 0;
}

.chart-container-doughnut {
    position: relative;
    height: 260px;
    width: 100%;
    max-width: 100%;
}

.chart-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.chart-container-bar {
    position: relative;
    height: 260px;
    width: 100%;
}

/* ---------------------------------------------------------
   10. MOUVEMENTS & TABLEAUX ISOLÉS
--------------------------------------------------------- */
.filter-tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--dark);
}

.tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    font-weight: 600;
}

.search-filter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
}

.search-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-field {
    flex: 1;
    min-width: 150px;
}

.search-field {
    position: relative;
    flex: 2;
    min-width: 220px;
}

.search-field input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-field select, .filter-field input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #ffffff;
}

/* DEFILEMENT HORIZONTAL ISOLE POUR TABLEAU */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px; /* Force la lisibilité sans compresser les colonnes */
    text-align: left;
}

.data-table th {
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--dark);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: #f1f5f9;
}

.table-empty {
    text-align: center;
    padding: 40px 20px !important;
    color: var(--text-muted);
}

.table-empty .lucide {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* ---------------------------------------------------------
   11. PROFIL & PARAMÈTRES
--------------------------------------------------------- */
.profile-layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.profile-avatar-large {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 auto 16px auto;
    box-shadow: var(--shadow-md);
}

.profile-card h2 {
    text-align: center;
    font-size: 1.3rem;
}

.profile-email {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.table-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* ---------------------------------------------------------
   12. MODALES UNIVERSELLES
--------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.show .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.required {
    color: var(--expense);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    width: 100%;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 114, 232, 0.15);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Choices Modal */
.movement-choice-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.choice-card:hover {
    transform: translateX(4px);
}

.choice-income:hover { border-color: var(--income); background: var(--income-bg); }
.choice-expense:hover { border-color: var(--expense); background: var(--expense-bg); }
.choice-transfer:hover { border-color: var(--transfer); background: var(--transfer-bg); }

.choice-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.choice-income .choice-icon { background: var(--income-bg); color: var(--income); }
.choice-expense .choice-icon { background: var(--expense-bg); color: var(--expense); }
.choice-transfer .choice-icon { background: var(--transfer-bg); color: var(--transfer); }

.choice-text h4 { font-size: 1rem; margin-bottom: 2px; }
.choice-text p { font-size: 12px; color: var(--text-muted); }

/* ---------------------------------------------------------
   13. LOGIN PAGE STYLES
--------------------------------------------------------- */
.login-body {
    background: linear-gradient(135deg, var(--dark), #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-lg);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-intro {
    text-align: center;
    margin-bottom: 24px;
}

.login-intro p {
    color: var(--text-muted);
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    padding-left: 40px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin: 16px 0 24px 0;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   14. MEDIA QUERIES (RESPONSIVE SCREEN SIZES)
--------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        bottom: 0;
        z-index: 1000;
        transition: var(--transition);
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar-overlay.show {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-logo, .mobile-menu {
        display: flex;
    }

    .bottom-nav {
        display: flex;
    }

    .main-content {
        padding: 12px 16px 80px 16px; /* Clearance for bottom nav */
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accounts-grid {
        grid-template-columns: 1fr;
    }

    .reports-charts {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .primary-button, .header-actions .secondary-button {
        width: 100%;
    }

    .user-info {
        display: none;
    }

    .user-profile {
        padding: 4px;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .report-chart-card {
        padding: 16px 12px;
    }
}