/* Modern Dashboard Styles - Shared Across All Dashboard Pages */
/* Supports: dashboard.html, home.html, applications.html, banking.html, account.html */
/* Enhanced with world-class design improvements */

/* CSS Variables for consistency */
:root {
    --dashboard-primary: #1E2C81;
    --dashboard-secondary: #3949AB;
    --dashboard-accent: #1E2C81;
    --dashboard-accent-light: rgba(30, 44, 129, 0.1);
    --dashboard-accent-gradient: linear-gradient(135deg, #1E2C81 0%, #3949AB 100%);
    /* Keep green for branding where needed */
    --dashboard-green: #61A418;
    --dashboard-green-light: rgba(97, 164, 24, 0.1);
    --dashboard-bg: #f8f9fa;
    --dashboard-card-bg: #ffffff;
    --dashboard-text-dark: #18181A;
    --dashboard-text-muted: #636363;
    --dashboard-text-light: #888888;
    --dashboard-border: #e0e0e0;
    --dashboard-border-light: #f0f0f0;

    /* Enhanced layered shadows for depth */
    --dashboard-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06);
    --dashboard-shadow-hover:
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.1);
    --dashboard-shadow-lg:
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.12);

    --dashboard-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --dashboard-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --dashboard-link-color: #1E2C81;

    /* Consistent spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Font families */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-accent: 'Poppins', sans-serif;

    /* Border radius scale */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Status colors */
    --status-pending-bg: #FFF8E6;
    --status-pending-text: #B8860B;
    --status-pending-dot: #F5A623;
    --status-funded-bg: #E8F5E9;
    --status-funded-text: #2E7D32;
    --status-funded-dot: #4CAF50;
    --status-review-bg: #E3F2FD;
    --status-review-text: #1565C0;
    --status-review-dot: #2196F3;
    --status-processing-bg: #F3E5F5;
    --status-processing-text: #7B1FA2;
    --status-processing-dot: #9C27B0;
}

/* Main Container */
.home-container {
    background-color: var(--dashboard-bg) !important;
    margin-top: 85px;
    padding: 3.5rem 2rem 2rem 2rem;
    min-height: calc(100vh - 85px);
}

.nav-link {
    display: flex;
}
/* Sidebar Styles */
.sidebar {
    display: flex;
}

.sidepanel {
    background-color: transparent;
    width: 280px;
    padding: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 140px;
    height: fit-content;
    align-self: flex-start;
}

.sidepanel .menu-item {
    list-style: none;
}

.sidepanel .menu-item:not(:last-child) {
    margin-bottom: 0;
}

.sidepanel .menu-item a {
    font-size: 16px;
    color: var(--dashboard-text-dark);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    transition: var(--dashboard-transition);
    text-decoration: none;
}

.sidepanel .menu-item:hover a {
    color: var(--dashboard-primary);
    background-color: var(--dashboard-accent-light);
}

.sidepanel .menu-item.active-option {
    background-color: var(--dashboard-card-bg);
    border-left: 4px solid var(--dashboard-primary);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.sidepanel .menu-item.active-option a {
    color: var(--dashboard-primary);
    font-weight: 600;
}

.sidepanel .menu-item img {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
}

/* Sidebar Font Awesome Icons */
.sidebar-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    color: var(--dashboard-text-muted);
}

.sidepanel .menu-item:hover .sidebar-icon,
.sidepanel .menu-item.active-option .sidebar-icon {
    color: var(--dashboard-primary);
}

.sidepanel button {
    margin: 1rem 1.5rem 0;
}

/* Applications Badge */
.applications-chip {
    background-color: var(--dashboard-primary);
    border-radius: 50%;
    margin-left: auto;
    margin-right: 0.5rem;
    color: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
}

/* Main Applications Area */
.applications-div {
    background: var(--dashboard-card-bg);
    padding: 2rem;
    padding-bottom: 3rem;
    width: 100%;
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content width */
    border-radius: var(--radius-lg);
    box-shadow: var(--dashboard-shadow);
    margin-right: 2rem;
}

/* Typography */
.dashboard-label {
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    color: var(--dashboard-text-dark);
    margin: 0;
}

.dashboard-label-2 {
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    color: var(--dashboard-text-dark);
    margin: 1.5rem 0 1rem;
}

/* Dashboard Cards */
.dashboard-card {
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    box-shadow: var(--dashboard-shadow);
    padding: 1.5rem;
    background: var(--dashboard-card-bg);
    transition: var(--dashboard-transition);
    height: 100%;
}

.dashboard-card:hover {
    box-shadow: var(--dashboard-shadow-hover);
    transform: translateY(-2px);
}

.dashboard-top-div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Application Cards */
.app-card {
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    box-shadow: var(--dashboard-shadow);
    width: 100%;
    padding: 1.25rem;
    background: var(--dashboard-card-bg);
    margin-bottom: 1rem;
    transition: var(--dashboard-transition);
}

.app-card:hover {
    box-shadow: var(--dashboard-shadow-hover);
    transform: translateY(-2px);
}

.app-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-card-content > div:first-child {
    flex: 1;
    min-width: 0;
}

.app-card-content .text-muted-sm {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Application date styling */
.app-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--dashboard-text-muted);
    margin-top: 6px;
}

.app-card-date i {
    font-size: 12px;
    color: var(--dashboard-text-light);
}

/* Funded Application Item */
.funded-app-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.funded-app-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.funded-app-amount {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-accent);
    color: var(--dashboard-text-muted);
}

.app-advance-amount {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--dashboard-text-dark);
    margin-bottom: 0.5rem;
}

.app-advance-amount-2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dashboard-text-muted);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
}

/* Existing Applications */
.existing-applications {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.existing-applications-2 {
    display: grid;
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar Styling */
.existing-applications-2::-webkit-scrollbar {
    width: 6px;
}

.existing-applications-2::-webkit-scrollbar-track {
    background: var(--dashboard-bg);
    border-radius: 3px;
}

.existing-applications-2::-webkit-scrollbar-thumb {
    background: var(--dashboard-border);
    border-radius: 3px;
}

.existing-applications-2::-webkit-scrollbar-thumb:hover {
    background: var(--dashboard-text-muted);
}

/* Button Styles */
.new-btn {
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    padding: 0 1.5rem;
    border-radius: 6px;
    transition: var(--dashboard-transition);
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

.new-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Header Spacing */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Modal Improvements */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-body {
    padding: 2rem;
    color: var(--dashboard-text-dark);
}

.details-div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.details-div > div {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dashboard-border);
}

.close {
    color: var(--dashboard-text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--dashboard-transition);
}

.close:hover,
.close:focus {
    color: var(--dashboard-text-dark);
}

/* Profile Icon */
.profile-icon {
    display: block;
    margin-left: 18.5px;
}

/* Dashboard Collapse (Mobile Menu) */
.dashboard-collapse {
    display: none;
}

/* Mobile Logout Button - Consistent styling */
.navbar-nav .theme-btn.dashboard-collapse {
    font-size: 14px !important;
    height: 40px !important;
    line-height: 40px !important;
    margin: 1rem 0;
    width: 100%;
    text-align: center;
}

/* Fade In Animation */
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.fade-in {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar {
        flex-direction: column;
    }

    .sidepanel {
        display: none;
    }

    .applications-div {
        padding: 1.5rem;
        margin-right: 0;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 991px) {
    .dashboard-collapse {
        display: block;
    }

    .profile-icon {
        display: none;
    }

    .home-container {
        padding: 0 1rem 2rem 1rem;
    }

    .applications-div {
        margin: 0;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 768px) {
    .home-container {
        margin-top: 60px;
        padding: 1rem 0 1rem 0;
    }

    .dashboard-label {
        font-size: 24px;
    }

    .dashboard-label-2 {
        font-size: 20px;
    }

    .dashboard-top-div {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .applications-div {
        padding: 1rem;
        margin: 0;
        border-radius: 0;
    }

    .app-card {
        padding: 1rem;
    }

    /* Tablet app card improvements */
    .app-card-content {
        gap: 0.75rem;
    }

    .app-advance-amount-2 {
        font-size: 20px;
    }

    .home-header {
        flex-direction: column;
        align-items: stretch;
    }

    .home-header .new-btn {
        width: 100%;
        text-align: center;
    }

    .dashboard-card {
        padding: 1.25rem;
    }

    .app-advance-amount-2 {
        font-size: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .modal {
        padding-top: 30px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .details-div {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .dashboard-label {
        font-size: 20px;
    }

    .dashboard-label-2 {
        font-size: 18px;
    }

    .new-btn {
        font-size: 13px;
        height: 36px;
        line-height: 36px;
        padding: 0 1rem;
    }

    .app-advance-amount {
        font-size: 16px;
    }

    .app-advance-amount-2 {
        font-size: 18px;
    }

    /* Improved mobile app cards */
    .app-card {
        padding: 1rem;
    }

    .app-card-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .app-card-content > div:first-child {
        width: 100%;
    }

    .app-card-content > .status-dot {
        align-self: flex-end;
    }

    .existing-applications-2 {
        max-height: 150px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.is-flex {
    display: flex;
}

.is-block {
    display: block;
}

.is-relative {
    position: relative;
}

.ml-10 {
    margin-left: 10px;
}

.text-end {
    text-align: right;
}

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .footer,
    .new-btn,
    button {
        display: none !important;
    }

    .applications-div {
        padding: 0;
    }

    .app-card {
        page-break-inside: avoid;
    }
}

/* ========================================
   SHARED COMPONENTS FOR ALL DASHBOARD PAGES
   ======================================== */

/* Table Components (home.html, applications.html) */
.table-divisions {
    display: grid;
    grid-template-columns: 200px 100px 100px 100px 1fr;
    gap: 0.5rem;
}

.table-headers {
    display: grid;
    grid-template-columns: 200px 100px 100px 100px 1fr;
    margin: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    font-size: 14px;
    color: var(--dashboard-text-muted);
    font-family: var(--font-body);
}

.table-div {
    width: 100%;
    color: var(--dashboard-text-dark);
    border: 1px solid var(--dashboard-border);
    box-shadow: var(--dashboard-shadow);
    padding: 1rem;
    border-radius: 12px;
    overflow: auto;
    background: var(--dashboard-card-bg);
}

.table-div table {
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
}

.table-div tbody {
    display: inline-block;
    width: 100%;
    overflow-y: auto;
    max-height: 525px;
}

.table-div tr {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    transition: var(--dashboard-transition);
}

.table-div tr:hover {
    background-color: rgba(97, 164, 24, 0.05);
}

.td-status {
    background-color: #EDEDED;
    padding: 4px 8px;
    height: fit-content;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: var(--dashboard-text-dark);
    white-space: nowrap;
}

.empty-table-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--dashboard-text-muted);
    font-size: 16px;
    font-family: var(--font-heading);
    display: block;
    width: 100%;
}

/* Mobile Table Rows */
.mobile-row {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--dashboard-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    background: var(--dashboard-card-bg);
    box-shadow: var(--dashboard-shadow);
}

.mobile-row-label {
    font-weight: 600;
    font-size: 12px;
    color: var(--dashboard-text-muted);
    text-transform: uppercase;
}

.mobile-row-value {
    font-size: 14px;
    color: var(--dashboard-text-dark);
    margin-bottom: 0.5rem;
}

/* Form Components (banking.html, account.html) */
.accnt-label {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    font-weight: 600;
    color: var(--dashboard-text-dark);
    font-family: 'Roboto', sans-serif;
}

.accnt-input {
    height: 40px !important;
    padding: 0 1rem;
    border: 2px solid var(--dashboard-border);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--dashboard-transition);
    font-family: 'Roboto', sans-serif;
}

.accnt-input:focus {
    outline: none;
    border-color: var(--dashboard-accent);
    box-shadow: 0 0 0 3px rgba(97, 164, 24, 0.1);
}

.fullwidth {
    width: 100%;
}

/* Password Toggle (account.html) */
.toggle-password {
    position: absolute;
    top: 37px;
    right: 17px;
    cursor: pointer;
    color: var(--dashboard-text-muted);
    transition: var(--dashboard-transition);
}

.toggle-password:hover {
    color: var(--dashboard-accent);
}

/* Profile Image Preview (account.html) */
.image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.preview-div {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    border: 2px dashed var(--dashboard-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--dashboard-transition);
}

.preview-div:hover {
    border-color: var(--dashboard-accent);
    background-color: rgba(97, 164, 24, 0.05);
}

.preview {
    font-size: 12px;
    color: var(--dashboard-text-muted);
    text-align: center;
}

.img-div {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    display: none;
    object-fit: cover;
    border: 2px solid var(--dashboard-border);
}

/* Document List Items (banking.html) */
.statement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.statement-item:hover {
    background: #f1f3f4;
}

.statement-item a {
    color: var(--dashboard-accent);
    text-decoration: none;
    font-weight: 500;
}

.statement-item i {
    color: var(--dashboard-text-muted);
    font-size: 16px;
}

/* Dropzone Styling (banking.html) */
.dropzone-area {
    border: 2px dashed var(--dashboard-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--dashboard-transition);
    background: var(--dashboard-bg);
}

.dropzone-area:hover,
.dropzone-area.dragover {
    border-color: var(--dashboard-accent);
    background-color: rgba(97, 164, 24, 0.05);
}

/* Outlined Button Style */
.theme-btn-outlined_alt {
    background: transparent;
    border: 2px solid var(--dashboard-accent);
    color: var(--dashboard-accent);
}

.theme-btn-outlined_alt:hover {
    background: var(--dashboard-accent);
    color: white;
}

/* No Applications Message */
.no-pending-applications {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--dashboard-text-muted);
}

/* Ion Icons Sizing */
ion-icon {
    font-size: 24px;
    vertical-align: middle;
}

/* Inline Label (common pattern) */
.inline-label {
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: var(--dashboard-text-dark);
    margin-bottom: 1rem;
}

/* Section Divider */
.section-divider {
    border-top: 2px solid var(--dashboard-border);
    margin: 2rem 0;
}

/* Status Indicators */
.status-pending {
    background-color: #FFF3CD;
    color: #856404;
}

.status-funded {
    background-color: #D4EDDA;
    color: #155724;
}

.status-review {
    background-color: #D1ECF1;
    color: #0C5460;
}

/* Responsive Table (Mobile) */
@media (max-width: 991px) {
    .table-headers,
    .table-divisions {
        display: none;
    }

    .table-div tbody {
        display: block;
        overflow-y: visible;
        max-height: none;
    }

    .mobile-row {
        display: flex;
    }
}

@media (max-width: 768px) {
    .table-div {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .accnt-input {
        height: 44px !important;
    }

    .preview-div,
    .img-div {
        height: 70px;
        width: 70px;
    }

    .statement-item {
        padding: 0.5rem 0.75rem;
        font-size: 13px;
    }

    .no-pending-applications {
        font-size: 20px;
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .inline-label {
        font-size: 18px;
    }

    .mobile-row {
        padding: 0.75rem;
    }

    .mobile-row-value {
        font-size: 13px;
    }
}

/* ========================================
   SHARED TYPOGRAPHY & COMPONENTS
   ======================================== */

/* Page Title - for main section headers */
.page-title {
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    margin-bottom: 1rem;
    color: var(--dashboard-text-dark);
}

/* Table Header Labels */
.table-header-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--dashboard-text-dark);
    font-family: 'Roboto', sans-serif;
}

/* ========================================
   EMPTY STATE COMPONENT
   ======================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dashboard-text-muted);
    background: var(--dashboard-card-bg);
    border-radius: 12px;
    border: 1px solid var(--dashboard-border);
    box-shadow: var(--dashboard-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    color: var(--dashboard-text-muted);
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0.75rem;
    color: var(--dashboard-text-dark);
}

.empty-state-text {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    color: var(--dashboard-text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
    line-height: 1.5;
}

.empty-state .theme-btn {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .empty-state {
        padding: 3rem 1.5rem;
        min-height: 250px;
    }

    .empty-state-icon {
        font-size: 64px;
    }

    .empty-state-title {
        font-size: 18px;
    }

    .empty-state-text {
        font-size: 14px;
    }
}

/* ========================================
   CONSISTENT SECTION COMPONENTS
   ======================================== */

/* Section Card - for bordered sections like Bank Account Details */
.section-card {
    border: 1px solid var(--dashboard-border);
    border-radius: 10px;
    padding: var(--space-md) var(--space-lg);
    background: var(--dashboard-card-bg);
    margin-bottom: var(--space-lg);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Only add bottom margin when followed by visible content */
.section-card-header + *:not(.hidden) {
    margin-top: var(--space-md);
}

.section-card-title {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--dashboard-text-dark);
    margin: 0;
}

.section-card-title .success-badge {
    color: #0050b2;
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   CONSISTENT TYPOGRAPHY CLASSES
   ======================================== */

/* Welcome/Large Title - for main welcome messages */
.welcome-title {
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    color: var(--dashboard-text-dark);
    margin: 0 0 var(--space-sm) 0;
}

/* Stat Number - for large statistics */
.stat-number {
    font-size: 32px;
    font-weight: 600;
    font-family: var(--font-accent);
    color: var(--dashboard-text-dark);
    line-height: 1.2;
}

.stat-number-lg {
    font-size: 24px;
    font-weight: 600;
    font-family: var(--font-accent);
    color: var(--dashboard-text-dark);
}

.stat-number-secondary {
    color: var(--dashboard-text-light);
    font-family: var(--font-accent);
    font-weight: 600;
}

/* Card Label - for card section titles */
.card-label {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 14px;
    color: var(--dashboard-text-dark);
    margin-bottom: var(--space-xs);
}

/* Subtext */
.text-muted-sm {
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-body);
    color: var(--dashboard-text-muted);
}

/* Link Styles */
.dashboard-link {
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--dashboard-link-color);
    text-decoration: none;
    transition: var(--dashboard-transition);
}

.dashboard-link:hover {
    color: var(--dashboard-accent);
    text-decoration: underline;
}

.dashboard-link-lg {
    font-size: 14px;
}

/* ========================================
   CONSISTENT BUTTON SIZES
   ======================================== */

.btn-sm {
    font-size: 14px !important;
    height: 35px !important;
    line-height: 35px !important;
    padding: 0 var(--space-lg) !important;
}

.btn-md {
    font-size: 14px !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 var(--space-lg) !important;
}

.btn-icon {
    width: 76px;
    line-height: normal;
    padding: 0 !important;
}

/* ========================================
   CONSISTENT STATUS BADGES
   ======================================== */

.status-badge {
    background-color: var(--dashboard-border-light);
    padding: 2px 8px;
    height: fit-content;
    border-radius: 3px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    font-family: var(--font-body);
    color: var(--dashboard-text-dark);
    white-space: nowrap;
}

.status-badge-success {
    background-color: #D4EDDA;
    color: #155724;
}

.status-badge-warning {
    background-color: #FFF3CD;
    color: #856404;
}

.status-badge-info {
    background-color: #D1ECF1;
    color: #0C5460;
}

/* ========================================
   FORM SECTION STYLING
   ======================================== */

.form-section {
    margin-bottom: var(--space-xl);
}

.form-section-title {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--dashboard-text-dark);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dashboard-text-dark);
    font-family: var(--font-body);
    margin-bottom: 6px;
    display: block;
}

.form-input {
    height: 40px;
    padding: 0 var(--space-md);
    border: 1px solid var(--dashboard-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--dashboard-transition);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--dashboard-accent);
    box-shadow: 0 0 0 3px rgba(97, 164, 24, 0.1);
}

/* ========================================
   CONSISTENT SPACING UTILITIES
   ======================================== */

.mt-section { margin-top: var(--space-xl); }
.mb-section { margin-bottom: var(--space-xl); }
.mt-card { margin-top: var(--space-lg); }
.mb-card { margin-bottom: var(--space-lg); }
.mt-element { margin-top: var(--space-md); }
.mb-element { margin-bottom: var(--space-md); }

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

@media (max-width: 768px) {
    .welcome-title {
        font-size: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-number-lg {
        font-size: 20px;
    }

    .section-card-title {
        font-size: 18px;
    }

    .section-card {
        padding: var(--space-md);
    }

    .form-section-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-number-lg {
        font-size: 18px;
    }

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

/* ========================================
   ACCOUNT PAGE PROFILE FORM
   ======================================== */

.profile-form-grid {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.profile-image-section {
    width: 140px;
    text-align: center;
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.profile-image-section .image-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 0.75rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--dashboard-border);
    background: #f8f9fa;
    display: block;
}

.profile-image-section .image-preview img,
.profile-image-section .image-preview .img-div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
}

.profile-fields-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-fields-section .form-row {
    display: flex;
    gap: 1rem;
}

.profile-fields-section .form-row .form-group {
    flex: 1;
}

.profile-fields-section .form-group {
    margin-bottom: 0;
}

.profile-fields-section .form-control {
    padding: 0.75rem 1rem;
    height: 48px;
    font-size: 15px;
}

.loan-details-widget .form-control {
    height: 48px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .profile-form-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-image-section {
        width: 100%;
        padding-top: 0;
    }

    .profile-fields-section {
        width: 100%;
    }

    .profile-fields-section .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }

    .profile-fields-section .form-group {
        width: 100%;
    }
}

/* ========================================
   PAGE HEADER COMPONENT
   ======================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--dashboard-border-light);
}

.page-header-content {
    flex: 1;
    min-width: 200px;
}

.page-header .page-title {
    margin-bottom: var(--space-xs);
}

.page-header-subtitle {
    font-size: 14px;
    color: var(--dashboard-text-muted);
    font-family: var(--font-body);
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .new-btn {
        flex: 1;
        text-align: center;
    }
}

/* ========================================
   LOADING SKELETON STATES
   ======================================== */

.skeleton {
    background: linear-gradient(90deg,
        var(--dashboard-border-light) 25%,
        var(--dashboard-bg) 50%,
        var(--dashboard-border-light) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-sm);
}

.skeleton-title {
    height: 28px;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-card {
    height: 120px;
    border-radius: var(--radius-lg);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   IMPROVED FOCUS STATES (Accessibility)
   ======================================== */

.new-btn:focus-visible,
.theme-btn:focus-visible,
.form-input:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--dashboard-accent);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--dashboard-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ========================================
   CARD VARIANTS
   ======================================== */

/* Highlighted/Featured Card */
.dashboard-card--featured {
    border-color: var(--dashboard-accent);
    border-width: 2px;
}

/* Compact Card */
.dashboard-card--compact {
    padding: var(--space-md);
}

/* Interactive Card */
.dashboard-card--interactive {
    cursor: pointer;
}

.dashboard-card--interactive:hover {
    border-color: var(--dashboard-accent);
}

/* ========================================
   NOTIFICATION BADGE
   ======================================== */

.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background-color: #E74C3C;
    border-radius: 50%;
    border: 2px solid var(--dashboard-card-bg);
}

/* ========================================
   IMPROVED TABLE ROWS
   ======================================== */

.table-row-highlight {
    background-color: rgba(97, 164, 24, 0.08);
}

.table-row-clickable {
    cursor: pointer;
}

.table-row-clickable:hover {
    background-color: rgba(97, 164, 24, 0.08);
}

/* ========================================
   TOAST/ALERT MESSAGES
   ======================================== */

.toast-message {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: var(--space-md) var(--space-lg);
    background: var(--dashboard-text-dark);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--dashboard-shadow-hover);
    z-index: 1001;
    animation: slideInUp 0.3s ease;
    font-family: var(--font-body);
    font-size: 14px;
}

.toast-message--success {
    background: #155724;
}

.toast-message--error {
    background: #721C24;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   IMPROVED EMPTY STATE VARIANTS
   ======================================== */

.empty-state--compact {
    padding: var(--space-xl) var(--space-lg);
    min-height: auto;
}

.empty-state--inline {
    flex-direction: row;
    text-align: left;
    gap: var(--space-lg);
    padding: var(--space-lg);
    min-height: auto;
}

.empty-state--inline .empty-state-icon {
    font-size: 48px;
    margin-bottom: 0;
}

.empty-state--inline .empty-state-text {
    margin-bottom: 0;
}

/* ========================================
   PASSWORD VALIDATION ICONS
   ======================================== */

.pwd-icon {
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.pwd-icon-valid {
    color: #28a745;
}

.pwd-icon-invalid {
    color: #dc3545;
}

/* ========================================
   CONTENT DIVIDER
   ======================================== */

.content-divider {
    height: 1px;
    background: var(--dashboard-border-light);
    margin: var(--space-xl) 0;
}

.content-divider--with-text {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--dashboard-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-divider--with-text::before,
.content-divider--with-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--dashboard-border-light);
}

/* ========================================
   QUICK ACTIONS TOOLBAR
   ======================================== */

.quick-actions {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--dashboard-bg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--dashboard-card-bg);
    border: 1px solid var(--dashboard-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--dashboard-text-dark);
    cursor: pointer;
    transition: var(--dashboard-transition);
}

.quick-action-btn:hover {
    border-color: var(--dashboard-accent);
    color: var(--dashboard-accent);
}

.quick-action-btn i {
    font-size: 14px;
}

/* ========================================
   MOBILE IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Better touch targets */
    .sidepanel .menu-item a {
        padding: 1rem 1.5rem;
        min-height: 48px;
    }

    /* Stack quick actions */
    .quick-actions {
        flex-wrap: wrap;
    }

    .quick-action-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    /* Toast positioning */
    .toast-message {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* ========================================
   PRINT IMPROVEMENTS
   ======================================== */

@media print {
    .page-header-actions,
    .quick-actions,
    .toast-message {
        display: none !important;
    }

    .dashboard-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .page-title {
        font-size: 24px;
    }
}

/* ========================================
   ENHANCED UX - FLOATING HEADER WITH BLUR
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--dashboard-transition);
}

.header .header-menu {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header .header-menu.navbar_fixed {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ========================================
   ENHANCED UX - STAT CARDS WITH ICONS
   ======================================== */

.stat-card {
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, var(--dashboard-card-bg) 0%, #fafafa 100%);
    display: flex;
    flex-direction: column;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: var(--dashboard-accent-gradient);
    opacity: 0.08;
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: var(--dashboard-transition);
}

.stat-card:hover::before {
    opacity: 0.12;
    transform: translate(25%, -25%) scale(1.1);
}

.stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--dashboard-primary);
    color: white;
    font-size: 20px;
    margin-bottom: var(--space-md);
}

.stat-card-icon.stat-icon-secondary {
    background: #5C6BC0;
}

.stat-card-icon.stat-icon-warning {
    background: #F5A623;
}

.stat-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-card-content > .mt-card:last-child {
    margin-top: auto;
}

.stat-card-value {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-accent);
    color: var(--dashboard-text-dark);
    line-height: 1.1;
    margin-bottom: var(--space-xs);
}

.stat-card-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dashboard-text-muted);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-sublabel {
    font-size: 13px;
    color: var(--dashboard-text-light);
    margin-top: var(--space-xs);
}

/* ========================================
   ENHANCED UX - STATUS DOTS & BADGES
   ======================================== */

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    white-space: nowrap;
}

.status-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot--pending {
    background: var(--status-pending-bg);
    color: var(--status-pending-text);
}

.status-dot--pending::before {
    background: var(--status-pending-dot);
}

.status-dot--funded,
.status-dot--success {
    background: var(--status-funded-bg);
    color: var(--status-funded-text);
}

.status-dot--funded::before,
.status-dot--success::before {
    background: var(--status-funded-dot);
    animation: none;
}

.status-dot--review {
    background: var(--status-review-bg);
    color: var(--status-review-text);
}

.status-dot--review::before {
    background: var(--status-review-dot);
}

.status-dot--processing {
    background: var(--status-processing-bg);
    color: var(--status-processing-text);
}

.status-dot--processing::before {
    background: var(--status-processing-dot);
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }
}

/* ========================================
   ENHANCED UX - MICRO-INTERACTIONS
   ======================================== */

/* Button press effect */
.new-btn,
.theme-btn {
    position: relative;
    transition: var(--dashboard-transition);
}

.new-btn:active,
.theme-btn:active {
    transform: scale(0.97) translateY(1px);
}

/* Buttons use flat colors to match original styling */

/* Enhanced card hover */
.dashboard-card,
.app-card,
.section-card {
    transition: var(--dashboard-transition);
}

.dashboard-card:hover,
.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dashboard-shadow-hover);
}

/* Link hover underline animation */
.dashboard-link {
    position: relative;
    display: inline-block;
}

.dashboard-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dashboard-accent);
    transition: width 0.3s ease;
}

.dashboard-link:hover::after {
    width: 100%;
}

.dashboard-link:hover {
    text-decoration: none;
}

/* Ripple effect on interactive elements */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   ENHANCED UX - SIDEBAR NAVIGATION
   ======================================== */

.sidepanel .menu-item {
    position: relative;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-right: var(--space-md);
    transition: var(--dashboard-transition);
}

.sidepanel .menu-item a {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.sidepanel .menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--dashboard-primary);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.sidepanel .menu-item:hover::before,
.sidepanel .menu-item.active-option::before {
    transform: scaleY(1);
}

.sidepanel .menu-item.active-option {
    background: linear-gradient(90deg, rgba(30, 44, 129, 0.1) 0%, transparent 100%);
    border-left: none;
}

.sidepanel .menu-item.active-option a {
    font-weight: 600;
}

/* Sidebar icon animation */
.sidebar-icon {
    transition: var(--dashboard-transition-fast);
}

.sidepanel .menu-item:hover .sidebar-icon {
    transform: scale(1.15);
}

/* ========================================
   ENHANCED UX - EMPTY STATES
   ======================================== */

.empty-state {
    background: linear-gradient(180deg, var(--dashboard-card-bg) 0%, #fafafa 100%);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--dashboard-accent-light) 0%, transparent 50%);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(5%, 5%) rotate(5deg);
    }
    66% {
        transform: translate(-5%, 3%) rotate(-5deg);
    }
}

.empty-state-icon {
    position: relative;
    z-index: 1;
    opacity: 0.5;
    color: var(--dashboard-text-muted);
    transition: var(--dashboard-transition);
}

.empty-state:hover .empty-state-icon {
    opacity: 0.7;
    transform: scale(1.05);
}

.empty-state-title {
    position: relative;
    z-index: 1;
}

.empty-state-text {
    position: relative;
    z-index: 1;
}

/* ========================================
   ENHANCED UX - CONFETTI CELEBRATION
   ======================================== */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall 3s ease-out forwards;
}

.confetti:nth-child(odd) {
    background: var(--dashboard-accent);
}

.confetti:nth-child(even) {
    background: var(--dashboard-secondary);
}

.confetti:nth-child(3n) {
    background: #5C6BC0;
}

.confetti:nth-child(4n) {
    background: var(--dashboard-green);
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Success celebration state */
.celebration-banner {
    background: var(--dashboard-primary);
    color: white;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.celebration-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.celebration-banner-title {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
}

.celebration-banner-text {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ========================================
   ENHANCED UX - DOCUMENT UPLOAD IMPROVEMENTS
   ======================================== */

.dropzone-enhanced {
    border: 2px dashed var(--dashboard-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    background: linear-gradient(180deg, #fafafa 0%, var(--dashboard-card-bg) 100%);
    transition: var(--dashboard-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dropzone-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dashboard-accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropzone-enhanced:hover,
.dropzone-enhanced.dragover {
    border-color: var(--dashboard-accent);
    transform: scale(1.01);
}

.dropzone-enhanced:hover::before,
.dropzone-enhanced.dragover::before {
    opacity: 0.05;
}

.dropzone-enhanced-icon {
    font-size: 48px;
    color: var(--dashboard-primary);
    margin-bottom: var(--space-md);
    opacity: 0.7;
    transition: var(--dashboard-transition);
}

.dropzone-enhanced:hover .dropzone-enhanced-icon {
    opacity: 1;
    transform: scale(1.1);
}

.dropzone-enhanced-text {
    font-size: 16px;
    color: var(--dashboard-text-dark);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.dropzone-enhanced-subtext {
    font-size: 14px;
    color: var(--dashboard-text-muted);
}

/* Upload progress indicator */
.upload-progress {
    height: 6px;
    background: var(--dashboard-border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-top: var(--space-md);
}

.upload-progress-bar {
    height: 100%;
    background: var(--dashboard-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progress-shimmer 1.5s infinite;
}

@keyframes progress-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Document list item */
.document-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--dashboard-card-bg);
    border: 1px solid var(--dashboard-border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: var(--dashboard-transition);
}

.document-item:hover {
    border-color: var(--dashboard-accent);
    background: var(--dashboard-accent-light);
}

.document-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dashboard-accent-light);
    border-radius: var(--radius-sm);
    color: var(--dashboard-primary);
    font-size: 18px;
}

.document-item-info {
    flex: 1;
    min-width: 0;
}

.document-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dashboard-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-item-meta {
    font-size: 12px;
    color: var(--dashboard-text-muted);
}

.document-item-actions {
    display: flex;
    gap: var(--space-sm);
}

.document-item-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--dashboard-text-muted);
    transition: var(--dashboard-transition-fast);
    cursor: pointer;
    border: none;
    background: transparent;
}

.document-item-action:hover {
    background: var(--dashboard-accent-light);
    color: var(--dashboard-primary);
}

/* ========================================
   ENHANCED UX - MOBILE BOTTOM NAV (Optional)
   ======================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dashboard-card-bg);
    border-top: 1px solid var(--dashboard-border);
    padding: var(--space-sm) 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    color: var(--dashboard-text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: var(--dashboard-transition-fast);
}

.mobile-bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
    color: var(--dashboard-accent);
}

.mobile-fab {
    position: fixed;
    bottom: 80px;
    right: var(--space-lg);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--dashboard-primary);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--dashboard-shadow);
    border: none;
    cursor: pointer;
    z-index: 999;
    transition: var(--dashboard-transition);
}

.mobile-fab:hover {
    transform: scale(1.1);
    box-shadow: var(--dashboard-shadow-hover);
}

.mobile-fab:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    .mobile-fab {
        display: flex;
    }

    /* Add padding to prevent content from being hidden behind bottom nav */
    .home-container {
        padding-bottom: 80px;
    }
}

/* ========================================
   ENHANCED UX - SMOOTH LOADING STATES
   ======================================== */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--dashboard-border-light);
    border-top-color: var(--dashboard-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton loading for cards */
.skeleton-card {
    background: linear-gradient(90deg, var(--dashboard-border-light) 25%, #ffffff 50%, var(--dashboard-border-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-lg);
    height: 160px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   ENHANCED UX - TABLE IMPROVEMENTS
   ======================================== */

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    padding: var(--space-md);
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dashboard-text-muted);
    background: var(--dashboard-bg);
    border-bottom: 2px solid var(--dashboard-border);
}

.table-modern tbody tr {
    transition: var(--dashboard-transition-fast);
}

.table-modern tbody tr:hover {
    background: var(--dashboard-accent-light);
}

.table-modern tbody td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--dashboard-border-light);
    font-size: 14px;
    color: var(--dashboard-text-dark);
}

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

/* ========================================
   ENHANCED UX - FORM IMPROVEMENTS
   ======================================== */

.form-input-enhanced {
    height: 48px;
    padding: 0 var(--space-lg);
    border: 2px solid var(--dashboard-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-body);
    background: var(--dashboard-card-bg);
    transition: var(--dashboard-transition);
    width: 100%;
}

.form-input-enhanced:focus {
    outline: none;
    border-color: var(--dashboard-primary);
    box-shadow: 0 0 0 4px var(--dashboard-accent-light);
}

.form-input-enhanced::placeholder {
    color: var(--dashboard-text-light);
}

.form-label-enhanced {
    font-size: 14px;
    font-weight: 600;
    color: var(--dashboard-text-dark);
    margin-bottom: var(--space-sm);
    display: block;
}

/* Password strength indicator */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: var(--space-sm);
}

.password-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--dashboard-border-light);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.password-strength[data-strength="weak"] .password-strength-bar:nth-child(1) {
    background: #E74C3C;
}

.password-strength[data-strength="medium"] .password-strength-bar:nth-child(-n+2) {
    background: #F5A623;
}

.password-strength[data-strength="strong"] .password-strength-bar {
    background: var(--dashboard-green);
}

/* ========================================
   ENHANCED UX - RESPONSIVE REFINEMENTS
   ======================================== */

@media (max-width: 991px) {
    .stat-card-value {
        font-size: 28px;
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .stat-card-value {
        font-size: 24px;
    }

    .celebration-banner {
        padding: var(--space-md) var(--space-lg);
    }

    .celebration-banner-title {
        font-size: 20px;
    }

    .dropzone-enhanced {
        padding: var(--space-xl);
    }

    .dropzone-enhanced-icon {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .status-dot {
        padding: 4px 10px;
        font-size: 12px;
    }

    .status-dot::before {
        width: 6px;
        height: 6px;
    }
}

/* ========================================
   MOBILE ROW LABELS
   ======================================== */

.mobile-row-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dashboard-text-muted);
    display: block;
    margin-bottom: 4px;
}

.mobile-row-value {
    font-size: 14px;
    color: var(--dashboard-text-dark);
    font-weight: 500;
}

/* ========================================
   DROPZONE STYLING OVERRIDES
   ======================================== */

.dropzone {
    background: var(--dashboard-accent-light);
    border: 2px dashed var(--dashboard-primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    min-height: 150px;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dashboard-transition);
    position: relative;
}

.dropzone:hover {
    border-color: var(--dashboard-primary);
    background: var(--dashboard-accent-light);
}

.dropzone.dz-drag-hover {
    border-color: var(--dashboard-primary);
    border-style: dashed;
    background: var(--dashboard-accent-light);
}

.dropzone .dz-message {
    text-align: center;
    margin: 0;
    position: relative;
    width: 100%;
}

.dropzone .dz-message .dz-button {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--dashboard-primary);
    background: none;
    border: none;
    cursor: pointer;
}

.dropzone .dz-message .dz-button:hover {
    text-decoration: underline;
}

.dropzone .dz-message .dz-custom-upload-text {
    font-size: 13px;
    color: var(--dashboard-text-muted);
    margin-top: 0.5rem;
}

.dropzone .dz-message .dz-custom-upload-text span {
    color: var(--dashboard-primary);
    font-weight: 500;
}

/* Dropzone preview items */
.dropzone .dz-preview {
    margin: 0.5rem;
    background: var(--dashboard-bg);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.dropzone .dz-preview .dz-details {
    padding: 0.5rem;
}

.dropzone .dz-preview .dz-filename {
    font-size: 13px;
    color: var(--dashboard-text-dark);
}

.dropzone .dz-preview .dz-size {
    font-size: 12px;
    color: var(--dashboard-text-muted);
}

/* Success and error marks */
.dropzone .dz-preview.dz-success .dz-success-mark {
    opacity: 1;
    background-color: var(--dashboard-green);
    border-radius: 50%;
}

.dropzone .dz-preview.dz-error .dz-error-mark {
    opacity: 1;
    background-color: #E74C3C;
    border-radius: 50%;
}

/* Progress bar */
.dropzone .dz-preview .dz-progress {
    background: var(--dashboard-border-light);
    border-radius: 3px;
    overflow: hidden;
    height: 6px;
    margin-top: 0.5rem;
}

.dropzone .dz-preview .dz-progress .dz-upload {
    background: var(--dashboard-primary);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Remove link */
.dropzone .dz-preview .dz-remove {
    font-size: 12px;
    color: var(--dashboard-text-muted);
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
}

.dropzone .dz-preview .dz-remove:hover {
    color: #E74C3C;
    text-decoration: underline;
}

/* Section card dropzone container */
.section-card .dropzone {
    margin-top: 1rem;
}

/* Fullwidth dropzone variant */
.dropzone.fullwidth {
    width: 100%;
}
