/* ── Statement data font control ─────────────────────────────────────────── */
:root {
    --st-zoom: 100%;
    --st-font-family: inherit;
    /* Override Bootstrap's muted/secondary text — default #6c757d is too light */
    --bs-secondary-color: #39393a;
}
.statement-body {
    font-size: var(--st-zoom);
    font-family: var(--st-font-family);
}

body {
    background-color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    background-size: cover;

    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.42857143;
}
.login-container, .signup-container {
    background: #ffffffd6;
    padding: 25px 15px;
    border-radius: 15px;
    line-height: 1.2em;
    font-size: 14px;
    font-weight: bold;
    /* font-weight: bold; */
    color: #000000;
    max-width: 360px;
    width: 100%;
    align-self: center;
    margin-top: 60px;
    margin-bottom: 40px;
    position: relative;
}
.big-btn {
    background: linear-gradient(45deg, #7c1283, #1e1469);
    border: none;
    padding: 10px;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}
.big-btn:hover {
    background: #1e1469;
    background: linear-gradient(90deg, #7c1283, #1e1469) !important;
    color: white;
}
.form-check-input {
    margin-top: 3px;
}
.in-group {
    border: 2px solid #0e0042;
    border-radius: 9px;
    background: transparent;
}
.in-text{
    background: transparent;
    font-weight: bold;
}
.in-value{
    background: transparent;
    color: #0e0042;
}
/***** LOGIN *****/
/* ... (unchanged login & signup styles here) ... */


/***** DASHBOARD ****/

/* Header - deep dark purple with wave backlight */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background:
        radial-gradient(ellipse 32% 220% at 50% -8%, rgba(175, 95, 255, 0.30) 0%, transparent 52%),
        radial-gradient(ellipse 62% 240% at 50% -8%, rgba(145, 65, 240, 0.17) 0%, transparent 52%),
        radial-gradient(ellipse 92% 260% at 50% -8%, rgba(115, 45, 215, 0.10) 0%, transparent 52%),
        linear-gradient(135deg, #060118 0%, #0e0438 45%, #160652 100%);
    color: #fff;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.70);
}
.my-2{

}

/* Header Left (Hamburger + Logo) */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.bi-list {
    font-size: 1.5rem;
    cursor: pointer;
}
.header-logo {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    margin: -10px 0px;
    filter: brightness(0) invert(1);
    text-decoration: none;
}
.header-icon-sm {
    filter: brightness(0) invert(1);
    border-radius: 6px;
}
.header-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 2px rgba(168,85,247,0.4), 0 2px 8px rgba(99,102,241,0.35);
    flex-shrink: 0;
    text-transform: uppercase;
    font-family: 'Inter', system-ui, sans-serif;
}
.header-username {
    font-weight: 500;
    font-size: 0.92rem;
}

/* Header Right (Dropdowns, Icons) */
.header-actions .dropdown-toggle {
    color: inherit;
    text-decoration: none;
}
.header-actions i {
    font-size: 1.3rem;
    cursor: pointer;
}

/* ── Credits badge in header ──────────────────────────────────────────────── */
.header-credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.6;
    transition: background 0.2s;
    white-space: nowrap;
}
.header-credits-badge:hover {
    background: rgba(255,255,255,0.20);
    color: #fff;
}
.header-credits-badge .bi-lightning-charge-fill {
    font-size: 0.9rem;
    color: #fbbf24;
}

/* ── Credits page ─────────────────────────────────────────────────────────── */
.credits-balance-card {
    background: linear-gradient(135deg, #0e0438 0%, #7c1283 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.credits-balance-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .75;
    margin-bottom: .4rem;
}
.credits-balance-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .5rem;
}
.credits-balance-sub {
    font-size: 0.78rem;
    opacity: .65;
}
.credits-pkg-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-width: 110px;
}
.credits-pkg-btn:hover {
    border-color: #7c1283;
    background: #f3e8ff;
}
.credits-pkg-btn.selected {
    border-color: #7c1283;
    background: #f3e8ff;
    box-shadow: 0 0 0 3px rgba(124,18,131,0.15);
}
.credits-pkg-btn .pkg-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6c757d;
    font-weight: 600;
}
.credits-pkg-btn .pkg-credits {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0e0438;
}
.credits-pkg-btn .pkg-price {
    font-size: 0.78rem;
    color: #7c1283;
    font-weight: 600;
}

/* ── Volume pricing tiers grid ─────────────────────────────────────────────── */
.pricing-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
}
.pricing-tier {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.pricing-tier.best-tier {
    background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
    border-color: #7c1283;
    position: relative;
}
.pricing-tier .tier-range {
    font-size: 0.72rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pricing-tier .tier-price {
    font-size: 1rem;
    font-weight: 800;
    color: #0e0438;
}
.pricing-tier .tier-price small {
    font-size: 0.72rem;
    font-weight: 500;
    color: #6c757d;
}
.pricing-tier .tier-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #7c1283;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Buy credits modal ─────────────────────────────────────────────────────── */
.buy-modal-header {
    background: linear-gradient(135deg, #0e0438 0%, #7c1283 100%);
    color: #fff;
    border-radius: calc(0.5rem - 1px) calc(0.5rem - 1px) 0 0;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.buy-rate-bar {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-height: 2.2rem;
    transition: background 0.2s, border-color 0.2s;
}
.buy-rate-bar.active {
    background: #f3e8ff;
    border-color: #7c1283;
}
.btn-buy-stk {
    background: linear-gradient(135deg, #0e0438 0%, #7c1283 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    transition: opacity 0.15s;
}
.btn-buy-stk:hover:not(:disabled) {
    opacity: .88;
    color: #fff;
}
.btn-buy-stk:disabled {
    opacity: .6;
}
.paybill-instructions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.paybill-instructions ol li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.formarea{}
.form-pass{
    display: inline;
}
.passbox{
    display: none;
}
span.float_label {
    position: absolute;
    z-index: 100;
    margin-top: -11px;
    background: #dad7e3;
    padding: 1px;
    font-weight: normal;
    font-style: italic;
    margin-left: 6px;
    border-radius: 17px;
}
.iconbox {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #d9d6e0;
    border-radius: 50%;
    padding: 7px;
    border: 2px solid #0000000d;
}
/* Dashboard Layout: sidebar + main content */
.mainbody {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.bigsuccess{

}
.bigsecondary{

}
.bigreset{

}

/* SIDEBAR BASE STYLES */
.sidebar {
    width: 240px;
    background: #130445;
    border-right: none;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.55);
    padding: 1rem 0.5rem;
    transition: all 0.3s;
}

/* Sidebar links */
.sidebar .nav-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: background 0.3s;
    margin-bottom: 0.2rem;
}
.sidebar .nav-link i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}
.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

/* Footer */
footer {
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background-color: #fafafa;
}

/* ============================================
   COLLAPSE BEHAVIOR ON DESKTOP (>= 769px)
   ============================================
*/
@media (min-width: 769px) {
    /* Collapsed sidebar: narrower (60px), hide text labels */
    .sidebar.collapsed {
        width: 60px;
    }

    .sidebar.collapsed .nav-link span {
        display: none;
    }

    .sidebar.collapsed .nav-link i {
        margin-right: 0;
    }
}

/* ============================================
   OFF-CANVAS SLIDING BEHAVIOR ON MOBILE (< 769px)
   ============================================
*/
@media (max-width: 768px) {
    /* Off-canvas by default */
    .sidebar {
        position: absolute;
        left: -240px;     /* Hide off-screen */
        top: 3.75rem;     /* Just below the header */
        bottom: 0;
        width: 240px;
        transition: left 0.3s ease;
        z-index: 9999;
    }

    /* Show fully when toggled (no hidden text) */
    .sidebar.collapsed {
        left: 0; /* Slide in */
    }

    /* Ensure text labels are always visible on mobile */
    .sidebar .nav-link span {
        display: inline;
    }
}
/* Card customizations */
.custom-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Large icon style */
.icon-father {
    font-size: 3rem;
    color: #6c757d; /* Subtle dark-gray to match the "secondary" color */
}

/* Info label style (bold + subtle color) */
.info-label {
    font-weight: normal;
    color: #495057; /* Slightly darker for contrast */
    font-size: 0.9rem;
}

/* Info value style */
.info-value {
    font-size: 1rem;
    font-weight: bold;
    color: #212529; /* Default text color */
}

/* Container for Section Title */
.section-container {
    display: flex;
    align-items: center;
}

/* Navy Blue Section Title */
.section-title {
    background-color: #60b9f1; /* Navy Blue */
    color: #1a3647; /* White Text */
    padding: 10px 30px; /* Adjust padding for shape */
    font-weight: bold;
    font-size: 1.2rem;
    border-top-left-radius: 5px; /* Rounded only on the left */
    border-bottom-left-radius: 5px;
    border-top-right-radius: 18px; /* Slight rounding on the right */
    border-bottom-right-radius: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;

}
.font-crimson{
    color: crimson;
}
.font-orangered{
   color: orangered;
}

/* Horizontal Line Extending from Section Title */
.section-line {
    border: none;
    height: 3px;
    background-color: #60b9f1; /* Same navy blue */
    flex-grow: 2;
    margin-bottom:-30px;
    margin-left: 1px; /* Pulls closer to the title */
}
/* Custom table styling */
/* Custom table styling */
.tbl-custom {
    width: 100%;
    font-size: 14px;
    color: #333;
}

/* Gradient header */
.tbl-custom thead {
    background: #003366;
    background: linear-gradient(to right, #001a33, #003366) !important; /* Darker blue to normal dark blue */
    color: white !important;
}

/* Header cell styling */
.tbl-custom thead th {
    padding: 12px 10px;
    font-weight: 600;
    border-bottom: 2px solid #003366 !important;
}

/* Row separation */
.tbl-custom tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

/* Remove border from the last row */
.tbl-custom tbody tr:last-child {
    border-bottom: none;
}

/* Cell padding and alignment */
.tbl-custom tbody td {
    padding: 10px;
    vertical-align: middle;
}

/* Hover effect */
.tbl-custom tbody tr:hover {
    background-color: #f5f5f5;
}

/* Highlight positive and negative values */
.tbl-custom tbody td.positive {
    color: #28a745 !important; /* Green for positive values */
}

.tbl-custom tbody td.negative {
    color: #dc3545 !important; /* Red for negative values */
}

/* Custom CSS to center the form vertically and horizontally */
.centered-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;    /* Centers vertically */
    /* Full viewport height */
}

/* Optional: Adjust label width for better alignment */
.form-pass label {

}
div#toast {
    position: fixed;
    z-index: 1000000;
    background: #333333;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    font-size: 15px;
    background: gainsboro;
    border-radius: 10px;
    color: #ffffff;
    text-align: center;
    margin: 2% 15% 0 15%;
    font-weight: bold;
    box-shadow: 0px 0px 130px #000000;
}
.toastsuccess{
    background: #28a745 !important;
    color: white;
}
.toasterror{
    background: #dc143c !important;
    color: white;
}

/* Responsive adjustments (optional) */
@media (max-width: 576px) {
    .form-pass {
        flex-direction: column;
        align-items: stretch;
    }

    .form-pass label {
        min-width: unset;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .form-pass input {
        width: 100%;
    }
}

.bubble {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 0.2rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    user-select: none;
}

.bubble-container {
    position: relative;
    height: 500px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 575.98px) {
    .bubble-container {
        height: 400px;
    }
}

/* ============================================
   UPLOAD PAGE
   ============================================ */
.upload-page {
    max-width: 860px;
    margin: 1.25rem auto 0;
    padding: 0 1rem;
}

/* Compact header row */
.upload-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.upload-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #3f0f8e, #2a0c68);
    box-shadow: 0 4px 14px rgba(63,15,142,.35);
}
.upload-header-icon i {
    font-size: 1.75rem;
    color: #fff;
}
.upload-header-text { flex: 1; }
.upload-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1a0050;
    margin: 0 0 .1rem;
    letter-spacing: -.4px;
}
.upload-subtitle {
    color: #495057;
    font-size: .9rem;
    margin: 0;
}

/* Two-column body */
.upload-body {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.upload-left  { flex: 0 0 55%; }
.upload-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding-top: .25rem;
}

/* Drop zone */
.upload-dropzone {
    border: 3px dashed #a78bda;
    border-radius: 14px;
    background: #f8f4ff;
    padding: 1.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    user-select: none;
}
.upload-dropzone:hover,
.upload-dropzone.dropzone-dragover {
    border-color: #3f0f8e;
    background: #ede8ff;
}
.upload-dropzone.dropzone-has-file {
    border-color: #28a745;
    background: #f0fff4;
}
.dropzone-cloud-icon {
    font-size: 3rem;
    color: #3f0f8e;
    display: block;
    margin-bottom: .5rem;
    pointer-events: none;
}
.dropzone-main-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a0050;
    margin-bottom: .2rem;
    pointer-events: none;
}
.dropzone-or {
    color: #6c757d;
    font-size: .92rem;
    margin-bottom: .65rem;
    pointer-events: none;
}
.btn-browse-files {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: linear-gradient(135deg, #3f0f8e, #6a1db3);
    color: #fff;
    border-radius: 7px;
    padding: .5rem 1.2rem;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(63,15,142,.28);
    pointer-events: none;
}

/* Selected file badge */
.file-selected-badge {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .75rem;
    background: #e9f7ef;
    border: 1.5px solid #28a745;
    border-radius: 9px;
    padding: .5rem .85rem;
}
.file-pdf-icon {
    font-size: 1.4rem;
    color: #dc3545;
    flex-shrink: 0;
}
.file-selected-name {
    font-weight: 700;
    color: #1a0050;
    font-size: .93rem;
    word-break: break-all;
    flex: 1;
}
.file-clear-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.file-clear-btn:hover { color: #a71d2a; }

/* Validation error */
.upload-error-msg {
    color: #dc3545;
    font-weight: 600;
    font-size: .93rem;
    padding: .35rem .7rem;
    background: #fff0f0;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
}

/* Password */
.upload-pass-label {
    display: block;
    font-weight: 700;
    color: #1a0050;
    font-size: .92rem;
    margin-bottom: .3rem;
}
.upload-pass-hint {
    font-weight: 400;
    color: #495057;
    font-size: .9rem;
}
.upload-pass-input {
    border: 2px solid #c8b8f0;
    border-radius: 8px;
    padding: .55rem .85rem;
    font-size: .92rem;
    color: #1a0050;
    width: 100%;
    transition: border-color .2s;
}
.upload-pass-input:focus {
    outline: none;
    border-color: #3f0f8e;
    box-shadow: 0 0 0 3px rgba(63,15,142,.12);
}

/* Progress */
.upload-progress-wrap { }
.upload-progress-wrap .progress-bar {
    background: linear-gradient(90deg, #3f0f8e, #6a1db3);
    font-weight: 700;
    font-size: .875rem;
}
.upload-status-text {
    margin-top: .4rem;
    font-size: .93rem;
    color: #495057;
    font-weight: 600;
    text-align: center;
}

/* Upload CTA */
.btn-upload-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    padding: .85rem 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2a0c68, #6a1db3);
    border: none;
    border-radius: 11px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(63,15,142,.38);
    transition: opacity .2s, transform .15s;
    letter-spacing: .2px;
    margin-top: auto;
}
.btn-upload-main:hover:not(:disabled) {
    opacity: .91;
    transform: translateY(-1px);
}
.btn-upload-main:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile: stack columns */
@media (max-width: 640px) {
    .upload-body { flex-direction: column; }
    .upload-left { flex: unset; width: 100%; }
    .upload-title { font-size: 1.25rem; }
}

/* ============================================
   DARK MODE  (Bootstrap data-bs-theme="dark")
   ============================================ */

/* Body & base */
[data-bs-theme="dark"] body {
    background-color: #111827;
    color: #e5e7eb;
    --bs-secondary-color: #b8bfc9;
}

/* Footer */
[data-bs-theme="dark"] footer {
    background-color: #1f2937;
    border-color: rgba(255,255,255,0.08);
    color: #b8bfc9;
}

/* Custom table hover row */
[data-bs-theme="dark"] .tbl-custom tbody tr:hover {
    background-color: rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .tbl-custom tbody tr {
    border-color: rgba(255,255,255,0.08);
}

/* Bubble chart container */
[data-bs-theme="dark"] .bubble-container {
    background-color: #1f2937;
}

/* Login / signup card */
[data-bs-theme="dark"] .login-container,
[data-bs-theme="dark"] .signup-container {
    background: rgba(17,24,39,0.92);
    color: #e5e7eb;
}

/* Float labels */
[data-bs-theme="dark"] span.float_label {
    background: #374151;
    color: #e5e7eb;
}

/* Upload page ---------------------------------------- */
[data-bs-theme="dark"] .upload-title,
[data-bs-theme="dark"] .dropzone-main-text {
    color: #c4b5fd;
}
[data-bs-theme="dark"] .upload-subtitle,
[data-bs-theme="dark"] .upload-pass-hint,
[data-bs-theme="dark"] .upload-status-text {
    color: #b8bfc9;
}
[data-bs-theme="dark"] .upload-dropzone {
    background: #1e1e30;
    border-color: #7c3aed;
}
[data-bs-theme="dark"] .upload-dropzone:hover,
[data-bs-theme="dark"] .upload-dropzone.dropzone-dragover {
    background: #2d1f52;
    border-color: #9b59b6;
}
[data-bs-theme="dark"] .upload-dropzone.dropzone-has-file {
    background: #0d2418;
    border-color: #28a745;
}
[data-bs-theme="dark"] .dropzone-cloud-icon {
    color: #a78bfa;
}
[data-bs-theme="dark"] .upload-pass-label {
    color: #c4b5fd;
}
[data-bs-theme="dark"] .upload-pass-input {
    background: #1e1e30;
    color: #e0e0ff;
    border-color: #7c3aed;
}
[data-bs-theme="dark"] .upload-pass-input:focus {
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(124,58,237,.25);
}
[data-bs-theme="dark"] .file-selected-badge {
    background: #0d2418;
    border-color: #28a745;
}
[data-bs-theme="dark"] .file-selected-name {
    color: #a7f3d0;
}
[data-bs-theme="dark"] .upload-error-msg {
    background: #2d0a0a;
    color: #fca5a5;
}

/* Modals */
[data-bs-theme="dark"] .modal-content {
    background-color: #1f2937;
    border-color: #374151;
}
[data-bs-theme="dark"] .modal-body,
[data-bs-theme="dark"] .modal-footer {
    background-color: #1f2937;
    border-color: #374151;
}
[data-bs-theme="dark"] .modal-footer .btn-secondary {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}
/* Alerts inside modals */
[data-bs-theme="dark"] .alert-info {
    background-color: #1e3a5f;
    border-color: #2563eb;
    color: #bfdbfe;
}
[data-bs-theme="dark"] .alert-success {
    background-color: #14532d;
    border-color: #16a34a;
    color: #bbf7d0;
}
[data-bs-theme="dark"] .alert-danger {
    background-color: #450a0a;
    border-color: #dc2626;
    color: #fecaca;
}

/* bg-light / bg-white overrides — Bootstrap dark theme doesn't flip these */
[data-bs-theme="dark"] .bg-light {
    background-color: #1f2937 !important;
    color: #e5e7eb;
}
[data-bs-theme="dark"] .bg-white {
    background-color: #1f2937 !important;
    color: #e5e7eb;
}
[data-bs-theme="dark"] .bg-white.text-dark,
[data-bs-theme="dark"] .badge.bg-white {
    background-color: #374151 !important;
    color: #e5e7eb !important;
}
[data-bs-theme="dark"] .text-muted {
    color: #9ca3af !important;
}
/* Cards — ensure base card surface is dark */
[data-bs-theme="dark"] .card {
    background-color: #1f2937;
    border-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .card-header {
    background-color: #111827;
    border-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .card-body {
    background-color: transparent;
}
/* Progress track background */
[data-bs-theme="dark"] .rounded-pill.bg-light {
    background-color: #374151 !important;
}
/* Inline code snippets */
[data-bs-theme="dark"] code.bg-light {
    background-color: #374151 !important;
    color: #c4b5fd !important;
}
/* Nav sidebar */
[data-bs-theme="dark"] nav.bg-light {
    background-color: #1f2937 !important;
}
/* Badges with light bg */
[data-bs-theme="dark"] .badge.bg-light {
    background-color: #374151 !important;
    color: #e5e7eb !important;
}

/* Leaflet map tiles — invert to dark style */
[data-bs-theme="dark"] .leaflet-tile {
    filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(1.05);
}
[data-bs-theme="dark"] .leaflet-container {
    background: #1f2937;
}


/* ── Privacy blur (eye toggle on score results) ───────────────────────────── */
.pii-blur {
    transition: filter .25s ease;
}
.privacy-on .pii-blur {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}
/* Stronger blur for large/bold PII like the customer name */
.privacy-on .pii-blur-strong {
    filter: blur(9px);
}
