/* Custom Overrides for Accessibility and Contrast */

/* Force dark text on light backgrounds to ensure readability */
.bg-light,
.table-light,
.table-light th,
.table-light td,
.card-header.bg-light {
    color: #212529 !important;
    /* Bootstrap dark gray */
}

/* Ensure badges with light background have dark text */
.badge.bg-light {
    color: #212529 !important;
}

/* Fix explicit text-white on light backgrounds if unintended */
.bg-light .text-white {
    color: #212529 !important;
}

/* Ensure table headers in light tables are readable */
.table .table-light th {
    color: #212529 !important;
}

/* Fix button contrast */
.btn-light,
.btn-white,
.btn-soft-light {
    color: #212529 !important;
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
}

.btn-light:hover,
.btn-white:hover,
.btn-soft-light:hover {
    color: #000 !important;
    background-color: #e2e6ea !important;
    border-color: #dae0e5 !important;
}