/* --- Variables & Reset --- */
:root {
    --primary-teal: #1E5631;
    --dark-teal: #143b22;
    --light-teal: #3b8a53;
    --dark-blue: #0f2d1a;
    --accent-copper: #D4AF37;
    --bg-light: #fcfaf5;
    --text-dark: #332d29;
    --text-light: #5c554e;
    --white: #ffffff;
    --border-color: #d1dadd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Banner --- */
.top-banner {
    background: linear-gradient(90deg, #2b7a46 0%, #1a4b2b 100%);
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.top-banner a {
    color: var(--white);
}

.top-banner a:hover {
    text-decoration: underline;
}

/* --- Header --- */
.main-header {
    background-color: var(--white);
    padding-top: 20px;
    border-bottom: 1px solid var(--bg-light);
    position: relative;
    z-index: 10;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
}

.logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--dark-teal) 0%, var(--primary-teal) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px double var(--accent-copper);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.logo::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1.5px solid var(--accent-copper);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

.logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px double var(--accent-copper);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    background-color: var(--white);
}

.logo-img:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.logo-text-large {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.logo-text-small {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 110px;
    border: 2px solid var(--dark-teal);
    border-radius: 4px;
    color: var(--dark-teal);
    transition: all 0.3s ease;
    text-align: center;
    padding: 10px;
    background-color: var(--white);
}

.action-btn:hover {
    background-color: var(--dark-teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 106, 120, 0.2);
}

.action-btn svg {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.action-btn:hover svg {
    transform: scale(1.1);
}

.action-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.main-nav {
    background-color: var(--bg-light);
    padding: 15px 0;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-item a {
    color: var(--dark-teal);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item a:hover {
    color: var(--primary-teal);
}

.dropdown-arrow {
    font-size: 0.6rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 80px 0 100px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.adinkra-bg {
    background-image: url('adinkra.png');
    background-repeat: repeat;
    background-size: 300px; /* Adjust scale of pattern */
    background-blend-mode: multiply;
}

.hero-bg-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(250, 243, 224, 0.8) 0%, rgba(252, 250, 245, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-area {
    max-width: 600px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--dark-teal);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 30px;
}

.highlight-text {
    color: var(--light-teal);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-disclaimer {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

/* Apply Badge */
.hero-interactive {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.apply-badge {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(0, 128, 128, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.apply-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 128, 128, 0.4);
}

.apply-badge-icon {
    z-index: 2;
}

.apply-badge-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 15s linear infinite;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.apply-badge-text span {
    position: absolute;
    left: 50%;
    transform-origin: 0 90px; /* half of width/height */
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Calculator Section --- */
.calculator-section {
    padding: 80px 0;
    background-color: var(--white);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.calculator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calculator-card {
    background-color: #f2f5f7;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark-teal);
    margin-bottom: 15px;
}

.calculator-card > p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.slider-group {
    margin-bottom: 30px;
}

.slider-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-teal);
}

.slider-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #d3d3d3;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-teal);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.result-card {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.result-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.calc-actions {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--dark-teal);
    color: var(--white);
    border: 2px solid var(--accent-copper);
}

.btn-primary:hover {
    background-color: #1a4b57;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-teal);
    border: 2px solid var(--dark-teal);
}

.btn-secondary:hover {
    background-color: var(--dark-teal);
    color: var(--white);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
}

.footer-col ul li a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .action-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Page Specific Styles --- */
.page-container {
    padding: 60px 0;
    min-height: 60vh;
    background-color: var(--bg-light);
}

.page-title {
    font-size: 2.5rem;
    color: var(--dark-teal);
    text-align: center;
    margin-bottom: 40px;
}

/* Forms */
.form-card {
    background: var(--white);
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    border-top: 6px solid var(--primary-teal);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-teal);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.form-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.form-links a {
    color: var(--primary-teal);
    font-weight: 600;
}

/* Grid Layouts for Branches & Hub */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-top: 6px solid var(--primary-teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.info-card-image-wrapper {
    margin: -30px -30px 20px -30px;
    overflow: hidden;
    height: 200px;
    border-bottom: 1px solid var(--border-color);
}

.info-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-card:hover .info-card-image {
    transform: scale(1.06);
}

.info-card h3 {
    color: var(--dark-teal);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 10px;
}

/* --- Dashboard Layout --- */
.dashboard-body {
    background-color: var(--bg-light);
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar .logo-container {
    padding: 0 20px;
    margin-bottom: 40px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease, stroke 0.3s ease;
    flex-shrink: 0;
}

.sidebar-link:hover svg {
    transform: translateX(3px) scale(1.05);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--primary-teal);
    color: var(--white);
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.dashboard-header {
    background: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header h2 {
    color: var(--dark-teal);
    font-size: 1.5rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-copper);
}

.dashboard-content {
    padding: 40px;
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-teal);
}

.metric-card.gold {
    border-top: 5px solid var(--accent-copper);
}

.metric-title {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.metric-value {
    color: var(--dark-teal);
    font-size: 2rem;
    font-weight: 700;
}

/* Quick Actions Row */
.quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.action-chip {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--primary-teal);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.action-chip:hover {
    background: var(--primary-teal);
    color: var(--white);
}

/* Transactions Table */
.transactions-section {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.transactions-table th, .transactions-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.transactions-table th {
    color: var(--text-light);
    font-weight: 600;
}

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

.amount-positive { color: var(--primary-teal); font-weight: 600; }
.amount-negative { color: #d9534f; font-weight: 600; }

/* --- Transfers Flow UI --- */
.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-teal);
    border-bottom: 3px solid var(--primary-teal);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border-top: 6px solid #d9534f; /* Red for alert */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.modal-content h3 {
    color: #d9534f;
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Spinner */
.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--primary-teal);
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Admin Portal Styles --- */
.admin-sidebar {
    background-color: #0b2b33; /* Very dark teal/green */
}

.admin-sidebar .sidebar-link {
    color: #a0b2b8;
}

.admin-sidebar .sidebar-link:hover, .admin-sidebar .sidebar-link.active {
    background-color: var(--accent-copper);
    color: #111;
}

.admin-sidebar .logo-text-large {
    color: var(--accent-copper);
}

.admin-sidebar .logo-text-small {
    color: var(--white);
}

.admin-login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.admin-login-card {
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
    border-top: 6px solid #0b2b33;
    text-align: center;
}

.admin-login-card .logo {
    margin: 0 auto 30px auto;
}

/* Responsive Split Grid for Dashboard */
.dashboard-split-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .dashboard-split-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Bank Footer Regulatory badges */
.regulatory-footer {
    background-color: var(--dark-teal);
    color: rgba(255,255,255,0.75);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px 0;
    font-size: 0.8rem;
    text-align: center;
}

.regulatory-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 6px 15px;
    border-radius: 20px;
    color: var(--accent-copper);
    font-weight: 600;
    font-size: 0.75rem;
}

/* Glassmorphic Cards */
.metric-card.gold {
    background: linear-gradient(135deg, var(--accent-copper) 0%, #b8860b 100%) !important;
    border: 1px solid var(--accent-copper) !important;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2) !important;
}

.metric-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Navigation Dropdowns --- */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--white);
    min-width: 245px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-copper);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 999;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark) !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0px;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    text-align: left;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-teal) !important;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-arrow {
    display: inline-block;
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

/* --- Mobile Responsive Navigation & Styles --- */
.menu-toggle, .mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .dashboard-body {
        flex-direction: column;
        min-height: 100vh;
        position: relative;
    }

    /* Sidebar as slide-out menu drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 270px;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    }

    /* Menu drawer open state */
    #menu-checkbox:checked ~ .sidebar {
        transform: translateX(0);
    }

    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        z-index: 1000;
        animation: fadeIn 0.2s ease;
    }
    
    #menu-checkbox:checked ~ .menu-overlay {
        display: block;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Dashboard Header Mobile Fixes */
    .dashboard-header {
        padding: 15px 20px !important;
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center !important;
        gap: 15px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    }

    .dashboard-header h2 {
        font-size: 1.1rem !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
    }

    /* Hamburger Toggle Button */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        border: 1px solid var(--border-color);
        background: var(--bg-light);
        cursor: pointer;
        transition: background 0.2s;
    }

    .menu-toggle:active {
        background: var(--border-color);
    }

    /* Dashboard Content Padding */
    .dashboard-content {
        padding: 20px 15px !important;
    }

    /* Metrics Grid */
    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 25px !important;
    }

    .metric-card {
        padding: 20px !important;
    }

    .metric-value {
        font-size: 1.6rem !important;
    }

    /* Quick Actions Row */
    .quick-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 25px !important;
    }

    .action-chip {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 5px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }

    /* Restricted Banner Alert Mobile Fixes */
    .dashboard-content > div[style*="background: #fdf2f2"] {
        padding: 15px !important;
        margin-bottom: 20px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Responsive Tables */
    .transactions-section {
        padding: 20px 15px !important;
    }

    .transactions-table-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
        border: 1px solid var(--border-color) !important;
        margin-top: 15px !important;
    }

    .transactions-table {
        margin-top: 0 !important;
        min-width: 500px !important; /* Force minimum width to allow scroll rather than squish */
    }

    .transactions-table th, .transactions-table td {
        padding: 12px 10px !important;
        font-size: 0.8rem !important;
    }

    /* --- Mobile Bottom Navigation Bar --- */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 70px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-top: 1px solid var(--border-color) !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 998 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04) !important;
    }

    .bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        color: var(--text-light) !important;
        cursor: pointer !important;
        transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease !important;
        padding: 6px 0 !important;
        position: relative !important;
        text-decoration: none !important;
    }

    .bottom-nav-item:active {
        transform: scale(0.92) !important;
    }

    .bottom-nav-item svg {
        width: 22px !important;
        height: 22px !important;
        stroke: currentColor !important;
        fill: none !important;
        stroke-width: 2 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        transition: stroke 0.25s, transform 0.25s !important;
    }

    .bottom-nav-item span {
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        margin-top: 4px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        transition: color 0.25s !important;
    }

    .bottom-nav-item.active {
        color: var(--primary-teal) !important;
    }

    .bottom-nav-item.active svg {
        transform: translateY(-2px) !important;
        stroke-width: 2.2 !important;
    }

    /* Small active dot indicator at the bottom */
    .bottom-nav-item.active::after {
        content: '' !important;
        position: absolute !important;
        bottom: 6px !important;
        width: 4px !important;
        height: 4px !important;
        background-color: var(--primary-teal) !important;
        border-radius: 50% !important;
        animation: pulseIndicator 1.5s infinite alternate !important;
    }

    @keyframes pulseIndicator {
        0% { transform: scale(1); opacity: 0.7; }
        100% { transform: scale(1.5); opacity: 1; }
    }

    /* Adjust padding on mobile layout to avoid overlapping elements under bottom nav */
    .dashboard-main {
        padding-bottom: 80px !important;
    }

    .dashboard-content {
        padding-bottom: 80px !important;
    }
}
