/* Light Mode Enforcement - Ensures all content is visible */

/* Override any dark mode preferences to enforce light mode across all browsers */
@media (prefers-color-scheme: dark) {
    /* Force light backgrounds for all cards */
    .card,
    .card-body,
    .card-header,
    .card-footer {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #dee2e6 !important;
    }
    
    /* Ensure readable text colors */
    .card .text-muted {
        color: #6c757d !important;
    }
    
    .card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
        color: #212529 !important;
    }
    
    .card p, .card span, .card div {
        color: #212529 !important;
    }
    
    /* Force light backgrounds for modals */
    .modal-content,
    .modal-header,
    .modal-body,
    .modal-footer {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #dee2e6 !important;
    }
    
    /* Ensure forms remain readable */
    .form-control,
    .form-select,
    .form-check-input {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #ced4da !important;
    }
    
    /* Force white background for the entire body */
    body {
        background-color: #f8f9fa !important;
        color: #212529 !important;
    }
    
    /* Ensure tables remain readable */
    .table,
    .table th,
    .table td {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #dee2e6 !important;
    }
    
    /* Force readable alerts */
    .alert {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #dee2e6 !important;
    }
    
    /* Ensure all text elements are visible */
    .text-dark {
        color: #212529 !important;
    }
    
    .text-light {
        color: #6c757d !important;
    }
    
    /* Override any remaining dark backgrounds */
    * {
        background-color: inherit;
    }
    
    .bg-dark {
        background-color: #ffffff !important;
        color: #212529 !important;
    }
    
    .bg-secondary {
        background-color: #f8f9fa !important;
        color: #212529 !important;
    }
}

/* Additional fixes for specific problem areas */
.card.bg-dark,
.card-header.bg-dark,
.modal-content.bg-dark {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Ensure buttons remain properly styled */
.btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

.btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000000 !important;
}

.btn-info {
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
    color: #000000 !important;
}

.btn-light {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #212529 !important;
}

.btn-dark {
    background-color: #212529 !important;
    border-color: #212529 !important;
    color: #ffffff !important;
}