/* General website styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f6fa;
    color: #222;
}

/* Main dashboard layout */

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styling */

.sidebar {
    width: 250px;
    background-color: #102B4E;
    padding: 30px 20px;
    border-right: none;
    min-height: 100vh;
}

.logo {
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 45px;
    text-transform: uppercase;
}

/* Main content */

/* Header */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    width: 100%;
}

.header h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #102B4E;
    margin-bottom: 8px;
}

.header p {
    color: #888;
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background-color: #FFFFFF;
    border: 1px solid #E8EDF3;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(16, 43, 78, 0.04);
}

.profile span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #102B4E;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
/* Balance card */

/* AXOS BANK - Premium Balance Card */

.balance-card {
    background: linear-gradient(135deg, #102B4E 0%, #1C4D7C 100%);
    color: #FFFFFF;
    padding: 42px;
    border-radius: 22px;
    margin-bottom: 28px;
    box-shadow: 0 14px 35px rgba(16, 43, 78, 0.16);
    position: relative;
    overflow: hidden;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.balance-card p {
    color: #D7E2EF;
    opacity: 1;
    margin-bottom: 12px;
    font-size: 15px;
}

.balance-card h2 {
    color: #FFFFFF;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Income and expenses */

/* AXOS BANK - Financial Overview Cards */

.overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.overview-card {
    background-color: #FFFFFF;
    padding: 27px;
    border-radius: 18px;
    border: 1px solid #E8EDF3;
    box-shadow: 0 5px 18px rgba(16, 43, 78, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}
.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(16, 43, 78, 0.10);
}

.overview-card p {
    color: #718096;
    margin-bottom: 15px;
    font-size: 14px;
}

.overview-card h2 {
    color: #102B4E;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}
/* Transactions */

/* AXOS BANK - Transactions */

.transactions {
    background-color: #FFFFFF;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #E8EDF3;
    box-shadow: 0 4px 15px rgba(16, 43, 78, 0.05);
}

.transactions h2 {
    color: #102B4E;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 22px;
}

.transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #EDF1F5;
    transition: background-color 0.2s ease;
}

.transaction:last-child {
    border-bottom: none;
}

.transaction:hover {
    background-color: #F7F9FC;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 32px;
    align-items: stretch;
}

/* Analytics card */

.analytics-card,
.savings-card {
    background-color: #FFFFFF;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #E8EDF3;
    box-shadow: 0 5px 18px rgba(16, 43, 78, 0.05);
    min-width: 0;
    box-sizing: border-box;
}

.analytics-card h2,
.savings-card h2 {
    color: #102B4E;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}
.section-description {
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
}
/* Expense progress bars */

.expense-item {
    margin-bottom: 22px;
}

.expense-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
    font-size: 14px;
    color: #334155;
}

.progress-bar,
.goal-bar {
    width: 100%;
    height: 9px;
    background-color: #E8EDF3;
    border-radius: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 20px;
}

.food {
    width: 85%;
    background-color: #673de6;
}

.shopping {
    width: 65%;
    background-color: #ff9f43;
}

.transport {
    width: 45%;
    background-color: #20bf9f;
}

.entertainment {
    width: 30%;
    background-color: #4389e8;
}

/* Savings goals */

.goal-item {
    margin-bottom: 25px;
}

.goal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #334155;
    flex-wrap: wrap;
}

.goal-info span {
    color: #888;
}

.goal-progress {
    height: 100%;
    border-radius: 20px;
}

.laptop {
    width: 75%;
    background-color: #673de6;
}

.vacation {
    width: 40%;
    background-color: #ff9f43;
}

.emergency {
    width: 80%;
    background-color: #20bf9f;
}

.goal-item small {
    display: block;
    color: #999;
    margin-top: 8px;
}

/* Transaction table */

/* AXOS BANK - Transaction Table */

.transactions table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    min-width: 650px;
}

.transactions th,
.transactions td {
    padding: 20px 16px;
    text-align: left;
    border-bottom: 1px solid #EDF1F5;
    vertical-align: middle;
}

.transactions th {
    color: #64748B;
    background: #F7F9FC;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.transactions td {
    color: #334155;
    font-size: 14px;
}

.transactions tbody tr {
    transition: background-color 0.2s ease;
}

.transactions tbody tr:hover {
    background-color: #F7F9FC;
}

.transactions tbody tr:last-child td {
    border-bottom: none;
}
.expense {
    color: #ed5265;
    font-weight: bold;
}

.income {
    color: #16ad83;
    font-weight: bold;
}
/* Transaction Form */

/* Transaction Form */

.transaction-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid #E8EDF3;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(16, 43, 78, 0.05);
}

.transaction-form h3 {
    width: 100%;
    margin-bottom: 8px;
    color: #102B4E;
    font-size: 18px;
}

.transaction-form input,
.transaction-form select {
    flex: 1;
    min-width: 150px;
    padding: 14px 16px;
    border: 1px solid #DCE3EB;
    border-radius: 10px;
    background: #FFFFFF;
    color: #102B4E;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.transaction-form input:focus,
.transaction-form select:focus {
    border-color: #2878D0;
    box-shadow: 0 0 0 3px rgba(40, 120, 208, 0.10);
}

.transaction-form button {
    background: #102B4E;
    color: #FFFFFF;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.transaction-form button:hover {
    background: #2878D0;
    transform: translateY(-2px);
}

/* Page navigation */

.page-section[hidden] {
    display: none;
}

.page-section h1 {
    margin-bottom: 12px;
}

.page-section > p {
    color: #888;
    margin-bottom: 25px;
}

.page-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 25px;
}

.page-card h2 {
    margin-bottom: 15px;
}

/* Virtual bank card */

.bank-card {
    background: linear-gradient(135deg, #673de6, #a17bff);
    color: white;
    padding: 35px;
    border-radius: 18px;
    max-width: 400px;
    margin-top: 25px;
    box-shadow: 0 10px 25px rgba(103, 61, 230, 0.2);
}

.bank-card h2 {
    margin: 40px 0;
    letter-spacing: 3px;
}

.bank-card small {
    display: block;
    text-align: right;
    font-size: 20px;
    font-weight: bold;
}
/* Transaction management */

/* Transaction Controls */

.transaction-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
}

.transaction-controls input,
.transaction-controls select {
    padding: 13px 15px;
    border: 1px solid #DCE3EB;
    border-radius: 9px;
    outline: none;
    background: #FFFFFF;
    color: #102B4E;
    transition: 0.3s;
}

.transaction-controls input {
    flex: 1;
    min-width: 0;
}

.transaction-controls select {
    min-width: 160px;
}

.transaction-controls input:focus,
.transaction-controls select:focus {
    border-color: #2878D0;
    box-shadow: 0 0 0 3px rgba(40, 120, 208, 0.10);
}

/* Transaction Table Container */

.table-container {
    width: 100%;
    overflow-x: auto;
}

/* Delete Button */

.delete-button {
    background: #FEECEE;
    color: #C53030;
    border: none;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: 0.3s;
}

.delete-button:hover {
    background: #FCD9DD;
}

/* Transaction Status Badges */

.pending {
    display: inline-block;
    color: #B45309;
    background-color: #FEF3C7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.completed {
    display: inline-block;
    color: #166534;
    background-color: #DCFCE7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Complete Transaction Button */

.complete-button {
    background: #E0F2FE;
    color: #0369A1;
    border: none;
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    margin-right: 6px;
    transition: 0.3s;
}

.complete-button:hover {
    background: #BAE6FD;
}

/* Transaction Amounts */

.income {
    color: #16A34A;
    font-weight: bold;
}

.expense {
    color: #E5485D;
    font-weight: bold;
}
/* Analytics page */

/* AXOS BANK - Analytics */

.analytics-overview {
    margin-top: 25px;
}

.analytics-breakdown {
    margin-top: 30px;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid #E8EDF3;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(16, 43, 78, 0.05);
}

.category-item {
    margin-top: 25px;
}

.category-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #102B4E;
    font-weight: 600;
}

.category-bar {
    width: 100%;
    height: 10px;
    background: #E8EDF3;
    border-radius: 20px;
    overflow: hidden;
}

.category-progress {
    height: 100%;
    background: linear-gradient(90deg, #102B4E, #2878D0);
    border-radius: 20px;
}

/* My Cards Page */

.cards-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.card-preview {
    background: linear-gradient(135deg, #102B4E, #1C4D7C, #2878D0);
    color: #FFFFFF;
    padding: 30px;
    border-radius: 20px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(16, 43, 78, 0.25);
    position: relative;
    overflow: hidden;
}

.card-preview::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    right: -70px;
    top: -90px;
}

.card-preview::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 50%;
    right: -40px;
    bottom: -110px;
}

.card-top,
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.card-top h2 {
    margin: 0;
}

.card-top span {
    font-weight: bold;
    font-size: 20px;
}

.card-label,
.card-bottom small {
    color: #D7E2EF;
    font-size: 11px;
    letter-spacing: 1px;
}

.card-number {
    letter-spacing: 3px;
    font-size: 22px;
    position: relative;
    z-index: 1;
}

.card-bottom p {
    margin-bottom: 0;
    font-size: 13px;
}

.card-management {
    background: #FFFFFF;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #E8EDF3;
    box-shadow: 0 8px 25px rgba(16, 43, 78, 0.06);
}

.card-management h2 {
    color: #102B4E;
    font-size: 21px;
    margin-bottom: 10px;
}

.card-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    padding: 16px;
    background: #F5F8FC;
    border-radius: 12px;
}

#card-status {
    color: #166534;
    font-weight: 600;
}

.freeze-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #FEECEE;
    color: #C53030;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.freeze-button:hover {
    background: #FCD9DD;
}

.card-status {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
}

#card-status {
    color: #16a34a;
}

.freeze-button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 9px;
    background: #ffe8eb;
    color: #e5485d;
    cursor: pointer;
    font-weight: bold;
}

.freeze-button:hover {
    opacity: 0.85;
}

.card-spending {
    margin-top: 25px;
    background: #FFFFFF;
    padding: 25px;
    border: 1px solid #E8EDF3;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(16, 43, 78, 0.05);
}

.card-spending h2 {
    color: #102B4E;
    font-size: 20px;
    margin-bottom: 12px;
}

.card-spending h1 {
    margin: 15px 0 5px;
    color: #2878D0;
    font-size: 30px;
}

.card-spending span {
    color: #718096;
    font-size: 13px;
}

/* Mobile layout */

@media (max-width: 768px) {
    .cards-layout {
        grid-template-columns: 1fr;
    }

    .card-preview {
        padding: 22px;
    }

    .card-number {
        font-size: 17px;
    }
}
    
    /* SAVINGS GOALS */

/* AXOS BANK - Savings Summary */

.savings-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.savings-form-card {
    margin-top: 30px;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid #E8EDF3;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(16, 43, 78, 0.05);
}

.savings-form-card h2 {
    color: #102B4E;
    margin-bottom: 20px;
}

#savings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#savings-form label {
    font-weight: 600;
    font-size: 14px;
    color: #102B4E;
}

#savings-form input {
    width: 100%;
    padding: 13px;
    border: 1px solid #DCE3EB;
    border-radius: 8px;
    font-size: 14px;
}

#savings-form button {
    padding: 13px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #102B4E;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

#savings-form button:hover {
    background: #2878D0;
}

/* Savings Goals */

.savings-goals-container {
    margin-top: 35px;
}

.savings-goals-container > h2 {
    color: #102B4E;
    margin-bottom: 20px;
}

.savings-goal-card {
    background: #FFFFFF;
    padding: 24px;
    border: 1px solid #E8EDF3;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(16, 43, 78, 0.05);
}

.savings-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.savings-goal-header h3 {
    margin: 0;
    color: #102B4E;
}

.savings-progress-bar {
    height: 10px;
    background: #E8EDF3;
    border-radius: 20px;
    overflow: hidden;
    margin: 15px 0;
}

.savings-progress,
.goal-progress {
    height: 100%;
    background: linear-gradient(90deg, #102B4E, #2878D0);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.savings-goal-details {
    display: flex;
    justify-content: space-between;
    color: #718096;
    font-size: 13px;
    gap: 10px;
}

/* Existing Goal Items */

.goal-item {
    margin-bottom: 25px;
}

.goal-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #102B4E;
}

.goal-info span {
    color: #718096;
}

.goal-item small {
    display: block;
    color: #718096;
    margin-top: 8px;
}

/* Savings Responsive Layout */

@media (max-width: 768px) {
    .savings-summary {
        grid-template-columns: 1fr;
    }

    .savings-goal-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* SETTINGS PAGE */

.settings-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}

.profile-settings,
.account-information {
    padding: 25px;
}

.profile-settings h2,
.account-information h2 {
    margin-bottom: 10px;
}

.profile-settings > p {
    color: #888;
    margin-bottom: 25px;
}

#profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#profile-form label {
    font-size: 14px;
    font-weight: 600;
}

#profile-form input {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

#profile-form input:focus {
    border-color: #5540a8;
}

#profile-form button {
    padding: 13px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: #5540a8;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

#profile-form button:hover {
    background: #423080;
}

.settings-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
    font-size: 14px;
}

.settings-info:last-child {
    border-bottom: none;
}

.settings-info span {
    color: #777;
}

.account-active {
    color: #16a34a;
}

@media (max-width: 768px) {
    .settings-container {
        grid-template-columns: 1fr;
    }
}
/* Dark Mode Settings */

.theme-settings {
    margin-top: 25px;
}

.theme-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Switch design */

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 30px;
    transition: 0.3s;
}

.theme-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.theme-switch input:checked + .theme-slider {
    background-color: #5540a8;
}

.theme-switch input:checked + .theme-slider::before {
    transform: translateX(24px);
}
/* =================================
   Axos Bank PROFESSIONAL DARK MODE
================================= */

body.dark-mode {
    background: #0b1120;
    color: #e5e7eb;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Main layout */

body.dark-mode .dashboard,
body.dark-mode .main-content {
    background: #0b1120;
    color: #e5e7eb;
}

/* Sidebar */

body.dark-mode .sidebar {
    background: #111827;
    border-right: 1px solid #263244;
}

body.dark-mode .logo {
    color: #ffffff;
}

body.dark-mode .nav-link {
    color: #aebbd0;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    background: #29234a;
    color: #a78bfa;
}

/* Headers and descriptions */

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode strong {
    color: #f8fafc;
}

body.dark-mode p,
body.dark-mode small,
body.dark-mode .section-description {
    color: #94a3b8;
}

/* All major cards */

body.dark-mode .page-card,
body.dark-mode .overview-card,
body.dark-mode .balance-card,
body.dark-mode .analytics-card,
body.dark-mode .savings-card,
body.dark-mode .transaction-form,
body.dark-mode .settings-container > div {
    background: #1e293b;
    color: #e5e7eb;
    border: 1px solid #334155;
    box-shadow: none;
}

/* Transaction and savings sections */

body.dark-mode .transactions,
body.dark-mode .insights-grid,
body.dark-mode .overview {
    background: transparent;
    color: #e5e7eb;
}

/* Tables */

body.dark-mode table,
body.dark-mode thead,
body.dark-mode tbody {
    background: #1e293b;
    color: #e5e7eb;
}

body.dark-mode th {
    color: #94a3b8;
    background: #263449;
}

body.dark-mode td {
    color: #e5e7eb;
    background: transparent;
    border-color: #334155;
}

/* Forms */

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #111827;
    color: #f8fafc;
    border: 1px solid #475569;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #64748b;
}

/* Buttons */

body.dark-mode button {
    color: #ffffff;
}

/* Savings progress */

body.dark-mode .goal-bar,
body.dark-mode .savings-progress-bar,
body.dark-mode .progress-bar {
    background: #334155;
}

/* Settings information */

body.dark-mode .settings-info {
    border-color: #334155;
}

body.dark-mode .settings-info span {
    color: #94a3b8;
}

/* Profile */

body.dark-mode .profile {
    color: #f8fafc;
}
/* Dashboard Header Actions */

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.notification-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 20px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .notification-button {
    background: #1e293b;
    border-color: #334155;
    color: white;
}
/* NOTIFICATION PANEL */

.notification-wrapper {
    position: relative;
}

.notification-panel {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    overflow: hidden;
}

.notification-panel.show {
    display: block;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
}

.notification-header button {
    border: none;
    background: none;
    color: #6d5dfc;
    cursor: pointer;
    font-size: 12px;
}

.notification-list {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.empty-notifications {
    text-align: center;
    color: #9ca3af;
    padding: 20px 0;
}

body.dark-mode .notification-panel {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode .notification-header {
    border-color: #334155;
}

body.dark-mode .notification-header h3 {
    color: #f8fafc;
}
/* =================================
   Axos Bank LOGIN PAGE
================================= */

.login-page {
    min-height: 100vh;
    margin: 0;
    background: #f4f6fb;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.login-container {
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.login-brand {
    margin-bottom: 30px;
}

.login-brand h1 {
    font-size: 38px;
    color: #5540a8;
    margin: 0 0 8px;
    font-weight: 800;
}

.login-brand h1 span {
    color: #8b5cf6;
}

.login-brand p {
    color: #64748b;
    font-size: 14px;
}

.login-card {
    background: #ffffff;
    padding: 38px;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(31, 41, 55, 0.08);
    text-align: left;
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading h2 {
    font-size: 25px;
    color: #172033;
    margin: 0 0 9px;
}

.login-heading p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.login-field input {
    width: 100%;
    padding: 14px;
    border: 1px solid #dbe1ea;
    border-radius: 9px;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
}

.login-field input:focus {
    border-color: #7055d9;
    box-shadow: 0 0 0 3px rgba(112, 85, 217, 0.1);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 12px;
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.login-options a,
.login-footer a {
    color: #7055d9;
    text-decoration: none;
    font-weight: 600;
}

.login-submit {
    width: 100%;
    padding: 15px;
    background: #5540a8;
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-submit:hover {
    background: #43318b;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #64748b;
}

.login-copyright {
    margin-top: 25px;
    color: #94a3b8;
    font-size: 12px;
}

/* Login page dark mode */

body.login-page.dark-mode {
    background: #0b1120;
}

body.login-page.dark-mode .login-card {
    background: #1e293b;
    border: 1px solid #334155;
}

body.login-page.dark-mode .login-heading h2,
body.login-page.dark-mode .login-field label {
    color: #f8fafc;
}

body.login-page.dark-mode .login-heading p,
body.login-page.dark-mode .login-footer {
    color: #94a3b8;
}

body.login-page.dark-mode .login-field input {
    background: #111827;
    color: white;
    border-color: #475569;
}
/* LOGOUT BUTTON */

.logout-button {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.logout-button:hover {
    background: #dc2626;
    color: #ffffff;
}

body.dark-mode .logout-button {
    background: #3b1d1d;
    color: #fca5a5;
    border-color: #7f1d1d;
}

body.dark-mode .logout-button:hover {
    background: #dc2626;
    color: #ffffff;
}
/* Responsive dashboard layout */

@media (max-width: 900px) {
    .overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .dashboard {
        flex-direction: column;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 15px;
    }

    .logo {
        margin-bottom: 20px;
    }
    }

    
/* AXOS BANK - Analytics Charts */

.analytics-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.chart-card {
    background: #FFFFFF;
    padding: 28px;
    border: 1px solid #E8EDF3;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(16, 43, 78, 0.05);
}

.chart-card h2 {
    color: #102B4E;
    font-size: 19px;
    margin-bottom: 8px;
}

.chart-card p {
    color: #718096;
    font-size: 13px;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 300px;
    display: block;
}

.trend-container {
    width: 100%;
    height: 350px;
}

.trend-card {
    margin-bottom: 25px;
}

.trend-container {
    height: 350px;
}

/* Analytics responsive layout */

@media (max-width: 768px) {
    .analytics-chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-card {
        padding: 20px;
    }

    .chart-container {
        height: 260px;
    }

    .trend-container {
        height: 280px;
    }
}
/* FINANCIAL DATA LOADING SPINNER */

.loading-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #e0e0e0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spinner-rotation 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spinner-rotation {
    to {
        transform: rotate(360deg);
    }
}
/* FINANCIAL FIGURES FADE-IN EFFECT */

.financial-loaded {
    animation: financial-fade-in 0.6s ease-in-out;
}

@keyframes financial-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Hide admin-only elements from visitors */
[hidden] {
    display: none !important;
}
/* =================================
   AXOS BANK - MOBILE RESPONSIVENESS
   Desktop layout remains unchanged
================================= */

@media (max-width: 600px) {

    .dashboard {
        width: 100%;
    }

    .page-section {
        width: 100%;
        min-width: 0;
        padding: 20px 15px;
        box-sizing: border-box;
    }

    .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
}

    /* MOBILE NAVIGATION */

    .sidebar .navigation {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* OVERVIEW CARDS */

    .overview {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 20px;
    }

    .overview-card {
        min-width: 0;
        padding: 15px;
    }

    .overview-card:last-child {
        grid-column: 1 / -1;
    }

    .overview-card p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .overview-card h2 {
        font-size: 21px;
        overflow-wrap: anywhere;
    }

    /* BALANCE CARD */

    .balance-card {
        width: 100%;
        padding: 25px 20px;
        border-radius: 18px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    .balance-card p {
        font-size: 14px;
    }

    .balance-card h2 {
        font-size: clamp(26px, 7vw, 34px);
        overflow-wrap: anywhere;
    }

    /* ANALYTICS AND SAVINGS */

    .analytics-card,
    .savings-card {
        width: 100%;
        min-width: 0;
        padding: 20px 16px;
        box-sizing: border-box;
        border-radius: 15px;
        background: #FFFFFF;
        color: #102B4E;
    }

    .analytics-card h2,
    .savings-card h2 {
        color: #102B4E;
        font-size: 19px;
    }

    .section-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .expense-info,
    .goal-info {
        font-size: 13px;
        flex-wrap: wrap;
        overflow-wrap: anywhere;
    }

    .expense-item,
    .goal-item {
        margin-bottom: 20px;
    }

    .savings-card .goal-item {
        color: #102B4E;
        background: #F7F9FC;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid #E8EDF3;
    }

    .savings-card .goal-info strong {
        color: #102B4E;
    }

    .savings-card .goal-info span,
    .savings-card .goal-item small {
        color: #64748B;
    }

    .progress-bar,
    .goal-bar {
        height: 8px;
    }

    /* TRANSACTION TABLE */

    .transactions {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .transactions table {
        width: 100%;
        min-width: 650px;
        border-collapse: collapse;
    }

    .transactions th,
    .transactions td {
        padding: 14px 12px;
        white-space: nowrap;
    }

    .transactions th {
        font-size: 11px;
    }

    .transactions td {
        font-size: 13px;
    }

    /* TRANSACTION FORM */

    .transaction-form {
        width: 100%;
    }

    .transaction-form input,
    .transaction-form select,
    .transaction-form button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
        box-sizing: border-box;
    }

}
/* =================================
   MOBILE SLIDE-OUT NAVIGATION
================================= */

/* Hide mobile menu button on desktop */
.mobile-menu-button {
    display: none;
}

@media (max-width: 600px) {

    /* Mobile menu button */
    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        font-size: 25px;
        background: #102B4E;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        position: fixed;
top: 15px;
left: 15px;
z-index: 999;
    }

    /* Sidebar drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        min-height: 100vh;
        z-index: 1001;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    /* Open sidebar */
    .sidebar.open {
        transform: translateX(0);
    }

    /* Dark background overlay */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

}
@media (max-width: 600px) {
    .savings-card > h2 {
        color: #102B4E !important;
        background: transparent !important;
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        width: 100% !important;
        text-align: left !important;
    }

    .header > div:first-child {
        flex: 1;
        min-width: 120px;
        text-align: left !important;
    }

    .header > .header-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        align-self: center !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 10px !important;
    }
}
/* DESKTOP LAYOUT CORRECTION */

@media (min-width: 601px) {

    .dashboard {
        display: flex;
        flex-direction: row;
        width: 100%;
        min-height: 100vh;
    }

    .sidebar {
        flex: 0 0 250px;
        width: 250px;
        min-width: 250px;
        max-width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        box-sizing: border-box;
    }

    .main-content {
        flex: 1 1 auto;
        width: calc(100% - 250px);
        min-width: 0;
        box-sizing: border-box;
    }

}
/* Redesigned Transaction Form */

.transaction-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #E1E8F0;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(16, 43, 78, 0.07);
}

.transaction-form h3 {
    grid-column: 1 / -1;
    font-size: 21px;
    color: #102B4E;
    margin-bottom: 5px;
}

.transaction-form input,
.transaction-form select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid #DCE3EB;
    border-radius: 10px;
    background: #F9FBFD;
}

.transaction-form button {
    grid-column: 1 / -1;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .transaction-form {
        grid-template-columns: 1fr !important;
        padding: 20px;
    }

    .transaction-form button {
        grid-column: 1;
    }
}
/* Modern Recent Transactions Table */

.transactions table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
}

.transactions th,
.transactions td {
    padding: 20px 18px;
    border-bottom: 1px solid #EDF1F5;
    text-align: left;
}

.transactions tbody tr {
    transition: background-color 0.2s ease;
}

.transactions tbody tr:hover {
    background-color: #F5F8FC;
}

.transactions tbody tr:last-child td {
    border-bottom: none;
}

.transactions th {
    background: #F7F9FC;
    color: #64748B;
    font-size: 11px;
    letter-spacing: 0.8px;
}
/* Analytics and Savings Card Hover Effects */

.analytics-card,
.savings-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.analytics-card:hover,
.savings-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 43, 78, 0.10);
}
/* PREMIUM AXOS SPENDING ANALYTICS */

.analytics-card {
    background: #FFFFFF;
    padding: 30px;
    border: 1px solid #E3EAF2;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(16, 43, 78, 0.06);
}

.analytics-card h2 {
    color: #102B4E;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.analytics-card .section-description {
    color: #8493A7;
    font-size: 13px;
    margin-bottom: 28px;
}

.analytics-card .expense-item {
    padding: 17px 0;
    border-bottom: 1px solid #EDF2F7;
}

.analytics-card .expense-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.analytics-card .expense-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px;
    gap: 12px;
}

.analytics-card .expense-category {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.analytics-card .category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #EAF3FC;
    font-size: 18px;
    flex-shrink: 0;
}

.analytics-card .expense-info strong {
    color: #102B4E;
    font-size: 15px;
    font-weight: 700;
}

.analytics-card .progress-bar {
    height: 8px;
    background: #EAF0F7;
    border-radius: 20px;
    overflow: hidden;
}

.analytics-card .progress {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #1C4D7C, #65A9E8);
}
/* PREMIUM AXOS SAVINGS GOALS */

.savings-card {
    background: #FFFFFF;
    padding: 30px;
    border: 1px solid #E3EAF2;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(16, 43, 78, 0.06);
}

.savings-card h2 {
    color: #102B4E;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 8px;
}

.savings-card .section-description {
    color: #8493A7;
    font-size: 13px;
    margin-bottom: 25px;
}

.savings-card .goal-item {
    padding: 19px 0;
    border-bottom: 1px solid #EDF2F7;
}

.savings-card .goal-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.savings-card .goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.savings-card .goal-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.savings-card .goal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #EAF3FC;
    font-size: 18px;
}

.savings-card .goal-title strong {
    color: #102B4E;
    font-size: 14px;
}

.savings-card .goal-percentage {
    color: #1C4D7C;
    background: #EAF3FC;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.savings-card .goal-amount {
    color: #64748B;
    font-size: 13px;
    margin: 0 0 12px 49px;
}

.savings-card .goal-bar {
    height: 9px;
    margin-bottom: 9px;
    background: #EAF0F7;
    border-radius: 20px;
    overflow: hidden;
}

.savings-card .goal-progress {
    height: 100%;
    background: linear-gradient(90deg, #1C4D7C, #65A9E8);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.savings-card .goal-completed {
    display: block;
    color: #8493A7;
    font-size: 11px;
    margin-left: 49px;
}
/* PREMIUM AXOS RECENT TRANSACTIONS */

.transactions h2 {
    color: #102B4E;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 22px;
}

.transactions table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF;
    border: 1px solid #E3EAF2;
    border-radius: 16px;
    overflow: hidden;
}

.transactions th {
    padding: 17px 20px;
    background: #F4F7FB;
    color: #718096;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.transactions td {
    padding: 18px 20px;
    color: #475569;
    font-size: 13px;
    border-bottom: 1px solid #EDF2F7;
}

.transactions tbody tr:last-child td {
    border-bottom: none;
}

.transactions tbody tr {
    transition: background-color 0.2s ease;
}

.transactions tbody tr:hover {
    background: #F5F9FE;
}

/* Transaction description and icon */

.transaction-description {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.transaction-description strong {
    color: #102B4E;
    font-size: 13px;
    font-weight: 600;
}

.transaction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #EAF3FC;
    font-size: 17px;
}

/* Transaction amounts */

.transactions td.income {
    color: #16835D;
    font-weight: 700;
    white-space: nowrap;
}

.transactions td.expense {
    color: #102B4E;
    font-weight: 700;
    white-space: nowrap;
}

/* Transaction status badges */

.transaction-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.transaction-status.completed {
    color: #16835D;
    background: #E8F7F0;
}

.transaction-status.pending {
    color: #A66A13;
    background: #FFF4DF;
}

/* Mobile table support */

@media (max-width: 600px) {
    .transactions {
        overflow-x: auto;
    }

    .transactions table {
        min-width: 650px;
    }
}
/* AXOS ANALYTICS AND SAVINGS SIDE-BY-SIDE LAYOUT */

.insights-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.insights-grid > .analytics-card,
.insights-grid > .savings-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Stack cards on smaller screens */
@media (max-width: 800px) {
    .insights-grid {
        grid-template-columns: 1fr !important;
    }
}
/* PROFESSIONAL SIDEBAR DESIGN */

.sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #102B4E;
    padding: 30px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

/* Sidebar logo */

.sidebar .logo {
    color: #FFFFFF;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 55px;
    padding-left: 10px;
    letter-spacing: -0.5px;
}

/* Navigation */

.sidebar .navigation {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar .navigation .nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #D7E2EF;
    padding: 14px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

/* Hover effect */

.sidebar .navigation .nav-link:hover {
    background-color: #1E4772;
    color: #FFFFFF;
}

/* Active navigation */

.sidebar .navigation .nav-link.active {
    background: linear-gradient(90deg, #2878D0, #1E5FA5);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
/* PROFESSIONAL MAIN CONTENT */

.main-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 40px;
    box-sizing: border-box;
    background-color: #F5F6FA;
    overflow-x: hidden;
}
/* PROFESSIONAL DASHBOARD HEADER */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    width: 100%;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #102B4E;
    margin-bottom: 8px;
}

.header p {
    color: #718096;
    font-size: 14px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background-color: #FFFFFF;
    border: 1px solid #E8EDF3;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(16, 43, 78, 0.05);
}

.profile span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #102B4E;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
/* PROFESSIONAL HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
    width: auto;
    margin: 0;
}
/* PROFESSIONAL NOTIFICATION BUTTON */
.notification-button {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid #E5EAF0;
    border-radius: 12px;
    background: #FFFFFF;
    color: #102B4E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(16, 43, 78, 0.05);
}

.notification-button:hover {
    background: #F0F5FB;
    border-color: #2878D0;
    transform: translateY(-2px);
}

body.dark-mode .notification-button {
    background: #1E293B;
    border-color: #334155;
    color: #FFFFFF;
}
/* PROFESSIONAL NOTIFICATION BADGE */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: #E53935;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-sizing: content-box;
}
/* COMPACT MOBILE DASHBOARD HEADER */
@media (max-width: 600px) {

    .header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .header > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .header h1 {
        font-size: 22px !important;
    }

    .header p {
        font-size: 11px !important;
    }

    .header > .header-actions {
        flex: 0 0 auto !important;
        width: auto !important;
        gap: 6px !important;
        margin: 0 !important;
        align-self: flex-start !important;
    }

    .notification-button {
        width: 36px !important;
        height: 36px !important;
    }

    .profile {
        padding: 4px !important;
        gap: 0 !important;
    }

    .profile span {
        width: 34px !important;
        height: 34px !important;
    }

    .profile p {
        display: none !important;
    }

    .logout-button {
        padding: 8px !important;
        font-size: 11px !important;
    }
}
/* SHOW PROFILE NAME ON MOBILE */
@media (max-width: 600px) {
    .profile {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 5px 8px !important;
    }

    .profile p {
        display: block !important;
        font-size: 10px !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    .profile span {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }
}
/* PROFESSIONAL PROFILE DESIGN */
.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #E8EDF3;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(16, 43, 78, 0.06);
    transition: all 0.3s ease;
}

.profile span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #102B4E;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile p {
    color: #102B4E;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

/* DARK MODE PROFILE */
body.dark-mode .profile {
    background: #1E293B;
    border-color: #334155;
    color: #F8FAFC;
}

body.dark-mode .profile p {
    color: #F8FAFC;
}

/* PRESERVE MOBILE PROFILE */
@media (max-width: 600px) {
    .profile {
        gap: 6px !important;
        padding: 5px 8px !important;
    }

    .profile span {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }

    .profile p {
        display: block !important;
        font-size: 10px !important;
    }
}
/* PROFILE PICTURE */
.profile-picture {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E8EDF3;
    flex-shrink: 0;
}

/* HIDE INITIALS WHEN PROFILE PICTURE EXISTS */
.profile-picture:not([hidden]) + #profile-initials {
    display: none;
}

/* MOBILE PROFILE PICTURE */
@media (max-width: 600px) {
    .profile-picture {
        width: 30px;
        height: 30px;
    }
}
/* EDIT TRANSACTION MODAL */

.edit-modal {
    position: fixed;
    inset: 0;
    background: rgba(16, 43, 78, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10000;
}

.edit-modal[hidden] {
    display: none;
}

.edit-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.edit-modal-header h2 {
    color: #102B4E;
    font-size: 23px;
}

#close-edit-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #777;
}

#edit-transaction-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#edit-transaction-form label {
    color: #102B4E;
    font-weight: 600;
    font-size: 13px;
}

#edit-transaction-form input,
#edit-transaction-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

#edit-transaction-form input:focus,
#edit-transaction-form select:focus {
    border-color: #2878D0;
}

.edit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

#cancel-edit {
    background: #f1f3f6;
    color: #555;
    border: none;
    padding: 11px 18px;
    border-radius: 8px;
    cursor: pointer;
}

#save-edit {
    background: #2878D0;
    color: #ffffff;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

#save-edit:hover {
    background: #102B4E;
}

/* MOBILE MODAL */

@media (max-width: 600px) {
    .edit-modal-content {
        padding: 22px;
    }

    .edit-modal-actions {
        flex-direction: column-reverse;
    }

    .edit-modal-actions button {
        width: 100%;
    }
}
/* =================================
   PROFESSIONAL TRANSACTIONS PAGE
================================= */

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.transactions-eyebrow {
    display: block;
    color: #2878D0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.transactions-header h1 {
    color: #102B4E;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

.transactions-header p {
    color: #7b8794;
    font-size: 14px;
}

.transactions-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
}

.transactions-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.transactions-card-header h2 {
    color: #102B4E;
    font-size: 19px;
    margin-bottom: 7px;
}

.transactions-card-header p {
    color: #8994a3;
    font-size: 13px;
}

/* SEARCH AND FILTERS */

.transaction-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.transaction-controls input {
    flex: 1;
    min-width: 200px;
}

.transaction-controls input,
.transaction-controls select {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e0e6ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    outline: none;
    transition: 0.2s ease;
}

.transaction-controls select {
    min-width: 155px;
    cursor: pointer;
}

.transaction-controls input:focus,
.transaction-controls select:focus {
    border-color: #2878D0;
    box-shadow: 0 0 0 3px rgba(40, 120, 208, 0.08);
}

/* TRANSACTIONS TABLE */

.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #edf0f4;
    border-radius: 10px;
}

.transactions-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
}

.transactions-table thead {
    background: #f7f9fc;
}

.transactions-table th {
    padding: 16px;
    text-align: left;
    color: #718096;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.transactions-table td {
    padding: 17px 16px;
    border-top: 1px solid #edf0f4;
    color: #475569;
    font-size: 13px;
    vertical-align: middle;
}

.transactions-table tbody tr {
    transition: background 0.2s ease;
}

.transactions-table tbody tr:hover {
    background: #f8faff;
}

/* MOBILE */

@media (max-width: 768px) {

    .transactions-header h1 {
        font-size: 25px;
    }

    .transactions-card {
        padding: 17px;
    }

    .transaction-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .transaction-controls input,
    .transaction-controls select {
        width: 100%;
        min-width: 0;
    }

}
/* TRANSACTION AMOUNTS */

.transactions-table td.income {
    color: #16a36a;
    font-weight: 700;
}

.transactions-table td.expense {
    color: #dc4c4c;
    font-weight: 700;
}

/* TRANSACTION STATUS BADGES */

.transactions-table td.pending,
.transactions-table td.completed {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.transactions-table td.pending {
    color: #b7791f;
}

.transactions-table td.completed {
    color: #16865b;
}

/* TRANSACTION ACTION BUTTONS */

.transactions-table td:last-child {
    white-space: nowrap;
}

.complete-button,
.edit-button,
.delete-button {
    padding: 8px 12px;
    margin: 3px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.complete-button {
    background: #eaf7ef;
    color: #16865b;
    border: 1px solid #c5ead3;
}

.complete-button:hover {
    background: #16865b;
    color: #ffffff;
}

.edit-button {
    background: #edf4ff;
    color: #2878D0;
    border: 1px solid #cbdcf5;
}

.edit-button:hover {
    background: #2878D0;
    color: #ffffff;
}

.delete-button {
    background: #fff1f1;
    color: #dc4c4c;
    border: 1px solid #f5cccc;
}

.delete-button:hover {
    background: #dc4c4c;
    color: #ffffff;
}
/* TRANSACTION SUMMARY CARDS */

.transaction-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.transaction-summary-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
    transition: 0.25s ease;
}

.transaction-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(16, 43, 78, 0.08);
}

.summary-card-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf4ff;
    color: #2878D0;
    border-radius: 10px;
    font-size: 22px;
    margin-bottom: 17px;
}

.summary-card-icon.income-icon {
    background: #eaf7ef;
    color: #16865b;
}

.summary-card-icon.expense-icon {
    background: #fff1f1;
    color: #dc4c4c;
}

.summary-card-icon.pending-icon {
    background: #fff7e6;
    color: #b7791f;
}

.transaction-summary-card p {
    color: #7b8794;
    font-size: 13px;
    margin-bottom: 9px;
}

.transaction-summary-card h2 {
    color: #102B4E;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 8px;
}

.transaction-summary-card span {
    color: #9aa4b2;
    font-size: 11px;
}

/* RESPONSIVE SUMMARY CARDS */

@media (max-width: 1000px) {
    .transaction-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .transaction-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
/* PROFESSIONAL TRANSACTION STATUS BADGES */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.pending {
    background: #fff5df;
    color: #a66b08;
    border: 1px solid #f5dfad;
}

.status-badge.completed {
    background: #e8f7ef;
    color: #16865b;
    border: 1px solid #c5ead3;
}
/* TRANSACTION TABLE TEXT HIERARCHY */

.transactions-table td:first-child {
    color: #102B4E;
    font-weight: 600;
}

.transactions-table td:nth-child(2) {
    color: #64748b;
    font-weight: 500;
}

.transactions-table td:nth-child(3) {
    color: #8994a3;
    font-size: 12px;
    white-space: nowrap;
}

.transactions-table td:nth-child(4) {
    white-space: nowrap;
    font-weight: 600;
}
/* =================================
   PROFESSIONAL MY CARDS PAGE
================================= */

.cards-page-header {
    margin-bottom: 30px;
}

.cards-eyebrow {
    display: block;
    color: #2878D0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.cards-page-header h1 {
    color: #102B4E;
    font-size: 30px;
    margin-bottom: 8px;
}

.cards-page-header p {
    color: #8994a3;
    font-size: 14px;
}

/* CARD LAYOUT */

.cards-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    align-items: stretch;
    margin-bottom: 25px;
}

/* BANK CARD PREVIEW */

.card-preview {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, #102B4E 0%, #174c7e 55%, #2878D0 100%);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(16, 43, 78, 0.22);
}

.card-preview::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    right: -65px;
    top: -80px;
}

.card-preview::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.10);
    right: -25px;
    bottom: -115px;
}

.card-top,
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.card-top h2 {
    font-size: 20px;
    font-weight: 700;
}

.card-top span {
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
}

.card-chip {
    width: 43px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d9c69a, #f3e3b7, #b99d65);
    margin-top: 28px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #c6d6e8;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.card-number {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 27px;
    position: relative;
    z-index: 1;
}

.card-bottom {
    align-items: flex-end;
}

.card-bottom small {
    display: block;
    color: #c6d6e8;
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.card-bottom p {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* CARD MANAGEMENT */

.card-management {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
}

.card-management-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.card-management-heading h2 {
    color: #102B4E;
    font-size: 19px;
    margin-bottom: 7px;
}

.card-management-heading p {
    color: #8994a3;
    font-size: 12px;
}

.card-security-icon,
.spending-icon {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    background: #edf4ff;
    color: #2878D0;
    font-size: 23px;
}

.card-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    margin-bottom: 22px;
}

.card-status span {
    display: block;
    color: #102B4E;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-status small {
    color: #8994a3;
    font-size: 11px;
}

#card-status {
    color: #16865b;
    background: #eaf7ef;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 11px;
}

/* FREEZE BUTTON */

.freeze-button {
    width: 100%;
    padding: 13px;
    border: 1px solid #f1cccc;
    border-radius: 9px;
    background: #fff1f1;
    color: #dc4c4c;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.freeze-button:hover {
    background: #dc4c4c;
    color: #ffffff;
}

/* CARD SPENDING */

.card-spending {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
}

.card-spending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-spending-header h2 {
    color: #102B4E;
    font-size: 19px;
    margin-bottom: 7px;
}

.card-spending-header p {
    color: #8994a3;
    font-size: 12px;
}

.card-spending h1 {
    color: #102B4E;
    font-size: 30px;
    margin-bottom: 7px;
}

.card-spending > span {
    color: #8994a3;
    font-size: 12px;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 900px) {
    .cards-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .card-preview {
        padding: 22px;
        min-height: 235px;
    }

    .card-number {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .card-management,
    .card-spending {
        padding: 20px;
    }

    .cards-page-header h1 {
        font-size: 25px;
    }
}
/* CARD SPENDING BREAKDOWN */

.card-breakdown {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
}

.card-breakdown h2 {
    color: #102B4E;
    font-size: 19px;
    margin-bottom: 7px;
}

.card-breakdown p {
    color: #8994a3;
    font-size: 12px;
}

.spending-category {
    margin-top: 22px;
}

.spending-category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.spending-category-info span {
    color: #102B4E;
    font-size: 13px;
    font-weight: 600;
}

.spending-category-info strong {
    color: #102B4E;
    font-size: 13px;
}

.spending-progress {
    width: 100%;
    height: 9px;
    background: #edf1f6;
    border-radius: 20px;
    overflow: hidden;
}

.spending-progress-fill {
    height: 100%;
    background: #2878D0;
    border-radius: 20px;
    transition: width 0.4s ease;
}
/* PROFESSIONAL SAVINGS PAGE */

.savings-page-header {
    margin-bottom: 30px;
}

.savings-eyebrow {
    display: block;
    color: #2878D0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.savings-page-header h1 {
    color: #102B4E;
    font-size: 30px;
    margin-bottom: 8px;
}

.savings-page-header p {
    color: #8994a3;
    font-size: 14px;
}

.savings-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.overview-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
}

.savings-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #edf4ff;
    color: #2878D0;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 18px;
}

.goals-icon {
    background: #eaf7ef;
    color: #16865b;
}

.overview-card p {
    color: #8994a3;
    font-size: 13px;
    margin-bottom: 9px;
}

.overview-card h2 {
    color: #102B4E;
    font-size: 27px;
    margin-bottom: 8px;
}

.overview-card span {
    color: #8994a3;
    font-size: 11px;
}

.savings-form-card,
.savings-goals-container {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
}

.savings-section-heading {
    margin-bottom: 22px;
}

.savings-section-heading h2 {
    color: #102B4E;
    font-size: 19px;
    margin-bottom: 7px;
}

.savings-section-heading p {
    color: #8994a3;
    font-size: 12px;
}

.savings-form-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.savings-form-card label {
    color: #102B4E;
    font-size: 13px;
    font-weight: 600;
}

.savings-form-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
}

.savings-form-card input:focus {
    border-color: #2878D0;
    box-shadow: 0 0 0 3px rgba(40, 120, 208, 0.1);
}

.savings-form-card button {
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #102B4E;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.savings-form-card button:hover {
    background: #2878D0;
}

@media (max-width: 600px) {
    .savings-summary {
        grid-template-columns: 1fr;
    }

    .savings-page-header h1 {
        font-size: 25px;
    }

    .overview-card,
    .savings-form-card,
    .savings-goals-container {
        padding: 20px;
    }
}
/* PROFESSIONAL SAVINGS GOAL CARDS */

.savings-goal-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
    transition: 0.25s ease;
}

.savings-goal-card:hover {
    border-color: #cbdcf0;
    box-shadow: 0 6px 18px rgba(16, 43, 78, 0.06);
}

.savings-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.savings-goal-header h3 {
    color: #102B4E;
    font-size: 16px;
    font-weight: 700;
}

.savings-goal-header span {
    color: #2878D0;
    background: #edf4ff;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.savings-goal-details {
    color: #8994a3;
    font-size: 13px;
}

.savings-progress-bar {
    width: 100%;
    height: 10px;
    background: #edf1f6;
    border-radius: 20px;
    overflow: hidden;
}

.savings-progress {
    height: 100%;
    background: linear-gradient(90deg, #2878D0, #58a0ed);
    border-radius: 20px;
    transition: width 0.4s ease;
}

.add-savings {
    order: 4;
    align-self: flex-start;
    padding: 10px 17px;
    background: #102B4E;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.add-savings:hover {
    background: #2878D0;
}

@media (max-width: 500px) {
    .savings-goal-card {
        padding: 18px;
    }

    .savings-goal-header h3 {
        font-size: 14px;
    }
}
/* SAVINGS GOAL ACTION BUTTONS */

.savings-goal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.savings-goal-actions button {
    padding: 10px 16px;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.savings-goal-actions .add-savings {
    background: #102B4E;
    color: #ffffff;
}

.savings-goal-actions .edit-savings {
    background: #edf4ff;
    color: #2878D0;
}

.savings-goal-actions .delete-savings {
    background: #fff1f1;
    color: #dc4c4c;
}

.savings-goal-actions .add-savings:hover {
    background: #2878D0;
}

.savings-goal-actions .edit-savings:hover {
    background: #dceaff;
}

.savings-goal-actions .delete-savings:hover {
    background: #dc4c4c;
    color: #ffffff;
}
/* =================================
   PROFESSIONAL ANALYTICS PAGE
================================= */

.analytics-page-header {
    margin-bottom: 30px;
}

.analytics-eyebrow {
    display: block;
    color: #2878D0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.analytics-page-header h1 {
    color: #102B4E;
    font-size: 30px;
    margin-bottom: 8px;
}

.analytics-page-header p {
    color: #8994a3;
    font-size: 14px;
}

/* OVERVIEW CARDS */

.analytics-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.analytics-stat-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
}

.analytics-stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 18px;
}

.income-stat-icon {
    background: #eaf7ef;
    color: #16865b;
}

.expense-stat-icon {
    background: #fff1f1;
    color: #dc4c4c;
}

.pending-stat-icon {
    background: #edf4ff;
    color: #2878D0;
}

.analytics-stat-card p {
    color: #8994a3;
    font-size: 13px;
    margin-bottom: 9px;
}

.analytics-stat-card h2 {
    color: #102B4E;
    font-size: 26px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.analytics-stat-card span {
    color: #8994a3;
    font-size: 11px;
}

/* CHART LAYOUT */

.analytics-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.chart-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
    min-width: 0;
}

.analytics-card-heading {
    margin-bottom: 20px;
}

.analytics-card-heading h2 {
    color: #102B4E;
    font-size: 18px;
    margin-bottom: 7px;
}

.analytics-card-heading p {
    color: #8994a3;
    font-size: 12px;
}

/* CHART CONTAINERS */

.chart-container {
    position: relative;
    width: 100%;
    height: 280px;
}

.trend-card {
    margin-bottom: 25px;
}

.trend-container {
    height: 320px;
}

/* FINANCIAL INSIGHTS */

.analytics-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.insight-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
    min-width: 0;
}

.insight-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf4ff;
    color: #2878D0;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
}

.insight-card p {
    color: #8994a3;
    font-size: 12px;
    margin-bottom: 9px;
}

.insight-card h2 {
    color: #102B4E;
    font-size: 22px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.insight-card span {
    color: #8994a3;
    font-size: 11px;
    line-height: 1.5;
}

/* SPENDING BREAKDOWN */

.analytics-breakdown {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(16, 43, 78, 0.04);
}

/* RESPONSIVE DESIGN */

@media (max-width: 1100px) {
    .analytics-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .analytics-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {
    .analytics-overview,
    .analytics-insights {
        grid-template-columns: 1fr;
    }

    .analytics-page-header h1 {
        font-size: 25px;
    }

    .analytics-stat-card,
    .chart-card,
    .insight-card,
    .analytics-breakdown {
        padding: 20px;
    }

    .chart-container {
        height: 240px;
    }

    .trend-container {
        height: 270px;
    }
}
/* MOBILE NOTIFICATION PANEL FIX */

@media (max-width: 600px) {

    .notification-panel {
        position: fixed;
        top: 75px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: 400px;
        margin-left: auto;
        max-height: 75vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .notification-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 15px;
    }

    .notification-header h3 {
        font-size: 16px;
    }

    .notification-header button {
        flex-shrink: 0;
    }

    .notification-list {
        max-height: 60vh;
        overflow-y: auto;
        overflow-wrap: anywhere;
    }

}
/* NOTIFICATION HEADER ACTIONS */

.notification-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* CLOSE NOTIFICATION BUTTON */

#close-notifications {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

#close-notifications:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

#close-notifications:active {
    transform: scale(0.9);
}

/* DARK MODE */

body.dark-mode #close-notifications {
    background: #334155;
    color: #cbd5e1;
}

body.dark-mode #close-notifications:hover {
    background: #7f1d1d;
    color: #ffffff;
}
/* PROFESSIONAL NOTIFICATION ITEMS */

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-left: 4px solid #2878D0;
    border-radius: 10px;
    padding: 14px 15px;
    transition: all 0.25s ease;
}

.notification-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.notification-item strong {
    display: block;
    color: #102B4E;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.notification-item p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
}

/* DARK MODE */

body.dark-mode .notification-item {
    background: #263449;
    border-color: #334155;
    border-left-color: #2878D0;
}

body.dark-mode .notification-item strong {
    color: #f8fafc;
}

body.dark-mode .notification-item p {
    color: #cbd5e1;
}
/* AXOS BANK - MOBILE OVERVIEW CARDS */

@media screen and (max-width: 600px) {

    .overview {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .overview-card {
        min-width: 0;
        padding: 12px;
        overflow: hidden;
    }

    /* Keep income and expenses amounts on one line */

    #total-income,
    #total-expenses {
        white-space: nowrap;
        font-size: clamp(11px, 3.5vw, 16px);
    }

    /* Savings occupies the full row */

    .overview-card:nth-child(3) {
        grid-column: 1 / -1;
    }

    #dashboard-total-savings {
        white-space: nowrap;
    }

}
/* AXOS BANK - MOBILE BALANCE CARD */

@media screen and (max-width: 600px) {

    .balance-section {
        width: 100%;
        margin-bottom: 15px;
    }

    .balance-card {
        width: 100%;
        min-height: 145px;
        padding: 20px;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .balance-card p {
        font-size: 13px;
    }

    #total-balance {
        font-size: clamp(25px, 7vw, 32px);
        white-space: nowrap;
    }

    .balance-card span {
        font-size: 12px;
    }

}
/* AXOS BANK - MOBILE BOTTOM NAVIGATION */

/* Hide mobile navigation on desktop */

.mobile-bottom-nav {
    display: none;
}

@media screen and (max-width: 600px) {

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 68px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        justify-content: space-around;
        align-items: center;
        padding: 5px 8px;
        z-index: 9999;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex: 1;
        height: 100%;
        border: none;
        background: transparent;
        color: #8491a5;
        text-decoration: none;
        font-family: Arial, sans-serif;
        font-size: 10px;
        cursor: pointer;
    }

    .mobile-bottom-nav .mobile-nav-icon {
        font-size: 21px;
        line-height: 1;
    }

    .mobile-bottom-nav .active {
        color: #15365b;
        font-weight: bold;
    }

    /* Prevent content from hiding behind navigation */

    body {
        padding-bottom: 75px;
    }
/* Hide old hamburger button on mobile */

.mobile-menu-button {
    display: none !important;
}

}
/* AXOS BANK - MOBILE TRANSACTION FORM */

@media screen and (max-width: 600px) {

    .transaction-form {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        gap: 14px;
        padding: 18px;
        margin: 18px 0;
        border-radius: 16px;
    }

    .transaction-form h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .transaction-form input,
    .transaction-form select {
        width: 100%;
        min-width: 0;
        height: 48px;
        padding: 12px;
        font-size: 14px;
    }

    .transaction-form button {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
        grid-column: 1;
    }

}
/* AXOS BANK - MOBILE TRANSACTION SUMMARY */

@media screen and (max-width: 600px) {

    .transaction-summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .transaction-summary-card {
        min-width: 0;
        padding: 14px;
        border-radius: 14px;
        overflow: hidden;
    }

    .transaction-summary-card p {
        font-size: 12px;
    }

    .transaction-summary-card h2 {
        font-size: clamp(16px, 4.5vw, 21px);
        overflow-wrap: anywhere;
    }

    .transaction-summary-card span {
        font-size: 10px;
    }

    .summary-card-icon {
        font-size: 20px;
        margin-bottom: 8px;
    }

}
/* AXOS BANK - MOBILE TRANSACTION FILTERS */

@media screen and (max-width: 600px) {

    .transactions-card {
        width: 100%;
        padding: 16px;
        overflow: hidden;
    }

    .transactions-card-header {
        margin-bottom: 16px;
    }

    .transactions-card-header h2 {
        font-size: 18px;
    }

    .transactions-card-header p {
        font-size: 12px;
    }

    .transaction-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .transaction-controls input,
    .transaction-controls select {
        width: 100%;
        min-width: 0;
        height: 46px;
        padding: 12px;
        box-sizing: border-box;
        border-radius: 10px;
        font-size: 14px;
    }

}
/* AXOS BANK - MOBILE TRANSACTION TABLE */

@media screen and (max-width: 600px) {

    .transactions-table {
        min-width: 650px;
    }

    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 12px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .transactions-table button {
        padding: 7px 10px;
        font-size: 11px;
        margin: 2px;
    }

}
/* AXOS BANK - MOBILE DASHBOARD TRANSACTIONS */

@media screen and (max-width: 600px) {

    .dashboard-transactions-table {
        min-width: 550px;
        width: 100%;
    }

    .dashboard-transactions-table th,
    .dashboard-transactions-table td {
        padding: 12px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .transactions:has(.dashboard-transactions-table) {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

}
/* DASHBOARD TRANSACTION AMOUNT COLORS */

.dashboard-transactions-table td.expense {
    color: #dc2626 !important;
}

.dashboard-transactions-table td.income {
    color: #16a34a !important;
}
/* AXOS BANK - TRANSACTION DETAILS MODAL */

.transaction-details-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 45, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.transaction-details-modal[hidden] {
    display: none;
}

.transaction-details-content {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.transaction-details-content h2 {
    color: #102B4E;
    font-size: 22px;
    margin-bottom: 25px;
}

#close-transaction-details {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    .transaction-details-content {
        padding: 24px 18px;
        border-radius: 16px;
    }
}
/* TRANSACTION DETAILS ROWS */

.transaction-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #E8EDF3;
}

.transaction-detail-row:last-child {
    border-bottom: none;
}

.transaction-detail-row span {
    color: #8491A5;
    font-size: 13px;
}

.transaction-detail-row strong {
    color: #102B4E;
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 600px) {
    .transaction-detail-row {
        padding: 13px 0;
    }

    .transaction-detail-row span,
    .transaction-detail-row strong {
        font-size: 12px;
    }
}
/* DASHBOARD TRANSACTION AMOUNT COLORS */

.dashboard-transactions-table td.expense {
    color: #dc2626 !important;
}

.dashboard-transactions-table td.income {
    color: #16a34a !important;
}
/* Keep admin-only elements hidden when required */

[data-admin-only][hidden] {
    display: none !important;
}