/* 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;
}
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar nav a {
    text-decoration: none;
    color: #D7E2EF;
    padding: 14px;
    border-radius: 10px;
    transition: 0.3s;
    font-weight: 500;
}

.sidebar nav a:hover {
    background-color: #1E4772;
    color: #ffffff;
}

.sidebar nav a.active {
    background-color: #2878D0;
    color: #ffffff;
    font-weight: 600;
}

/* Main content */

.main-content {
    flex: 1;
    padding: 35px;
}

/* Header */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.header p {
    color: #888;
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile span {
    background-color: #673de6;
    color: white;
    padding: 12px;
    border-radius: 50%;
}

/* Balance card */

/* AXOS BANK - Premium Balance Card */

.balance-card {
    background: linear-gradient(135deg, #102B4E, #1C4D7C);
    color: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 12px 30px rgba(16, 43, 78, 0.18);
    position: relative;
    overflow: hidden;
}

.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, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.overview-card {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #E8EDF3;
    box-shadow: 0 4px 15px rgba(16, 43, 78, 0.05);
    transition: 0.3s ease;
}

.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: 25px;
    font-weight: 700;
}
/* 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: 24px;
    margin-bottom: 30px;
}

/* Analytics card */

.analytics-card,
.savings-card {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
}

.analytics-card h2,
.savings-card h2 {
    margin-bottom: 8px;
}

.section-description {
    color: #999;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Expense progress bars */

.expense-item {
    margin-bottom: 22px;
}

.expense-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-bar,
.goal-bar {
    width: 100%;
    height: 9px;
    background-color: #eeeef3;
    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;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.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: 18px 14px;
    text-align: left;
    border-bottom: 1px solid #EDF1F5;
}

.transactions th {
    color: #718096;
    background: #F7F9FC;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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: 14px;
    margin: 25px 0;
    padding: 24px;
    background: #F7F9FC;
    border: 1px solid #E8EDF3;
    border-radius: 16px;
}

.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: 13px 15px;
    border: 1px solid #DCE3EB;
    border-radius: 9px;
    background: #FFFFFF;
    color: #102B4E;
    outline: none;
    transition: 0.3s;
}

.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: 13px 22px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.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;
        .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sidebar nav a {
        flex: 1 1 120px;
        text-align: center;
    }

    .logo {
        margin-bottom: 20px;
    }
    }

    .sidebar {
        width: 100%;
    }

    .overview {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 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 {
        flex-direction: column;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 15px;
    }

    .sidebar .logo {
        margin-bottom: 15px;
    }

    .navigation {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .navigation .nav-link {
        flex: 1 1 100px;
        text-align: center;
    }

    .page-section {
        width: 100%;
        min-width: 0;
        padding: 20px 15px;
    }

    .header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .balance-section,
    .overview,
    .insights-grid {
        width: 100%;
        min-width: 0;
    }

    .overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.overview-card {
    padding: 16px;
    min-width: 0;
}

.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;
}

    .overview-card {
        min-width: 0;
        padding: 15px;
    }

    .insights-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.analytics-card,
.savings-card {
    width: 100%;
    min-width: 0;
    padding: 20px 16px;
    box-sizing: border-box;
    border-radius: 15px;
}

.analytics-card h2,
.savings-card h2 {
    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;
}

.progress-bar,
.goal-bar {
    height: 8px;
}
    .analytics-card,
    .savings-card,
    .balance-card {
    background: linear-gradient(135deg, #102B4E, #1C4D7C);
    color: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 12px 30px rgba(16, 43, 78, 0.18);
    position: relative;
    overflow: hidden;
}

.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;
}

    .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;
}

    .transactions table {
        min-width: 600px;
    }

    .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 Savings Goals Visibility */

@media (max-width: 600px) {

    .savings-card {
        background-color: #FFFFFF;
        color: #102B4E;
    }

    .savings-card h2 {
        color: #102B4E;
    }

    .savings-card #dashboard-savings-goals {
        color: #334155;
    }

    .savings-card .goal-item {
        color: #102B4E;
        background-color: #F7F9FC;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid #E8EDF3;
    }

    .savings-card .goal-info {
        color: #102B4E;
    }

    .savings-card .goal-info strong {
        color: #102B4E;
    }

    .savings-card .goal-info span,
    .savings-card .goal-item small {
        color: #64748B;
    }

}
.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}


}
/* =================================
   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: #FFFFFF !important;
        background: transparent !important;
    }
}
@media (max-width: 600px) {

    .header {
        align-items: flex-start !important;
        text-align: left;
    }
}
@media (max-width: 600px) {
    
}
@media (max-width: 600px) {
    .header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100% !important;
    }
}
@media (max-width: 600px) {
    .header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100% !important;
    }

    .header > div:first-child {
        width: 100% !important;
        text-align: left !important;
    }

    .header > .header-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        align-self: flex-start !important;
        width: 100% !important;
        margin: 15px 0 0 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
}