/* ===== FORCE ALL TEXT TO WHITE ===== */

/* Override di tutte le variabili CSS relative ai colori del testo */
:root {
    --text-primary: #ffffff !important;
    --text-secondary: #ffffff !important;
    --text-light: #ffffff !important;
    --text-dark: #ffffff !important;
    --text-muted: #ffffff !important;
    --text-info: #ffffff !important;
    --text-success: #ffffff !important;
    --text-warning: #ffffff !important;
    --text-danger: #ffffff !important;
    --text-white: #ffffff !important;
    --text-black: #ffffff !important;
    --color-text: #ffffff !important;
    --color-primary: #ffffff !important;
    --color-secondary: #ffffff !important;
}

/* Selettore universale per forzare TUTTO a bianco */
*, 
*::before, 
*::after,
html,
body {
    color: #ffffff !important;
}

/* Override specifici per elementi comuni */
p, span, div, section, article, aside, main, nav, header, footer, 
h1, h2, h3, h4, h5, h6, 
a, strong, em, b, i, u, 
label, input, textarea, select, option, optgroup,
button, 
table, thead, tbody, tfoot, tr, th, td,
ul, ol, li, dl, dt, dd,
pre, code, 
small, sup, sub,
time, address,
blockquote, cite, q {
    color: #ffffff !important;
}

/* Form elements specifici */
input[type="text"],
input[type="email"], 
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select {
    color: #ffffff !important;
}

/* Placeholder text */
::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.7) !important; }
::-moz-placeholder { color: rgba(255, 255, 255, 0.7) !important; }
:-ms-input-placeholder { color: rgba(255, 255, 255, 0.7) !important; }
:-moz-placeholder { color: rgba(255, 255, 255, 0.7) !important; }

/* Override per classi comuni che potrebbero avere colori specifici */
.text-muted, .text-secondary, .text-light, .text-dark, .text-info, .text-primary,
.text-success, .text-warning, .text-danger, .text-white, .text-black,
.muted, .secondary, .light, .dark, .info, .primary,
.success, .warning, .danger, .white, .black {
    color: #ffffff !important;
}

/* Card e panel content */
.card, .card-body, .card-header, .card-footer, .card-title, .card-text,
.panel, .panel-body, .panel-header, .panel-footer, .panel-title,
.modal, .modal-body, .modal-header, .modal-footer, .modal-title,
.container, .container-fluid, .row, .col {
    color: #ffffff !important;
}

/* Navigation elements */
.nav, .navbar, .navbar-nav, .nav-item, .nav-link,
.sidebar, .sidebar-nav, .sidebar-link,
.breadcrumb, .breadcrumb-item {
    color: #ffffff !important;
}
.sidebar-nav {
    background: #371e10 !important;
    color: #ffffff !important;
}

/* Table elements */
.table, .table-responsive, .table-bordered, .table-striped,
.table-hover, .table-dark, .table-light {
    color: #ffffff !important;
}

.table thead th,
.table tbody td,
.table tfoot td {
    color: #ffffff !important;
}

/* List elements */
.list-group, .list-group-item,
.dropdown, .dropdown-menu, .dropdown-item {
    color: #ffffff !important;
}

/* Alert e notification elements */
.alert, .alert-success, .alert-info, .alert-warning, .alert-danger,
.notification, .toast, .banner, .message {
    color: #ffffff !important;
}

/* Form validation states */
.is-valid, .is-invalid, .valid-feedback, .invalid-feedback,
.form-control.is-valid, .form-control.is-invalid {
    color: #ffffff !important;
}

/* Specific application classes */
.stat-card, .stat-content, .stat-number, .stat-label,
.user-info, .user-details, .user-name, .welcome,
.header-title, .header-subtitle, .section-title,
.application-info, .application-job-title, .application-location,
.step-content, .info-content, .banner-text,
.photo-info, .model-name, .photo-count,
.link-title, .link-desc, .info-label, .info-value {
    color: #ffffff !important;
}

/* Search and filter elements */
.search-box, .search-input, .filter-select, .pagination {
    color: #ffffff !important;
}

/* Ensure text in glass/transparent backgrounds is visible */
.glass, .glass-bg, .backdrop-blur {
    color: #ffffff !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Override for any remaining elements that might have specific colors */
[class*="text-"], [class*="color-"], [class*="fg-"] {
    color: #ffffff !important;
}

/* Media queries to ensure mobile compatibility */
@media (max-width: 768px) {
    *, *::before, *::after {
        color: #ffffff !important;
    }
}

/* Special handling for status badges to maintain functionality while ensuring readability */
.status-badge, .badge {
    color: #ffffff !important;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
