body { background-color: #0d1117; color: #c9d1d9; }
.card { border: 1px solid #30363d; }
.table-dark { --bs-table-bg: #161b22; }
.navbar { border-bottom: 1px solid #30363d; }
.badge { font-weight: 500; }

.text-muted-console {
    color: #007722;
}

/* ═══════════════════════════════════════════════════════════
   CORRECTION FINALE : Force .text-muted en BLANC sur fond sombre
   ═══════════════════════════════════════════════════════════ */

/* 1. Force TOUT ce qui a la classe .text-muted à être blanc cassé (très lisible) */
.text-muted {
    color: #f8f9fa !important; /* Blanc cassé Bootstrap (plus doux que #fff pur) */
    opacity: 0.9 !important;   /* Garde un léger effet "atténué" élégant */
}

/* 2. Force les éléments à l'intérieur de .text-muted (comme les icônes <i>) à être blancs aussi */
.text-muted i,
.text-muted span,
.text-muted strong,
.text-muted small,
.text-muted p,
.text-muted a {
    color: #f8f9fa !important;
}

/* 3. ⚠️ SÉCURITÉ : Si .text-muted se trouve DANS une zone à fond CLAIR (Admin), 
   on le repasse en gris foncé pour qu'il reste lisible. */
.bg-white .text-muted,
.bg-light .text-muted,
.bg-info-subtle .text-muted,
.bg-warning-subtle .text-muted,
.bg-success-subtle .text-muted,
.bg-primary-subtle .text-muted,
.alert-light .text-muted {
    color: #495057 !important; /* Gris foncé pour fond clair */
}

/* Sécurité pour les icônes dans les zones claires */
.bg-white .text-muted i,
.bg-light .text-muted i,
.bg-info-subtle .text-muted i,
.bg-warning-subtle .text-muted i {
    color: #495057 !important;
}

/* 4. Protection du menu de navigation (garde son style d'origine) */
.navbar .text-muted,
.sidebar .text-muted {
    color: inherit !important; 
}