/* Emergency Visibility Fix */

/* Force white background and dark text everywhere */
* {
    background-color: inherit !important;
}

body, html {
    background-color: #ffffff !important;
    color: #334155 !important;
}

/* Ensure all text elements are visible */
p, span, div, h1, h2, h3, h4, h5, h6, li, td, th, label, a {
    color: #334155 !important;
}

/* Links should be blue and visible */
a {
    color: #4f46e5 !important;
    text-decoration: none;
}

a:hover {
    color: #3730a3 !important;
    text-decoration: underline;
}

/* Navigation fixes */
.navbar {
    background-color: #ffffff !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #334155 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #4f46e5 !important;
}

/* Card backgrounds */
.card {
    background-color: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}

.card-header {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

/* Footer fixes */
footer {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

footer a {
    color: #4f46e5 !important;
}

/* Button fixes */
.btn-primary {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.btn-secondary {
    background-color: #f8fafc !important;
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

/* Form element fixes */
.form-control {
    background-color: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}

.form-label {
    color: #334155 !important;
}

/* Table fixes */
.table {
    background-color: #ffffff !important;
    color: #334155 !important;
}

.table th,
.table td {
    color: #334155 !important;
}

/* Alert fixes */
.alert {
    color: #334155 !important;
}

.alert-primary {
    background-color: #f0f9ff !important;
    color: #1e40af !important;
    border-color: #bfdbfe !important;
}

.alert-success {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

.alert-warning {
    background-color: #fffbeb !important;
    color: #9a3412 !important;
    border-color: #fed7aa !important;
}

.alert-danger {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

/* Modal fixes */
.modal-content {
    background-color: #ffffff !important;
    color: #334155 !important;
}

.modal-header {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

/* Dropdown fixes */
.dropdown-menu {
    background-color: #ffffff !important;
    color: #334155 !important;
}

.dropdown-item {
    color: #334155 !important;
}

.dropdown-item:hover {
    background-color: #f8fafc !important;
    color: #4f46e5 !important;
}