/* FORCE TOUS LES TEXTES EN FONCÉ */
* {
    color: #2d3748 !important;
}

/* Police moderne */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-color: #f5f7fa !important;
    color: #1a202c !important;
}

/* Header moderne */
#navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Navbar - textes BLANCS */
#navbar, #navbar * {
    color: white !important;
}

/* LIENS - BIEN VISIBLES ET FONCÉS */
a, a:link, a:visited {
    color: #1a202c !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

a:hover {
    color: #667eea !important;
    text-decoration: underline !important;
}

/* MENU LATÉRAL - TEXTES FONCÉS */
.sidebar, .sidebar *, #sidebar, #sidebar * {
    background-color: white !important;
    color: #1a202c !important;
}

.sidebar a, #sidebar a {
    color: #1a202c !important;
    font-weight: 500 !important;
}

.sidebar a:hover, #sidebar a:hover {
    color: #667eea !important;
    background-color: #f7fafc !important;
}

/* Icônes du menu latéral */
.sidebar i, #sidebar i {
    color: #4a5568 !important;
}

/* TOUS LES TEXTES DES CELLULES */
td, th, p, span, div, label, li {
    color: #1a202c !important;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    color: #1a202c !important;
    font-weight: 600 !important;
}

/* COMPTEURS (0 - 0 / 0) - BIEN VISIBLES */
.badge, .label, span.badge {
    background-color: #4a5568 !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 4px 12px !important;
    font-weight: 600 !important;
}

/* Boutons */
.btn, button[type="submit"], input[type="submit"], input[type="button"] {
    border-radius: 6px !important;
    padding: 8px 16px !important;
    border: none !important;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #667eea !important;
    color: white !important;
}

.btn:hover, button:hover {
    background: #5568d3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Boutons du header */
#navbar .btn, #navbar button {
    color: white !important;
}

/* Cartes/Widgets */
.widget-box, .form-container, table.width100 {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border: none !important;
    margin-bottom: 20px;
}

/* En-têtes de tableaux */
table thead, .widget-header {
    background: #f8f9fa !important;
    border-bottom: 2px solid #e9ecef !important;
}

table th {
    color: #1a202c !important;
    font-weight: 600 !important;
}

table td {
    color: #1a202c !important;
    padding: 12px !important;
}

/* Lignes de tableau */
table tr:hover {
    background-color: #f8f9fa !important;
}

/* Inputs */
input[type="text"], input[type="password"], input[type="email"], 
textarea, select {
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    color: #1a202c !important;
    background-color: white !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

/* Footer */
#footer {
    background: #2d3748 !important;
    color: #cbd5e0 !important;
}

#footer, #footer * {
    color: #cbd5e0 !important;
}

/* Logo */
#navbar .navbar-brand img, .logo-image {
    max-height: 50px !important;
    width: auto !important;
}

/* Statuts colorés avec bon contraste */
.status-new { background-color: #fef3c7 !important; color: #78350f !important; }
.status-feedback { background-color: #dbeafe !important; color: #1e3a8a !important; }
.status-acknowledged { background-color: #e0e7ff !important; color: #312e81 !important; }
.status-confirmed { background-color: #fce7f3 !important; color: #831843 !important; }
.status-assigned { background-color: #ddd6fe !important; color: #4c1d95 !important; }
.status-resolved { background-color: #d1fae5 !important; color: #064e3b !important; }
.status-closed { background-color: #e5e7eb !important; color: #1f2937 !important; }

/* Menu de navigation principal */
.nav-tabs, .nav-tabs * {
    color: #1a202c !important;
}

/* Correction pour petits textes */
.small, small {
    color: #4a5568 !important;
}

address {
    margin-bottom: 10px !important;
    line-height: 1.1 !important;
}
