/* ── Light Mode Overrides ─────────────────────────────────────────────────── */

body.theme-light {
    --bs-body-bg: #f5f0e8;
    --bs-body-color: #2c2c2c;
    --bs-card-bg: #faf7f2;
    --bs-border-color: #d4c9b8;
    background-color: #f5f0e8 !important;
    color: #2c2c2c !important;
}

body.theme-light .card {
    background-color: #faf7f2 !important;
    border-color: #d4c9b8 !important;
    color: #2c2c2c !important;
}

body.theme-light .card-header {
    background-color: #ede7dc !important;
    border-color: #d4c9b8 !important;
    color: #2c2c2c !important;
}

body.theme-light .accordion-button,
body.theme-light .accordion-body {
    background-color: #faf7f2 !important;
    color: #2c2c2c !important;
}

body.theme-light .accordion-button:not(.collapsed) {
    background-color: #ede7dc !important;
    color: #2c2c2c !important;
    box-shadow: none !important;
}

body.theme-light .accordion-item {
    background-color: #faf7f2 !important;
    border-color: #d4c9b8 !important;
}

body.theme-light hr {
    border-color: #c4b9a8 !important;
    opacity: 0.6;
}

body.theme-light .text-muted {
    color: #7a6a5a !important;
}

body.theme-light .nav-tabs {
    border-color: #c4b9a8 !important;
}

body.theme-light .nav-tabs .nav-link {
    color: #5a4a3a !important;
    border-color: transparent !important;
}

body.theme-light .nav-tabs .nav-link.active {
    background-color: #faf7f2 !important;
    border-color: #c4b9a8 #c4b9a8 #faf7f2 !important;
    color: #2c2c2c !important;
}

body.theme-light .nav-tabs .nav-link:hover:not(.active) {
    background-color: #f0eae0 !important;
    border-color: transparent !important;
}

body.theme-light .alert-success {
    background-color: #e8f5e8 !important;
    color: #2d6a2d !important;
    border-color: #c3e6cb !important;
}

body.theme-light .alert-warning {
    background-color: #fff9e6 !important;
    color: #7d5600 !important;
    border-color: #ffd27d !important;
}

body.theme-light .alert-danger {
    background-color: #fce8e8 !important;
    color: #8b2020 !important;
    border-color: #f5c6cb !important;
}

body.theme-light .form-control,
body.theme-light .form-control:focus {
    background-color: #ffffff !important;
    color: #2c2c2c !important;
    border-color: #c4b9a8 !important;
}

body.theme-light .form-control::placeholder {
    color: #9a8a7a !important;
}

body.theme-light label,
body.theme-light .form-label {
    color: #2c2c2c !important;
}

body.theme-light small {
    color: inherit;
}

body.theme-light .badge {
    filter: none;
}

body.theme-light .btn-success {
    background-color: #4a9a4a !important;
    border-color: #3d823d !important;
    color: #fff !important;
}

body.theme-light .btn-primary {
    background-color: #4a7ab5 !important;
    border-color: #3d669a !important;
    color: #fff !important;
}

body.theme-light .btn-outline-secondary {
    color: #5a4a3a !important;
    border-color: #9a8a7a !important;
}

body.theme-light .btn-outline-secondary:hover {
    background-color: #ede7dc !important;
    color: #2c2c2c !important;
    border-color: #8a7a6a !important;
}

/* DataTable containers */
body.theme-light .dash-table-container .dash-spreadsheet-container {
    background-color: #fdf9f4 !important;
}

body.theme-light .dash-table-container .dash-filter input,
body.theme-light .dash-table-container .dash-filter {
    background-color: #fff !important;
    color: #2c2c2c !important;
    border-color: #c4b9a8 !important;
}

body.theme-light .dash-table-container .previous-page,
body.theme-light .dash-table-container .next-page,
body.theme-light .dash-table-container .last-page,
body.theme-light .dash-table-container .first-page {
    background-color: #ede7dc !important;
    color: #2c2c2c !important;
    border-color: #c4b9a8 !important;
}

/* Container */
body.theme-light .container-fluid {
    background-color: #f5f0e8 !important;
}

/* Signal rule description text */
body.theme-light .text-success {
    color: #2d8a2d !important;
}

body.theme-light .text-danger {
    color: #b02020 !important;
}

body.theme-light .text-info {
    color: #1a6a9a !important;
}

body.theme-light .text-warning {
    color: #8a6000 !important;
}

body.theme-light .border-end {
    border-color: #c4b9a8 !important;
}
