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

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    overflow: auto;
}

/* ========================================
   NAV BAR — Swiss Precision Fintech
   ======================================== */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e2e4ea;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-logo {
    position: relative;
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #1a1a24;
    letter-spacing: -0.5px;
    line-height: 1;
    padding-bottom: 7px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.nav-logo:hover {
    color: #1a1a24;
    text-decoration: none;
    opacity: 0.78;
}

.logo-dot {
    color: #3b7de0;
}

.logo-ai {
    position: absolute;
    right: 1px;
    bottom: 1px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b6b80;
    letter-spacing: 0.5px;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ---- Platform / Company badges (global) ---- */
.platform-badge-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-left: 10px;
    vertical-align: middle;
}
.platform-badge {
    display: inline-block;
    background: #2ca01c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    cursor: pointer;
}
.platform-badge:hover { opacity: 0.85; }
.platform-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    white-space: nowrap;
    z-index: 9999;
}
.platform-dropdown.open { display: block; }
.platform-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}
.platform-dropdown a:hover { background: #f5f5f5; }
.company-badge-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-left: 2px;
    vertical-align: middle;
}
.company-badge {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-badge:hover { opacity: 0.85; }
.company-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    white-space: nowrap;
    z-index: 9999;
}
.company-dropdown.open { display: block; }
.company-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}
.company-dropdown a:hover { background: #f5f5f5; }

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b6b80;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
    color: #1a1a24;
    background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
    color: #1a1a24;
    background: rgba(0, 0, 0, 0.06);
}

.nav-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b7de0, #7b6cf5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-avatar:hover {
    transform: scale(1.05);
}

.sidebar-logo {
    font-size: 28px;
    font-weight: 900;
    color: #90caf9;
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(144, 202, 249, 0.3);
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Global Notifications bell */
.nav-notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b6b80;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-notif-btn:hover {
    color: #1a1a24;
    background: rgba(0, 0, 0, 0.04);
}
.nav-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* Notification dropdown wrapper */
.notif-wrapper {
    position: relative;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    max-height: 420px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a24;
}
.notif-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.notif-mark-all {
    font-size: 0.75rem;
    font-weight: 500;
    color: #5b8def;
    text-decoration: none;
}
.notif-mark-all:hover {
    text-decoration: underline;
}
.notif-clear {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ef4444;
    text-decoration: none;
}
.notif-clear:hover {
    text-decoration: underline;
    color: #dc2626;
}
.notif-list {
    overflow-y: auto;
    flex: 1;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}
.notif-item:hover {
    background: #f7f8fa;
}
.notif-item.unread {
    background: #f0f5ff;
}
.notif-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #3b82f6;
}
.notif-text {
    flex: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.4;
}
.notif-time {
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    color: #999;
    white-space: nowrap;
}
.notif-empty {
    padding: 32px 16px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.user-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b6b80;
    cursor: pointer;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    padding: 4px 0;
    min-width: 140px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.user-menu.open .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: #1a1a24;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.15s;
}

.user-dropdown a:hover {
    background: rgba(0, 0, 0, 0.04);
}

a {
    text-decoration: none;
}

/* nav-btn removed — replaced by .nav-link */

@media (max-width: 768px) {
    .nav-links { display: none; }
    .user-name { display: none; }
    .nav-bar { padding: 0 1rem; }
}

.app-container {
    display: flex;
    min-height: calc(100vh - 56px);
    border-top: none;
    border-bottom: none;
}

/* Content wrapper for banking pages that need Bootstrap-like spacing */
.content-wrapper {
    max-width: none;
    margin: 0;
    padding: 1rem;
    width: 100%;
    overflow-x: auto;
    min-height: calc(100vh - 78px);
}

/* Fix main content sizing for banking pages */
.main-content {
    overflow: auto;
    padding: 0;
}

/* Responsive fixes for banking templates */
.content-wrapper .row {
    margin: 0;
    width: 100%;
}

.content-wrapper .col-xl-8,
.content-wrapper .col-xl-4,
.content-wrapper .col-lg-7,
.content-wrapper .col-lg-5 {
    padding: 0.5rem;
    min-width: 300px;
}

.content-wrapper .card {
    margin-bottom: 1rem;
    max-width: 100%;
}

/* Ensure form elements don't overflow */
.content-wrapper .form-select,
.content-wrapper .form-control {
    max-width: 100%;
    min-width: 200px;
}

/* Excel-like CSV preview table */
.csv-preview-table {
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.csv-preview-table th {
    background-color: #404040 !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
    padding: 8px 6px !important;
    text-align: center;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

.csv-preview-table td {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #555 !important;
    padding: 6px 6px !important;
    vertical-align: top;
}

.csv-preview-table tbody tr:nth-child(even) td {
    background-color: #333;
}

.csv-preview-table tbody tr:hover td {
    background-color: #454545;
}

/* Scrollable table container */
.table-responsive {
    max-height: 300px;
    border: 1px solid #555;
    border-radius: 4px;
}

/* Modal fallback styles (in case Bootstrap doesn't load) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    display: none;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    /* Light theme by default. Individual modals (#matchBillModal,
       #matchUnclearedModal, #changeTypeModal, …) may still override. */
    background-color: #fff;
    color: #111827;
    background-clip: padding-box;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    outline: 0;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    border-bottom-right-radius: calc(0.375rem - 1px);
    border-bottom-left-radius: calc(0.375rem - 1px);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

body.modal-open {
    overflow: hidden;
}

/* Bulk Account Update Modal - Transaction List Styles */
#bulkUpdateTransactionList .bulk-update-txn-item {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.15s ease;
}

#bulkUpdateTransactionList .bulk-update-txn-item:last-child {
    border-bottom: none;
}

#bulkUpdateTransactionList .bulk-update-txn-item:hover {
    background-color: #e9ecef;
}

.bulk-update-txn-grid {
    display: grid;
    grid-template-columns: 90px 100px 1fr 150px;
    gap: 0.75rem;
    align-items: center;
}

/* Grid with checkbox (when more than 2 matches) */
.bulk-update-txn-grid.with-checkbox {
    grid-template-columns: 40px 90px 100px 1fr 150px;
}

.bulk-update-txn-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-update-txn-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bulk-update-txn-date {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

.bulk-update-txn-amount {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 600;
}

.bulk-update-txn-desc {
    font-size: 0.85rem;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulk-update-txn-account {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Flash messages styling */
.flash-messages {
    position: relative;
    z-index: 1000;
    margin: 1rem;
}

.flash-messages .alert {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    color: #e0e0e0;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.flash-messages .alert-success {
    background-color: #1b4332;
    border-color: #2d5016;
    color: #a7f3d0;
}

.flash-messages .alert-danger {
    background-color: #4c1d24;
    border-color: #7c2d12;
    color: #fca5a5;
}

.flash-messages .alert-warning {
    background-color: #451a03;
    border-color: #78350f;
    color: #fed7aa;
}

.flash-messages .alert-info {
    background-color: #1e3a8a;
    border-color: #1d4ed8;
    color: #93c5fd;
}

.footer {
    background-color: #2d2d2d;
    height: 0px;
    border-top: none;
    display: none;
}

.sidebar {
    width: 200px;
    background-color: #2d2d2d;
    border-right: 3px solid #333;
    border-left: 1px solid #444;
    border-radius: 12px;
    margin-left: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

/* Hide sidebar on specific pages */
body.hide-sidebar .sidebar {
    display: none;
}

/* Hide nav links on landing page */
body.landing-page .nav-links {
    display: none;
}

.sidebar h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #e0e0e0;
    text-align: center;
}

.quick-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.quick-actions-header h3 {
    margin-bottom: 0;
    flex-grow: 1;
}

.toggle-quick-actions-btn {
    background: none;
    border: 1px solid #555;
    color: #e0e0e0;
    font-size: 16px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.toggle-quick-actions-btn:hover {
    background-color: #555;
    color: #fff;
}

.view-dropdown-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.view-dropdown-label {
    color: #e0e0e0;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

.view-dropdown-select {
    flex: 1;
    background-color: #383838;
    border: 1px solid #555;
    color: #e0e0e0;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.view-dropdown-select:hover {
    background-color: #404040;
    border-color: #64b5f6;
}

.view-dropdown-select:focus {
    outline: none;
    border-color: #64b5f6;
    background-color: #404040;
}

.btn-placeholder {
    background-color: #404040;
    border: 1px solid #555;
    padding: 8px 12px;
    text-align: left;
    color: #64b5f6;
    cursor: pointer;
    font-size: 14px;
    border-radius: 3px;
}

.btn-placeholder:hover {
    background-color: #555;
    color: #90caf9;
}

.quicklink-btn {
    background: none;
    border: none;
    color: #64b5f6;
    font-size: 12px;
    margin-top: 10px;
    display: block;
    cursor: pointer;
    font-family: Arial, sans-serif;
    text-align: left;
    padding: 0;
}

.quicklink-btn:hover {
    font-weight: bold;
    text-decoration: underline;
}

.quick-actions-box {
    border: 1px solid #555;
    border-radius: 5px;
    padding: 15px;
    background-color: #383838;
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #404040;
    border: 1px solid #555;
    border-radius: 3px;
}

.dark-mode-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.dark-mode-toggle label {
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    margin: 0;
}

.sidebar-status-buttons {
    display: none;  /* Hidden by default */
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

/* Show sidebar status buttons on Bank Results page */
body.show-sidebar-status-buttons .sidebar-status-buttons {
    display: flex;
}

.sidebar-status-btn {
    background-color: #404040;
    border: 1px solid #555;
    color: #64b5f6;
    font-size: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-radius: 3px;
    text-align: left;
    font-family: Arial, sans-serif;
    transition: background-color 0.2s;
    width: 100%;
}

.sidebar-status-btn:hover {
    background-color: #555;
    color: #90caf9;
}

/* Individual button colors */
#sidebar-final-btn {
    color: #4caf50;
    border-color: #4caf50;
}

#sidebar-final-btn:hover {
    background-color: #4caf50;
    color: #fff;
}

#sidebar-client-review-btn {
    color: #ff8c42;
    border-color: #ff8c42;
}

#sidebar-client-review-btn:hover {
    background-color: #ff8c42;
    color: #fff;
}

#sidebar-removed-btn {
    color: #f44336;
    border-color: #f44336;
}

#sidebar-removed-btn:hover {
    background-color: #f44336;
    color: #fff;
}

#sidebar-sent-to-qb-btn {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}

#sidebar-sent-to-qb-btn:hover {
    background-color: #f0f0f0;
    color: #000000;
}

#sidebar-auto-matched-btn {
    color: #2196f3;
    border-color: #2196f3;
}

#sidebar-auto-matched-btn:hover {
    background-color: #2196f3;
    color: #fff;
}

#sidebar-manual-review-btn {
    color: #ffc107;
    border-color: #ffc107;
}

#sidebar-manual-review-btn:hover {
    background-color: #ffc107;
    color: #fff;
}

/* Sidebar batch actions (shown when checkboxes selected) */
.sidebar-batch-actions {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border: 1px solid #1565c0;
    border-radius: 4px;
    background-color: #2d2d2d;
    position: absolute;
    top: 50vh;
    left: 0;
    right: 0;
    margin: 0 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sidebar-batch-label {
    font-size: 18px;
    font-weight: 500;
    color: #0d47a1;
    margin-bottom: 10px;
    padding-bottom: 8px;
    text-align: left;
    border-bottom: 1px solid #999999;
}

.sidebar-batch-actions .btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.sidebar-batch-actions .btn i {
    font-size: 16px;
}

/* Disabled state for sidebar buttons */
.sidebar-status-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

#sidebar-auto-matched-btn:disabled {
    color: #2196f3;
    border-color: #2196f3;
    background-color: transparent;
}

#sidebar-manual-review-btn:disabled {
    color: #ffc107;
    border-color: #ffc107;
    background-color: transparent;
}

#sidebar-final-btn:disabled {
    color: #4caf50;
    border-color: #4caf50;
    background-color: transparent;
}

#sidebar-client-review-btn:disabled {
    color: #ff8c42;
    border-color: #ff8c42;
    background-color: transparent;
}

#sidebar-removed-btn:disabled {
    color: #f44336;
    border-color: #f44336;
    background-color: transparent;
}

#sidebar-sent-to-qb-btn:disabled {
    color: #000000;
    border-color: #000000;
    background-color: #ffffff;
    opacity: 0.5;
}

.sidebar-bottom {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: center;
}

.help-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    padding: 5px 10px;
    text-decoration: underline;
}

.help-btn:hover {
    color: #64b5f6;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
}

.output-section {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
}


.output-content {
    flex: 1;
    background-color: #1a1a1a;
    border: none;
    border-radius: 3px;
    padding: 20px;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttons-bar {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 3px solid #333;
    border-bottom: 3px solid #333;
}

.bar-btn {
    background-color: #2a2a2a;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    opacity: 1;
}

.bar-btn:hover {
    background-color: #404040;
    color: #ffffff;
    border-color: #ffffff;
}

.user-input-section {
    border-top: 3px solid #333;
    padding: 20px;
    background-color: #2d2d2d;
    height: 140px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.input-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
}


.add-files-btn {
    background-color: #404040;
    border: 1px solid #64b5f6;
    color: #64b5f6;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.add-files-btn:hover:not(:disabled) {
    background-color: #64b5f6;
    color: #1a1a1a;
}

.add-files-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
    color: #555;
}

.input-content {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-content textarea {
    width: 70%;
    height: 100%;
    border: 2px solid #555;
    padding: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: vertical;
    border-radius: 12px;
    background-color: #252525;
    color: #e0e0e0;
}

.input-content textarea:focus {
    outline: none;
    border-color: #64b5f6;
}

.smart-banking-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 20px 20px;
}

.smart-banking-title {
    font-size: 28px;
    font-weight: bold;
    color: #90caf9;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 3px rgba(144, 202, 249, 0.2);
}

.smart-banking-box {
    width: 65%;
    height: calc(100% - 100px);
    background-color: #404040;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

.banking-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    padding: 20px 25px;
    border-radius: 6px;
    border-left: 4px solid #64b5f6;
    width: 65%;
    margin-top: 20px;
}

.banking-action-text {
    font-size: 16px;
    color: #e0e0e0;
    font-weight: 500;
}

.banking-action-text .highlight {
    color: #90caf9;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(144, 202, 249, 0.2);
}

.start-btn {
    background: linear-gradient(135deg, #64b5f6 0%, #90caf9 100%);
    border: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.2);
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(100, 181, 246, 0.3);
    background: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
}

.start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.begin-chat-btn {
    background: linear-gradient(135deg, #64b5f6 0%, #90caf9 100%);
    border: none;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 32px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(100, 181, 246, 0.25);
}

.begin-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.35);
    background: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
}

.progress-status-message-1 {
    display: none;
    color: #ffffff;
    font-size: 14px;
    margin-top: 20px;
    padding-left: 25px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    min-height: 20px;
}

/* ========================================
   DASHBOARD — Redesign
   ======================================== */
.dash-page {
    width: 100%;
    padding: 2.5rem clamp(2rem, 4vw, 5rem) 4rem;
    background: #edeef2;
}

.dash-greeting { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; opacity: 0; transform: translateY(8px); animation: dashFadeUp 0.5s ease forwards 0.1s; }
.dash-greeting-text { font-family: 'Outfit', sans-serif; font-weight: 300; font-size: 1.75rem; color: #1a1a24; letter-spacing: -0.5px; }
.dash-greeting-text strong { font-weight: 600; }
.dash-greeting-date { font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; color: #9b9bae; letter-spacing: 0.5px; }
.dash-divider { height: 1px; background: #d8dae2; margin-bottom: 2rem; opacity: 0; animation: dashFadeIn 0.6s ease forwards 0.2s; }

.dash-section-header { display: flex; align-items: center; justify-content: space-between; }
.dash-section-label { font-family: 'Outfit', sans-serif; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.2px; color: #1a1a24; margin-bottom: 0.75rem; }

.dash-card {
    background: #ffffff;
    border: 1px solid #d8dae2;
    border-top: 1px solid rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px -8px rgba(0,0,0,0.08);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.dash-card:hover {
    border-color: #b8bcc8;
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.08), 0 20px 40px -12px rgba(0,0,0,0.1);
}

.dash-top-row { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; margin-bottom: 1.25rem; }
.dash-notes-card { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; }
.dash-notes-card .dash-note-list { flex: 1; }

/* Client Reviews Table */
.dash-reviews-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.dash-reviews-table th {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem; font-weight: 600;
    color: #6b6b80; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid #d8dae2;
}
.dash-reviews-table td {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
    color: #1a1a24; padding: 0.625rem 0.75rem; border-bottom: 1px solid #eef0f4;
}
.dash-reviews-table tbody tr:last-child td { border-bottom: none; }
.dash-reviews-table tbody tr:hover { background: #f8f9fb; }
.dash-review-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.5rem; padding: 0.125rem 0.5rem;
    border-radius: 10px; font-size: 0.8125rem; font-weight: 600;
}
.dash-review-badge.pending { background: #fff3cd; color: #856404; }
.dash-review-badge.done { background: #d4edda; color: #155724; }
.dash-review-client {
    font-size: 0.8125rem; color: #6b6b80; max-width: 180px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-reviews-empty {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9375rem;
    color: #6b6b80; padding: 2rem 0; text-align: center;
}
.dash-add-btn { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0; padding: 0.5rem 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.8125rem; font-weight: 500; color: #3b7de0; background: none; border: none; cursor: pointer; transition: opacity 0.2s; }
.dash-add-btn:hover { opacity: 0.75; }
.dash-tooltip { position: absolute; background: #1a1a24; color: #eeeef2; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem; font-weight: 500; padding: 0.375rem 0.75rem; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; z-index: 100; }
.dash-tooltip.show { opacity: 1; transform: translateY(0); }

/* QB Info */
.dash-qb-info-list { margin-top: 1rem; }
.dash-qb-info-row { display: flex; align-items: baseline; justify-content: space-between; padding: 0.625rem 0; border-bottom: 1px solid #d8dae2; }
.dash-qb-info-row:last-child { border-bottom: none; }
.dash-qb-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.8125rem; font-weight: 500; color: #6b6b80; }
.dash-qb-value { font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; color: #1a1a24; text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-status-connected { color: #1a1a24; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; display: flex; align-items: center; gap: 0.375rem; }
.dash-status-connected.is-connected { color: #2da555; }

/* Notes */
.dash-note-list { margin-top: 1rem; }
.dash-note-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid #d8dae2; }
.dash-note-item:last-child { border-bottom: none; }
.dash-note-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.dash-note-dot.high { background: #d44440; box-shadow: 0 0 6px rgba(212,68,64,0.35); }
.dash-note-dot.medium { background: #c08830; box-shadow: 0 0 6px rgba(192,136,48,0.35); }
.dash-note-content { flex: 1; min-width: 0; }
.dash-note-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.dash-note-when { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem; font-weight: 600; color: #6b6b80; }
.dash-note-type { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.75px; color: #9b9bae; background: rgba(0,0,0,0.04); padding: 0.125rem 0.5rem; border-radius: 3px; }
.dash-note-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.875rem; color: #1a1a24; line-height: 1.5; }

/* Quick Actions */
.dash-quick-actions-section { margin-top: 0; }
.dash-quick-actions-label { margin-bottom: 1rem; opacity: 0; animation: dashFadeIn 0.5s ease forwards 0.4s; }
.dash-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.dash-action-card {
    background: #ffffff;
    border: 1px solid #d8dae2;
    border-top: 1px solid rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px -8px rgba(0,0,0,0.08);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    display: flex; flex-direction: column; gap: 0.75rem;
    position: relative; overflow: hidden;
}
.dash-action-card::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; border-radius: 12px; pointer-events: none; }
.dash-action-card:nth-child(1)::after { background: radial-gradient(ellipse at 50% 100%, rgba(59,125,224,0.06) 0%, transparent 70%); }
.dash-action-card:nth-child(2)::after { background: radial-gradient(ellipse at 50% 100%, rgba(123,108,245,0.06) 0%, transparent 70%); }
.dash-action-card:nth-child(3)::after { background: radial-gradient(ellipse at 50% 100%, rgba(192,136,48,0.06) 0%, transparent 70%); }
.dash-action-card:hover { border-color: #b8bcc8; transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.08), 0 20px 40px -12px rgba(0,0,0,0.1); }
.dash-action-card:hover::after { opacity: 1; }
.dash-action-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.dash-action-icon svg { width: 18px; height: 18px; }
.dash-action-icon.banking { background: rgba(59,125,224,0.1); color: #3b7de0; }
.dash-action-icon.askbooxie { background: rgba(123,108,245,0.1); color: #7b6cf5; }
.dash-action-icon.reports { background: rgba(192,136,48,0.1); color: #c08830; }
.dash-action-label { font-family: 'Outfit', sans-serif; font-size: 0.9375rem; font-weight: 600; color: #1a1a24; }
.dash-action-desc { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem; color: #6b6b80; line-height: 1.5; }
.dash-action-arrow { display: flex; align-items: center; margin-top: auto; padding-top: 0.5rem; color: #9b9bae; transition: color 0.2s, transform 0.2s; }
.dash-action-card:hover .dash-action-arrow { color: #6b6b80; transform: translateX(3px); }
.dash-action-arrow svg { width: 16px; height: 16px; }

/* Stagger animations */
@keyframes dashFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dashFadeIn { from { opacity: 0; } to { opacity: 1; } }
.dash-anim-stagger { opacity: 0; transform: translateY(8px); animation: dashFadeUp 0.5s ease forwards; }
.dash-anim-stagger:nth-child(1) { animation-delay: 0.15s; }
.dash-anim-stagger:nth-child(2) { animation-delay: 0.25s; }
.dash-anim-stagger:nth-child(3) { animation-delay: 0.35s; }
.dash-quick-actions .dash-action-card:nth-child(1) { opacity: 0; transform: translateY(8px); animation: dashFadeUp 0.45s ease forwards 0.45s; }
.dash-quick-actions .dash-action-card:nth-child(2) { opacity: 0; transform: translateY(8px); animation: dashFadeUp 0.45s ease forwards 0.55s; }
.dash-quick-actions .dash-action-card:nth-child(3) { opacity: 0; transform: translateY(8px); animation: dashFadeUp 0.45s ease forwards 0.65s; }

@media (max-width: 768px) {
    .dash-top-row { grid-template-columns: 1fr; }
    .dash-notes-card { grid-column: 1; grid-row: auto; }
    .dash-quick-actions { grid-template-columns: 1fr; }
    .dash-greeting { flex-direction: column; gap: 0.5rem; }
    .dash-greeting-text { font-size: 1.375rem; }
    .dash-page { padding: 1.5rem 1rem 3rem; }
}

/* OLD dashboard styles (kept for reference, can be removed) */
.dashboard-container {
    width: 100%;
    height: 100%;
    padding: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    height: 100%;
    width: 100%;
}

.dashboard-box {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.dashboard-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.box-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #64b5f6;
    padding-bottom: 8px;
}

.accounting-content {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.ledger-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ledger-line.total {
    font-weight: bold;
    background-color: #f8f9fa;
    padding: 12px 8px;
    margin-top: 5px;
    border-radius: 4px;
}

.account-name {
    color: #333;
    flex: 1;
}

.amount {
    font-weight: bold;
    color: #333;
    text-align: right;
    min-width: 120px;
}

.amount.positive {
    color: #28a745;
}

.amount.negative {
    color: #dc3545;
}

.amount.warning {
    color: #fd7e14;
}

.amount.overdue {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 2px 6px;
    border-radius: 3px;
}

.ledger-divider {
    border: none;
    border-top: 2px solid #64b5f6;
    margin: 15px 0 10px 0;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    height: 100%;
    text-align: center;
}

.pie-chart {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: conic-gradient(
        #64b5f6 0% 35%,
        #90caf9 35% 63%,
        #42a5f5 63% 83%,
        #1e88e5 83% 100%
    );
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 4px 0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-text {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.legend-amount {
    color: #666;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
    font-size: 13px;
}

.message-console {
    background-color: #f8f8f8 !important;
    background-image: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.02) 100%);
}

.console-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.console-message {
    background-color: rgba(255,255,255,0.8);
    border-left: 4px solid #64b5f6;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.console-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.console-message.priority-high {
    border-left-color: #dc3545;
}

.console-message.priority-medium {
    border-left-color: #fd7e14;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-type {
    font-size: 12px;
    font-weight: bold;
    color: #64b5f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-date {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.message-text {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.company-info {
    background-color: #f5f7fa !important;
    background-image: linear-gradient(135deg, rgba(100,181,246,0.08) 0%, rgba(144,202,249,0.05) 100%);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}

.info-item {
    background-color: rgba(255,255,255,0.9);
    border-left: 4px solid #64b5f6;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-item.priority-high {
    border-left-color: #90caf9;
    background: linear-gradient(135deg, rgba(144,202,249,0.1) 0%, rgba(255,255,255,0.9) 100%);
}

.info-item.priority-medium {
    border-left-color: #42a5f5;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-type {
    font-size: 12px;
    font-weight: bold;
    color: #64b5f6;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-status {
    font-size: 10px;
    color: #666;
    background-color: #e3f2fd;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-text {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    font-family: 'Arial', sans-serif;
}

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

.edit-btn {
    background: none;
    border: none;
    color: #64b5f6;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    text-transform: lowercase;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    font-weight: bold;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */

body.light-mode {
    background-color: #ffffff !important;
    color: #000000;
}

body.light-mode .main-content {
    background-color: #ffffff !important;
}

/* Light mode nav — already light by default, no overrides needed */

/* Sidebar light mode styling */
body.light-mode .sidebar {
    background-color: rgba(0, 188, 212, 0.1);
    border-right: 1px solid #999999;
    border-left: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    margin-left: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

body.light-mode .quick-actions-header h3 {
    color: #000000;
}

body.light-mode .dark-mode-toggle {
    background-color: #f0f0f0;
    border-color: #999999;
}

body.light-mode .dark-mode-toggle label {
    color: #000000;
}

body.light-mode .toggle-quick-actions-btn {
    color: #64b5f6;
    border-color: #64b5f6;
}

body.light-mode .toggle-quick-actions-btn:hover {
    background-color: #e3f2fd;
    color: #2196f3;
}

/* Sidebar status buttons - light mode with 25% opacity backgrounds */
body.light-mode .sidebar-status-btn {
    color: #000000;
}

body.light-mode #sidebar-auto-matched-btn {
    background-color: rgba(33, 150, 243, 0.25);
    color: #1565c0;
    border-color: #2196f3;
}

body.light-mode #sidebar-auto-matched-btn:hover {
    background-color: rgba(33, 150, 243, 0.4);
    border-color: #0d47a1;
}

body.light-mode #sidebar-manual-review-btn {
    background-color: rgba(255, 193, 7, 0.25);
    color: #f57c00;
    border-color: #ffc107;
}

body.light-mode #sidebar-manual-review-btn:hover {
    background-color: rgba(255, 193, 7, 0.4);
    border-color: #f57c00;
}

body.light-mode #sidebar-final-btn {
    background-color: rgba(76, 175, 80, 0.25);
    color: #2e7d32;
    border-color: #4caf50;
}

body.light-mode #sidebar-final-btn:hover {
    background-color: rgba(76, 175, 80, 0.4);
    border-color: #1b5e20;
}

body.light-mode #sidebar-client-review-btn {
    background-color: rgba(255, 140, 66, 0.25);
    color: #d84315;
    border-color: #ff8c42;
}

body.light-mode #sidebar-client-review-btn:hover {
    background-color: rgba(255, 140, 66, 0.4);
    border-color: #d84315;
}

body.light-mode #sidebar-removed-btn {
    background-color: rgba(244, 67, 54, 0.25);
    color: #c62828;
    border-color: #f44336;
}

body.light-mode #sidebar-removed-btn:hover {
    background-color: rgba(244, 67, 54, 0.4);
    border-color: #b71c1c;
}

body.light-mode #sidebar-sent-to-qb-btn {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}

body.light-mode #sidebar-sent-to-qb-btn:hover {
    background-color: #f0f0f0;
    color: #000000;
    border-color: #000000;
}

/* Sidebar batch actions light mode */
body.light-mode .sidebar-batch-actions {
    background-color: rgba(0, 188, 212, 0.1);
}

/* ============================================================
   SMART BANKING - LIGHT MODE STYLES
   ============================================================ */

body.light-mode .smart-banking-container {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

body.light-mode .smart-banking-title {
    color: #1e40af;
    text-shadow: none;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

body.light-mode .banking-action-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px 28px;
    transition: all 0.2s ease;
}

body.light-mode .banking-action-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-left-color: #2563eb;
}

body.light-mode .banking-action-text {
    color: #374151;
    font-size: 16px;
    font-weight: 500;
}

body.light-mode .banking-action-text .highlight {
    color: #2563eb;
    text-shadow: none;
    font-weight: 700;
}

body.light-mode .start-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

body.light-mode .start-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 10px -1px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

body.light-mode .start-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.3);
}

/* Lookback period dropdown - light mode */
body.light-mode #lookback-period {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #374151;
    padding: 4px 8px;
}

body.light-mode #lookback-period:hover {
    border-color: #3b82f6;
}

body.light-mode #lookback-period:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.light-mode .banking-action-item label {
    color: #6b7280;
}

/* ========================================
   Landing Page Styles
   ======================================== */

.landing-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow-y: auto;
}

.landing-header {
    text-align: center;
    margin-bottom: 32px;
}

.landing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.landing-header .welcome-text {
    font-weight: 300;
    color: #64748b;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.landing-header .brand-text {
    font-weight: 900;
    color: #1e40af;
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: 1px;
}

.landing-header p {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    width: 100%;
}

#platform-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}

.landing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    min-height: 200px;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    cursor: pointer;
}

.landing-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.landing-card:active {
    transform: translateY(-2px);
}

.landing-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid;
}

.landing-card-icon i {
    font-size: 28px;
}

/* Different icon colors for each card */
.landing-card-icon.icon-banking {
    border-color: #10b981;
}

.landing-card-icon.icon-banking i {
    color: #10b981;
}

.landing-card-icon.icon-ai {
    border-color: #8b5cf6;
}

.landing-card-icon.icon-ai i {
    color: #8b5cf6;
}

.landing-card-icon.icon-dashboard {
    border-color: #3b82f6;
}

.landing-card-icon.icon-dashboard i {
    color: #3b82f6;
}

.landing-card-icon.icon-setup {
    border-color: #f59e0b;
}

.landing-card-icon.icon-setup i {
    color: #f59e0b;
}

.landing-card-icon.icon-reports {
    border-color: #ef4444;
}

.landing-card-icon.icon-reports i {
    color: #ef4444;
}

.landing-card-icon.icon-sync {
    border-color: #06b6d4;
}

.landing-card-icon.icon-sync i {
    color: #06b6d4;
}

.landing-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 8px 0;
}

.landing-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    text-align: center;
}

/* Responsive: Stack to single column on mobile */
@media (max-width: 640px) {
    .landing-grid,
    #platform-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .landing-header h1 {
        font-size: 2rem;
    }

    .landing-card {
        min-height: 160px;
        padding: 24px 20px;
    }
}

/* ========================================
   View Records Modal Styles
   ======================================== */

.view-records-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px 24px 24px 24px;
    width: 95%;
    max-width: 1100px;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
}

.view-records-container > div:has(table) {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
}

.view-records-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.view-records-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    text-align: left;
    width: 100%;
}

.view-records-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-records-close-btn:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.view-records-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.view-records-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-records-label {
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
}

.view-records-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-records-select:hover {
    border-color: #3b82f6;
}

.view-records-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.view-records-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.view-records-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.view-records-table thead th.center {
    text-align: center;
}

.view-records-table tbody tr {
    transition: background-color 0.15s ease;
}

.view-records-table tbody tr:hover {
    background: #f8fafc;
}

.view-records-table tbody td {
    padding: 14px 16px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.view-records-table tbody td.center {
    text-align: center;
}

.view-records-table .remaining-count {
    color: #dc2626;
    font-weight: 600;
}

.view-records-table .client-review-count {
    color: #f59e0b;
    font-weight: 600;
}

.view-records-table .sent-qb-count {
    color: #10b981;
    font-weight: 600;
}

.view-records-table .filename-cell {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
    font-size: 13px;
}

.view-records-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.view-records-btn-view {
    background: #3b82f6;
    color: white;
}

.view-records-btn-view:hover {
    background: #2563eb;
}

.view-records-btn-delete {
    background: #fee2e2;
    color: #dc2626;
    margin-left: 8px;
}

.view-records-btn-delete:hover {
    background: #fecaca;
}

.view-records-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.view-records-pagination span {
    color: #64748b;
    font-size: 14px;
}

.view-records-pagination button {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-records-pagination button:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
}

.view-records-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.view-records-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
}

.view-records-empty i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.view-records-empty p {
    margin: 0;
    font-size: 16px;
}

.view-records-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
}

.view-records-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.view-records-pdf-row {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.03) 0%, transparent 100%);
}

.view-records-pdf-icon {
    color: #dc2626;
    margin-right: 6px;
}

/* Dashboard History — "job" (upload-batch) folder rows. Faint amber wash,
   mirroring the faint-red .view-records-pdf-row for specialized statements. */
.dash-history-job-row {
    cursor: pointer;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.07) 0%, transparent 100%);
}
.dash-history-job-row .bi-folder-fill {
    color: #ca8a04;
    margin-right: 6px;
}
.dash-history-job-caret {
    color: #ca8a04;
    margin-right: 4px;
    font-size: 0.8em;
    transition: transform 0.15s ease;
}
.dash-history-job-row.is-expanded .dash-history-job-caret {
    transform: rotate(90deg);
}
/* Nested statement rows under a job folder. */
.dash-history-childcell {
    text-align: center;
    color: #94a3b8;
}
.dash-history-job-child td:first-child {
    padding-left: 1.2em;
}