/* Color Contrast Fixes - WHITE TEXT ON DARK BACKGROUNDS */

/* Base Text Colors - WHITE */
body, .card-body, .table, .modal-body {
    color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Form Elements - WHITE */
.form-label {
    color: #ffffff !important;
    font-weight: 500;
}

.form-check-label {
    color: #ffffff !important;
}

.form-control, .form-select {
    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
}

/* Table - LIGHT BLUE BACKGROUND, BLACK TEXT */
.table {
    color: #000000 !important;
    background: #e0f2fe !important;
}

.table thead {
    background: #1e293b !important;
}

.table thead th {
    color: #000000 !important;
    background: #1e293b !important;
}

.table tbody {
    background: #e0f2fe !important;
}

.table tbody td {
    color: #000000 !important;
    background: #e0f2fe !important;
}

.table tbody tr {
    background: #e0f2fe !important;
}

.table tbody tr:hover {
    background: #bae6fd !important;
}

.table-success-subtle {
    background: #d1fae5 !important;
}

.table-success-subtle td {
    color: #000000 !important;
    background: #d1fae5 !important;
}

.table-danger-subtle {
    background: #fee2e2 !important;
}

.table-danger-subtle td {
    color: #000000 !important;
    background: #fee2e2 !important;
}

/* Badges - WHITE */
.badge {
    color: #ffffff !important;
}

/* Stats Cards - BRIGHT COLORS */
.stat-value {
    color: #ffffff !important;
}

.compact-stat.success .stat-value {
    color: #4ade80 !important;
}

.compact-stat.danger .stat-value {
    color: #f87171 !important;
}

.stat-label {
    color: #ffffff !important;
}

/* Buttons - WHITE */
.btn {
    color: #ffffff !important;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-secondary {
    color: #ffffff !important;
}

/* Modal - WHITE */
.modal-title {
    color: #ffffff !important;
}

.modal-body {
    color: #ffffff !important;
}

/* Text Utilities - BRIGHT */
.text-muted {
    color: #d1d5db !important;
}

.text-danger {
    color: #f87171 !important;
}

.text-success {
    color: #4ade80 !important;
}

.text-warning {
    color: #fbbf24 !important;
}

.text-primary {
    color: #818cf8 !important;
}

small {
    color: #e5e7eb !important;
}

small.text-danger {
    color: #dc2626 !important;
}

/* Table error messages - RED */
.table small.text-danger {
    color: #dc2626 !important;
}

/* Clickable table rows */
.table tbody tr {
    cursor: pointer !important;
}

.table tbody tr:hover {
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* Sidebar - WHITE */
.nav-item {
    color: #ffffff !important;
}

.nav-item:hover,
.nav-item.active {
    color: #ffffff !important;
}

.nav-section-title {
    color: #d1d5db !important;
}

/* Search Input - WHITE */
#searchInput {
    color: #ffffff !important;
}

#searchInput::placeholder {
    color: #9ca3af !important;
}

.input-group-text {
    color: #ffffff !important;
}

/* Page Header - WHITE */
.page-header h2 {
    color: #ffffff !important;
}

.page-header .text-muted {
    color: #d1d5db !important;
}

/* Card Headers - WHITE */
.card-header {
    color: #ffffff !important;
}

.card-header h5 {
    color: #ffffff !important;
}

/* Compact Cards - WHITE */
.compact-header-card h4 {
    color: #ffffff !important;
}

/* Error Messages - BRIGHT RED */
.error-cell {
    background: rgba(239, 68, 68, 0.15) !important;
}

.error-cell small {
    color: #f87171 !important;
}

/* Links - BRIGHT BLUE */
a {
    color: #818cf8 !important;
}

a:hover {
    color: #a5b4fc !important;
}

/* Export Modal Buttons - WHITE */
.export-format-btn {
    color: #ffffff !important;
}

.export-format-btn span {
    color: #ffffff !important;
}

.export-format-btn i {
    color: #818cf8 !important;
}

.filter-option-btn {
    color: #ffffff !important;
}

.filter-option-btn.active {
    color: #ffffff !important;
}

.field-toggle-btn {
    color: #ffffff !important;
}

.field-toggle-btn.active {
    color: #ffffff !important;
}

.field-toggle-btn .check-icon {
    color: #4ade80 !important;
}

/* Common Error Buttons - WHITE */
.error-filter-btn {
    color: #ffffff !important;
}

/* Empty State - WHITE */
.empty-state {
    color: #ffffff !important;
}

/* Ensure all icons are visible */
i, .fas, .far, .fab {
    opacity: 1 !important;
}

/* Alert - WHITE */
.alert {
    color: #ffffff !important;
}

/* Dropdown - WHITE */
.dropdown-menu {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #ffffff !important;
}

.dropdown-item {
    color: #ffffff !important;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #ffffff !important;
}

/* Ensure button text is always visible - WHITE */
.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-secondary,
.btn-info {
    color: #ffffff !important;
}

/* Field Selector - WHITE */
.field-selector {
    color: #ffffff !important;
}

.field-selector .form-check-label {
    color: #ffffff !important;
}
