/* Corrections automatiques du contraste pour Filament Admin */
/* Généré automatiquement par test-contrast-analysis.py */
/* Date: 2025-11-06 */

/* CORRECTION 1: Badge de notification - Contraste 2.56 -> 4.5+ */
.fi-icon-btn-badge-ctn {
    color: rgb(82, 82, 91) !important; /* Zinc-600 au lieu de Zinc-400 */
}

.dark .fi-icon-btn-badge-ctn {
    color: rgb(212, 212, 216) !important; /* Zinc-300 pour le mode sombre */
}

/* CORRECTION 2: Texte dans fi-dropdown-list-item - Contraste 2.96 -> 4.5+ */
.fi-dropdown-list-item {
    color: rgb(63, 63, 70) !important; /* Zinc-700 au lieu de Zinc-500 */
}

.dark .fi-dropdown-list-item {
    color: rgb(228, 228, 231) !important; /* Zinc-200 pour le mode sombre */
}

/* CORRECTION 3: Badge et labels secondaires */
.fi-badge,
.fi-ta-text-item-label,
.text-xs.text-gray-500 {
    color: rgb(82, 82, 91) !important; /* Zinc-600 */
}

.dark .fi-badge,
.dark .fi-ta-text-item-label,
.dark .text-xs.text-gray-500 {
    color: rgb(212, 212, 216) !important; /* Zinc-300 */
}

/* CORRECTION 4: En-têtes de tableau */
.fi-ta-header-cell-label {
    color: rgb(63, 63, 70) !important; /* Zinc-700 */
    font-weight: 600;
}

.dark .fi-ta-header-cell-label {
    color: rgb(228, 228, 231) !important; /* Zinc-200 */
}

/* CORRECTION 5: Texte dans les cellules de tableau */
.fi-ta-text {
    color: rgb(39, 39, 42) !important; /* Zinc-800 */
}

.dark .fi-ta-text {
    color: rgb(244, 244, 245) !important; /* Zinc-100 */
}

/* CORRECTION 6: Liens et textes secondaires dans les tables */
.fi-ta-text-item-description,
.text-sm.text-gray-500 {
    color: rgb(82, 82, 91) !important; /* Zinc-600 */
}

.dark .fi-ta-text-item-description,
.dark .text-sm.text-gray-500 {
    color: rgb(212, 212, 216) !important; /* Zinc-300 */
}

/* CORRECTION 7: Amélioration globale pour tous les textes secondaires */
.text-gray-400 {
    color: rgb(113, 113, 122) !important; /* Zinc-500 au lieu de 400 */
}

.dark .text-gray-400 {
    color: rgb(161, 161, 170) !important; /* Zinc-400 pour le mode sombre */
}

.text-gray-500 {
    color: rgb(82, 82, 91) !important; /* Zinc-600 au lieu de 500 */
}

.dark .text-gray-500 {
    color: rgb(212, 212, 216) !important; /* Zinc-300 pour le mode sombre */
}

/* CORRECTION 8: Badges et indicateurs de statut */
.fi-badge-xs,
.fi-badge-sm {
    font-weight: 600;
    color: rgb(39, 39, 42) !important; /* Zinc-800 */
}

.dark .fi-badge-xs,
.dark .fi-badge-sm {
    color: rgb(244, 244, 245) !important; /* Zinc-100 */
}

/* CORRECTION 9: Menu et navigation */
.fi-sidebar-item-label,
.fi-sidebar-group-label {
    color: rgb(39, 39, 42) !important; /* Zinc-800 */
}

.dark .fi-sidebar-item-label,
.dark .fi-sidebar-group-label {
    color: rgb(244, 244, 245) !important; /* Zinc-100 */
}

/* CORRECTION 10: Formulaires - Labels et descriptions */
.fi-fo-field-wrp-label,
.fi-fo-field-wrp-hint {
    color: rgb(63, 63, 70) !important; /* Zinc-700 */
}

.dark .fi-fo-field-wrp-label,
.dark .fi-fo-field-wrp-hint {
    color: rgb(228, 228, 231) !important; /* Zinc-200 */
}

/* CORRECTION 11: Tooltips et aides contextuelles */
.fi-tooltip,
.fi-help-text {
    color: rgb(82, 82, 91) !important; /* Zinc-600 */
    background-color: rgb(255, 255, 255) !important;
    border: 1px solid rgb(228, 228, 231);
}

.dark .fi-tooltip,
.dark .fi-help-text {
    color: rgb(212, 212, 216) !important; /* Zinc-300 */
    background-color: rgb(24, 24, 27) !important;
    border-color: rgb(63, 63, 70);
}

/* CORRECTION 12: Amélioration du contraste pour les icônes */
.fi-icon,
.fi-btn-icon {
    color: rgb(63, 63, 70) !important; /* Zinc-700 */
}

.dark .fi-icon,
.dark .fi-btn-icon {
    color: rgb(212, 212, 216) !important; /* Zinc-300 */
}

/* CORRECTION 13: États hover et focus avec meilleur contraste */
.fi-link:hover,
.fi-btn:hover {
    color: rgb(39, 39, 42) !important; /* Zinc-800 */
}

.dark .fi-link:hover,
.dark .fi-btn:hover {
    color: rgb(250, 250, 250) !important; /* Zinc-50 */
}

/* CORRECTION 14: Pagination */
.fi-pagination-item,
.fi-pagination-overview {
    color: rgb(63, 63, 70) !important; /* Zinc-700 */
}

.dark .fi-pagination-item,
.dark .fi-pagination-overview {
    color: rgb(228, 228, 231) !important; /* Zinc-200 */
}

/* CORRECTION 15: Breadcrumbs */
.fi-breadcrumbs-item {
    color: rgb(82, 82, 91) !important; /* Zinc-600 */
}

.fi-breadcrumbs-item.active {
    color: rgb(39, 39, 42) !important; /* Zinc-800 */
}

.dark .fi-breadcrumbs-item {
    color: rgb(212, 212, 216) !important; /* Zinc-300 */
}

.dark .fi-breadcrumbs-item.active {
    color: rgb(250, 250, 250) !important; /* Zinc-50 */
}

/* CORRECTION 16: Empty states et messages d'information */
.fi-empty-state-description,
.fi-info-message {
    color: rgb(82, 82, 91) !important; /* Zinc-600 */
}

.dark .fi-empty-state-description,
.dark .fi-info-message {
    color: rgb(212, 212, 216) !important; /* Zinc-300 */
}

/* CORRECTIONS SPÉCIFIQUES AU WIDGET CHAT */
.chat-header,
.chat-panel .conversation-name,
.chat-panel .message-content {
    color: rgb(39, 39, 42) !important; /* Zinc-800 */
}

.dark .chat-header,
.dark .chat-panel .conversation-name,
.dark .chat-panel .message-content {
    color: rgb(244, 244, 245) !important; /* Zinc-100 */
}

.chat-panel .conversation-status,
.chat-panel .message-time {
    color: rgb(82, 82, 91) !important; /* Zinc-600 */
}

.dark .chat-panel .conversation-status,
.dark .chat-panel .message-time {
    color: rgb(212, 212, 216) !important; /* Zinc-300 */
}

/* AMÉLIORATION GLOBALE: Assurer un contraste minimal de 4.5:1 */
@media (prefers-color-scheme: light) {
    body {
        --text-primary: rgb(39, 39, 42); /* Zinc-800 */
        --text-secondary: rgb(82, 82, 91); /* Zinc-600 */
        --text-tertiary: rgb(113, 113, 122); /* Zinc-500 */
        --bg-primary: rgb(255, 255, 255);
        --bg-secondary: rgb(250, 250, 250);
    }
}

@media (prefers-color-scheme: dark) {
    body {
        --text-primary: rgb(244, 244, 245); /* Zinc-100 */
        --text-secondary: rgb(212, 212, 216); /* Zinc-300 */
        --text-tertiary: rgb(161, 161, 170); /* Zinc-400 */
        --bg-primary: rgb(24, 24, 27); /* Zinc-900 */
        --bg-secondary: rgb(39, 39, 42); /* Zinc-800 */
    }
}
