/* ========================================
   SYSTÈME DE THÈME - Variables CSS optimisées
   ======================================== */

/* Variables CSS pour les thèmes - Organisées par catégories */
:root {
    /* Couleurs principales */
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    
    /* Composants */
    --card-bg: #ffffff;
    --navbar-bg: #8b2635;
    --footer-bg: #f8f9fa;
    --footer-text: #343a40;
    --sidebar-bg: #f8f9fa;
    --sidebar-text: #495057;
    
    /* Formulaires */
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --input-focus: #86b7fe;
    --input-focus-shadow: rgba(13, 110, 253, 0.25);
    
    /* Éléments interactifs */
    --dropdown-bg: #ffffff;
    --badge-bg: #6c757d;
    --badge-text: #ffffff;
    --btn-outline-border: #6c757d;
    --btn-outline-text: #6c757d;
    
    /* Tables et listes */
    --table-bg: #ffffff;
    --table-stripe: #f8f9fa;
    --list-hover: #f8f9fa;
    
    /* Alertes */
    --alert-info-bg: #d1ecf1;
    --alert-info-border: #bee5eb;
    --alert-info-text: #0c5460;
    
    /* Liens */
    --link-color: #0d6efd;
    --link-hover: #0a58ca;
    
    /* Transitions */
    --transition-theme: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                       color 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                       border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   APPLICATION DES VARIABLES - MODE NORMAL
   ======================================== */

/* Application des variables avec performance optimisée */
html,
body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    transition: var(--transition-theme);
}

/* Composants principaux */
.navbar { 
    background-color: var(--navbar-bg) !important; 
}

.bg-light { 
    background-color: var(--bg-secondary) !important; 
}

.card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

.card-header {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

.card-body {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

/* Footer */
footer {
    background-color: var(--footer-bg) !important;
    border-color: var(--border-color) !important;
}

.footer-text, 
footer h6 {
    color: var(--footer-text) !important;
}

.footer-text {
    font-weight: 500 !important;
    opacity: 0.9;
}

footer h6 {
    font-weight: 700 !important;
}

/* Texte et couleurs utilitaires */
.text-muted { 
    color: var(--text-muted) !important; 
}

.text-dark { 
    color: var(--text-color) !important; 
}

.text-light { 
    color: var(--text-muted) !important; 
}

/* ========================================
   FORMULAIRES - Optimisés pour l'accessibilité
   ======================================== */

.form-control,
.form-select {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-color) !important;
    transition: var(--transition-theme);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg) !important;
    border-color: var(--input-focus) !important;
    color: var(--text-color) !important;
    box-shadow: 0 0 0 0.25rem var(--input-focus-shadow) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

/* ========================================
   DROPDOWNS
   ======================================== */

.dropdown-menu {
    background-color: var(--dropdown-bg) !important;
    border-color: var(--border-color) !important;
}

.dropdown-item {
    color: var(--text-color) !important;
    transition: var(--transition-theme);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-secondary) !important;
    color: var(--text-color) !important;
}

.dropdown-item.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

/* ========================================
   BADGES - Préservation des couleurs sémantiques
   ======================================== */

/* Badges - Laisse les couleurs de la BDD s'appliquer naturellement en mode clair */

.badge.bg-success { 
    background-color: #198754 !important; 
}

.badge.bg-warning { 
    background-color: #ffc107 !important; 
    color: #000 !important; 
}

.badge.bg-danger { 
    background-color: #dc3545 !important; 
}

.badge.bg-info { 
    background-color: #0dcaf0 !important; 
    color: #000 !important; 
}

/* .badge.bg-secondary laisse Bootstrap gérer en mode clair */

/* ========================================
   TABLES
   ======================================== */

.table {
    --bs-table-bg: var(--table-bg);
    --bs-table-striped-bg: var(--table-stripe);
    color: var(--text-color) !important;
}

.table th,
.table td {
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

/* ========================================
   ALERTES - Accessibilité améliorée
   ======================================== */

.alert {
    background-color: var(--alert-info-bg) !important;
    border-color: var(--alert-info-border) !important;
    color: var(--alert-info-text) !important;
}

.alert-success {
    --bs-alert-bg: #d1e7dd;
    --bs-alert-border-color: #badbcc;
    --bs-alert-color: #0f5132;
}

.alert-danger {
    --bs-alert-bg: #f8d7da;
    --bs-alert-border-color: #f5c2c7;
    --bs-alert-color: #842029;
}

/* ========================================
   BOUTONS - Thème bordeaux unifié
   ======================================== */

/* Boutons principaux avec couleurs bordeaux */
.btn-primary {
    background-color: #8b2635 !important;
    border-color: #8b2635 !important;
    color: #ffffff !important;
    transition: var(--transition-theme);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #6b1d28 !important;
    border-color: #6b1d28 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(139, 38, 53, 0.3) !important;
}

.btn-primary:active {
    background-color: #5a1922 !important;
    border-color: #5a1922 !important;
    color: #ffffff !important;
}

/* Boutons outline avec couleurs bordeaux */
.btn-outline-primary {
    color: #8b2635 !important;
    border-color: #8b2635 !important;
    background-color: transparent !important;
    transition: var(--transition-theme);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #8b2635 !important;
    border-color: #8b2635 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(139, 38, 53, 0.2) !important;
}

.btn-outline-primary:active {
    background-color: #6b1d28 !important;
    border-color: #6b1d28 !important;
    color: #ffffff !important;
}

/* Boutons secondary avec couleurs bordeaux harmonisées */
.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    background-color: transparent !important;
    transition: var(--transition-theme);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3) !important;
}

.btn-outline-secondary:active {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
    color: #ffffff !important;
}

/* Boutons success avec couleurs bordeaux */
.btn-outline-success {
    color: #c8908a !important;
    border-color: #c8908a !important;
    background-color: transparent !important;
    transition: var(--transition-theme);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: #c8908a !important;
    border-color: #c8908a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(200, 144, 138, 0.3) !important;
}

.btn-outline-success:active {
    background-color: #b8807a !important;
    border-color: #b8807a !important;
    color: #ffffff !important;
}

/* Boutons light avec couleurs bordeaux */
.btn-light {
    background-color: #f8f5f5 !important;
    border-color: #e8d5d5 !important;
    color: #8b2635 !important;
    transition: var(--transition-theme);
}

.btn-light:hover,
.btn-light:focus {
    background-color: #e8d5d5 !important;
    border-color: #d8c5c5 !important;
    color: #6b1d28 !important;
    box-shadow: 0 4px 8px rgba(139, 38, 53, 0.1) !important;
}

.btn-light:active {
    background-color: #d8c5c5 !important;
    border-color: #c8b5b5 !important;
    color: #6b1d28 !important;
}

.btn-outline-secondary {
    color: var(--btn-outline-text) !important;
    border-color: var(--btn-outline-border) !important;
    transition: var(--transition-theme);
}

.btn-outline-secondary:hover {
    background-color: var(--btn-outline-border) !important;
    border-color: var(--btn-outline-border) !important;
    color: var(--bg-color) !important;
}

/* Boutons avec liens - harmonisation des couleurs */
.btn a {
    color: inherit !important;
    text-decoration: none !important;
}

.btn a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Amélioration des boutons dans les cartes */
.card-footer .btn {
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    padding: 0.375rem 0.75rem !important;
}

.card-footer .btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
}

.card-footer .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Espacement cohérent entre les boutons */
.card-footer .d-flex {
    gap: 0.5rem !important;
}

/* ========================================
   BORDURES
   ======================================== */

.border-top,
.border-bottom,
.border {
    border-color: var(--border-color) !important;
}

/* ========================================
   SIDEBAR - Optimisée
   ======================================== */

.col-lg-4 .card {
    background-color: var(--sidebar-bg) !important;
    color: var(--sidebar-text) !important;
}

.col-lg-4 .card-header {
    background-color: var(--bg-secondary) !important;
    color: var(--sidebar-text) !important;
}

.col-lg-4 .card-body {
    background-color: var(--sidebar-bg) !important;
    color: var(--sidebar-text) !important;
}

/* ========================================
   CONTENU SPÉCIALISÉ
   ======================================== */

.workflow-description {
    background-color: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    border-left-color: #0d6efd !important;
    transition: var(--transition-theme);
}

.workflow-description h1,
.workflow-description h2,
.workflow-description h3,
.workflow-description h4,
.workflow-description h5,
.workflow-description h6 {
    color: var(--text-color) !important;
}

.workflow-description code,
.workflow-description pre {
    background-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

/* ========================================
   JSON CODE BLOCK
   ======================================== */

.json-code-block {
    background-color: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', 'Courier New', monospace;
    font-feature-settings: 'liga' 0;
    font-variant-ligatures: none;
}

.json-code-block code {
    background: transparent !important;
    color: var(--text-color) !important;
}

/* Coloration syntaxique JSON optimisée */
.json-key { 
    color: #0066cc; 
}

.json-string { 
    color: #009900; 
}

.json-number { 
    color: #cc6600; 
}

.json-boolean { 
    color: #cc0066; 
}

.json-null { 
    color: #999999; 
}

.json-punctuation { 
    color: #666666; 
}

/* ========================================
   LIENS - Thème bordeaux unifié
   ======================================== */

a {
    color: #8b2635 !important;
    transition: color 0.2s ease;
}

a:hover {
    color: #6b1d28 !important;
}

/* Liens spécifiques dans les éléments de navigation */
.navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar-nav .nav-link:hover {
    color: #f8f5f5 !important;
}

/* Liens dans les cartes */
.card a:not(.btn) {
    color: #8b2635 !important;
    text-decoration: none;
}

.card a:not(.btn):hover {
    color: #6b1d28 !important;
    text-decoration: underline;
}

/* Liens dans les badges */
.badge a {
    color: inherit !important;
    text-decoration: none !important;
}

.badge a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* ========================================
   MODALS
   ======================================== */

.modal-content {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

.modal-header {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

.modal-body {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

.modal-footer {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

/* ========================================
   SÉLECTEUR DE THÈME - Amélioré
   ======================================== */

.theme-selector .btn {
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
}

.theme-selector .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   COULEURS D'ACCENT
   ======================================== */

.text-burgundy {
    color: #8b2635 !important;
}

/* ========================================
   SCROLLBARS PERSONNALISÉES - Compatibilité étendue
   ======================================== */

.json-code-block::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.json-code-block::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.json-code-block::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.json-code-block::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Support Firefox */
.json-code-block {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-secondary);
}

/* ========================================
   SECTIONS SPÉCIALES - Thème bordeaux
   ======================================== */

/* Section héro avec couleurs bordeaux */
.hero-section.bg-primary {
    background: linear-gradient(135deg, #8b2635 0%, #6b1d28 100%) !important;
    color: #ffffff !important;
}

.hero-section.bg-primary .text-white {
    color: #ffffff !important;
}

.hero-section.bg-primary .bg-white.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Cartes de catégories */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #e8d5d5 !important;
}

.category-card:hover {
    border-color: #c8908a !important;
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.1) !important;
    transform: translateY(-2px);
}

.category-card .card-title {
    color: #8b2635 !important;
}

/* ========================================
   ÉLÉMENTS SUPPLÉMENTAIRES
   ======================================== */

.list-group-item {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
    transition: var(--transition-theme);
}

.list-group-item:hover {
    background-color: var(--list-hover) !important;
}

.breadcrumb {
    background-color: var(--bg-secondary) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted) !important;
}

.breadcrumb-item a {
    color: var(--text-color) !important;
}

/* Pagination */
.page-link {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
    transition: var(--transition-theme);
}

.page-link:hover {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

.page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Tooltips */
.tooltip-inner {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--card-bg) !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--card-bg) !important;
}

/* Éléments de contenu */
pre {
    background-color: var(--bg-secondary) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

code {
    background-color: var(--bg-secondary) !important;
    color: var(--text-color) !important;
}

blockquote {
    border-left-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

hr {
    border-color: var(--border-color) !important;
}

/* Utilitaires de fond */
.bg-white {
    background-color: var(--card-bg) !important;
}

.bg-gray-100 {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .footer-text {
        font-weight: 600 !important;
    }

    .theme-selector {
        margin-bottom: 0.5rem;
    }
    
    .theme-selector .btn {
        min-width: auto;
        padding: 0.2rem 0.5rem;
    }
}

/* ========================================
   PRÉFÉRENCES SYSTÈME - Respect des paramètres utilisateur
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }

    .theme-selector .btn:hover {
        transform: none;
    }
}

/* Support pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .json-code-block {
        font-size: 12px;
    }
}

/* ========================================
   MODE SOMBRE - OVERRIDES SPÉCIFIQUES
   ======================================== */

[data-theme="dark"] .theme-selector .btn {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .theme-selector .btn:hover {
    background-color: var(--bg-secondary) !important;
    border-color: var(--text-muted) !important;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .text-burgundy {
    color: #ff6b7d !important;
}

/* Mode sombre - Couleurs JSON optimisées */
[data-theme="dark"] .json-key { 
    color: #79c0ff !important; 
}

[data-theme="dark"] .json-string { 
    color: #a5d6ff !important; 
}

[data-theme="dark"] .json-number { 
    color: #79c0ff !important; 
}

[data-theme="dark"] .json-boolean { 
    color: #ffa657 !important; 
}

[data-theme="dark"] .json-null { 
    color: #8b949e !important; 
}

[data-theme="dark"] .json-punctuation { 
    color: #e6edf3 !important; 
}

/* ========================================
   MODE SOMBRE - REFONTE COMPLÈTE ET AMÉLIORÉE
   ======================================== */

/* Mode sombre - Variables globales améliorées */
[data-theme="dark"] {
    /* Couleurs principales - Palette GitHub Dark Pro */
    --bg-color: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-color: #f0f6fc;
    --text-muted: #8b949e;
    --text-accent: #58a6ff;
    --border-color: #30363d;
    --border-hover: #484f58;
    
    /* Composants */
    --card-bg: #161b22;
    --card-hover: #21262d;
    --navbar-bg: #161b22;
    --footer-bg: #0d1117;
    --footer-text: #f0f6fc;
    --sidebar-bg: #161b22;
    --sidebar-text: #f0f6fc;
    
    /* Formulaires */
    --input-bg: #21262d;
    --input-bg-focus: #262c36;
    --input-border: #30363d;
    --input-border-focus: #58a6ff;
    --input-focus: #58a6ff;
    --input-focus-shadow: rgba(88, 166, 255, 0.3);
    
    /* Éléments interactifs */
    --dropdown-bg: #161b22;
    --badge-bg: #30363d;
    --badge-text: #f0f6fc;
    --btn-outline-border: #f0f6fc1a;
    --btn-outline-text: #f0f6fc;
    
    /* Tables et listes */
    --table-bg: #161b22;
    --table-stripe: #21262d;
    --list-hover: #21262d;
    
    /* Alertes */
    --alert-info-bg: #0c2d48;
    --alert-info-border: #1f6feb;
    --alert-info-text: #79c0ff;
    
    /* Liens */
    --link-color: #58a6ff;
    --link-hover: #79c0ff;
    
    /* Ombres et effets */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.6);
}

/* ========================================
   APPLICATION DU MODE SOMBRE - GLOBAL AMÉLIORÉ
   ======================================== */

/* Base HTML/Body - Mode sombre avec dégradé subtil */
[data-theme="dark"] html {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important;
    color: #f0f6fc !important;
    min-height: 100vh;
    background-attachment: fixed;
}

/* Containers - Mode sombre avec fond uniforme */
[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid,
[data-theme="dark"] .container-sm,
[data-theme="dark"] .container-md,
[data-theme="dark"] .container-lg,
[data-theme="dark"] .container-xl,
[data-theme="dark"] .container-xxl {
    background-color: transparent !important;
}

/* Main content area */
[data-theme="dark"] main {
    background-color: transparent !important;
}

/* Rows et columns */
[data-theme="dark"] .row,
[data-theme="dark"] .col,
[data-theme="dark"] .col-1,
[data-theme="dark"] .col-2,
[data-theme="dark"] .col-3,
[data-theme="dark"] .col-4,
[data-theme="dark"] .col-5,
[data-theme="dark"] .col-6,
[data-theme="dark"] .col-7,
[data-theme="dark"] .col-8,
[data-theme="dark"] .col-9,
[data-theme="dark"] .col-10,
[data-theme="dark"] .col-11,
[data-theme="dark"] .col-12,
[data-theme="dark"] .col-auto,
[data-theme="dark"] .col-sm,
[data-theme="dark"] .col-md,
[data-theme="dark"] .col-lg,
[data-theme="dark"] .col-xl,
[data-theme="dark"] .col-xxl {
    background-color: transparent !important;
}

/* Override Bootstrap bg classes */
[data-theme="dark"] .bg-light {
    background-color: #161b22 !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .bg-white {
    background-color: #161b22 !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .bg-body {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
}

/* Text colors améliorées */
[data-theme="dark"] .text-dark {
    color: #f0f6fc !important;
}

[data-theme="dark"] .text-muted {
    color: #8b949e !important;
}

[data-theme="dark"] .text-secondary {
    color: #8b949e !important;
}

/* ========================================
   NAVBAR - MODE SOMBRE AMÉLIORÉ
   ======================================== */

[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%) !important;
    border-bottom: 1px solid #30363d !important;
    box-shadow: var(--shadow-md) !important;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .navbar-brand {
    color: #f0f6fc !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: #f0f6fc !important;
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: #58a6ff !important;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(88, 166, 255, 0.05)) !important;
    border-radius: 0.5rem;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar-toggler {
    border-color: #30363d !important;
    background-color: rgba(88, 166, 255, 0.1) !important;
}

[data-theme="dark"] .navbar-toggler:hover {
    background-color: rgba(88, 166, 255, 0.2) !important;
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28240, 246, 252, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========================================
   CARDS - MODE SOMBRE AMÉLIORÉ AVEC GRADIENTS
   ======================================== */

[data-theme="dark"] .card {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .card:hover {
    background: linear-gradient(135deg, #1c2128 0%, #21262d 100%) !important;
    border-color: #484f58 !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

[data-theme="dark"] .card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .card-header {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    border-bottom: 1px solid #30363d !important;
    color: #f0f6fc !important;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

[data-theme="dark"] .card-body {
    background: transparent !important;
    color: #f0f6fc !important;
    position: relative;
}

[data-theme="dark"] .card-footer {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    border-top: 1px solid #30363d !important;
    color: #f0f6fc !important;
    border-radius: 0 0 12px 12px !important;
}

/* ========================================
   FORMS - MODE SOMBRE MODERNE
   ======================================== */

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: linear-gradient(135deg, #262c36 0%, #2d333b 100%) !important;
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    color: #f0f6fc !important;
    transform: translateY(-1px);
}

[data-theme="dark"] .form-control::placeholder {
    color: #8b949e !important;
    opacity: 0.8;
}

[data-theme="dark"] .form-label {
    color: #f0f6fc !important;
    font-weight: 500;
}

[data-theme="dark"] .form-text {
    color: #8b949e !important;
}

/* ========================================
   BUTTONS - MODE SOMBRE ÉLÉGANT
   ======================================== */

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s ease;
    border-radius: 8px !important;
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #2ea043 0%, #3fb950 100%) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

[data-theme="dark"] .btn-secondary {
    background: linear-gradient(135deg, #30363d 0%, #484f58 100%) !important;
    border: none !important;
    color: #f0f6fc !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s ease;
    border-radius: 8px !important;
}

[data-theme="dark"] .btn-secondary:hover {
    background: linear-gradient(135deg, #484f58 0%, #656c76 100%) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

[data-theme="dark"] .btn-outline-secondary {
    border: 1px solid #484f58 !important;
    color: #f0f6fc !important;
    background: transparent !important;
    transition: all 0.3s ease;
    border-radius: 8px !important;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #484f58 0%, #656c76 100%) !important;
    border-color: #656c76 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm) !important;
}

/* ========================================
   DROPDOWNS - MODE SOMBRE MODERNE
   ======================================== */

[data-theme="dark"] .dropdown-menu {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    box-shadow: var(--shadow-xl) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .dropdown-item {
    color: #f0f6fc !important;
    transition: all 0.2s ease;
    border-radius: 8px !important;
    margin: 2px 8px;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(88, 166, 255, 0.05)) !important;
    color: #58a6ff !important;
}

[data-theme="dark"] .dropdown-item.active {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-divider {
    border-color: #30363d !important;
    margin: 8px 0;
}

/* ========================================
   BADGES - MODE SOMBRE ÉLÉGANT
   ======================================== */

/* [data-theme="dark"] .badge - STYLE SUPPRIMÉ pour laisser les couleurs de la BDD s'appliquer */

/* Force le texte des badges à être sombre en mode sombre pour la lisibilité */
[data-theme="dark"] .badge,
[data-theme="dark"] span.badge,
[data-theme="dark"] .workflow-tag-badge,
[data-theme="dark"] .workflow-category-badge {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Styles pour les badges "+X" (tags supplémentaires) - Thème bordeaux du site */
.more-tags-badge {
    background: linear-gradient(135deg, #8b2635 0%, #c8908a 100%) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 4px rgba(139, 38, 53, 0.3) !important;
    font-weight: 500 !important;
}

.more-tags-badge:hover {
    background: linear-gradient(135deg, #a0364a 0%, #d4a5a5 100%) !important;
    transform: translateY(-1px) scale(1.05) !important;
    box-shadow: 0 4px 8px rgba(139, 38, 53, 0.4) !important;
}

[data-theme="dark"] .more-tags-badge {
    background: linear-gradient(135deg, #8b2635 0%, #c8908a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(139, 38, 53, 0.4) !important;
}

[data-theme="dark"] .more-tags-badge:hover {
    background: linear-gradient(135deg, #c8908a 0%, #e6b5a8 100%) !important;
    box-shadow: 0 4px 8px rgba(200, 144, 138, 0.5) !important;
}

/* Conteneur pour l'expansion des tags */
.tags-container {
    position: relative;
}

.hidden-tags {
    display: none;
}

.hidden-tags.show {
    display: inline;
}

/* Animation pour l'apparition des tags cachés */
.hidden-tags .badge {
    animation: fadeInScale 0.3s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles badges Bootstrap supprimés - Les couleurs viennent de la BDD */

/* ========================================
   FOOTER - MODE SOMBRE ÉLÉGANT
   ======================================== */

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important;
    border-top: 1px solid #30363d !important;
    color: #f0f6fc !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] footer h6 {
    color: #f0f6fc !important;
    font-weight: 600;
}

[data-theme="dark"] .footer-text {
    color: #8b949e !important;
}

/* ========================================
   WORKFLOW CARDS - DESIGN SPÉCIAL
   ======================================== */

[data-theme="dark"] .workflow-card {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .workflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #238636, #58a6ff, #da3633);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .workflow-card:hover {
    background: linear-gradient(135deg, #1c2128 0%, #21262d 100%) !important;
    border-color: #58a6ff !important;
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

[data-theme="dark"] .workflow-card:hover::before {
    opacity: 1;
}

/* ========================================
   AMÉLIORATIONS VISUELLES SUPPLÉMENTAIRES
   ======================================== */

/* Scrollbars personnalisées */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #161b22;
    border-radius: 6px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #30363d 0%, #484f58 100%);
    border-radius: 6px;
    border: 2px solid #161b22;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #484f58 0%, #656c76 100%);
}

/* Sélection de texte */
[data-theme="dark"] ::selection {
    background: rgba(88, 166, 255, 0.3);
    color: #ffffff;
}

[data-theme="dark"] ::-moz-selection {
    background: rgba(88, 166, 255, 0.3);
    color: #ffffff;
}

/* Liens améliorés */
[data-theme="dark"] a {
    color: #58a6ff !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] a:hover {
    color: #79c0ff !important;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
}

/* Titres avec effet de profondeur */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f0f6fc !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animations globales */
[data-theme="dark"] * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
} 

/* ========================================
   ÉLÉMENTS MANQUANTS POUR MODE SOMBRE COMPLET
   ======================================== */

/* Tables admin complètes */
[data-theme="dark"] .table {
    --bs-table-bg: #161b22 !important;
    --bs-table-striped-bg: #21262d !important;
    --bs-table-hover-bg: #21262d !important;
    --bs-table-border-color: #30363d !important;
    background-color: #161b22 !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    border-color: #30363d !important;
    color: #f0f6fc !important;
    background-color: transparent !important;
}

[data-theme="dark"] .table thead th {
    background-color: #21262d !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}

[data-theme="dark"] .table tbody tr {
    background-color: #161b22 !important;
}

[data-theme="dark"] .table tbody tr:nth-of-type(odd) {
    background-color: #21262d !important;
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: #262c36 !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td,
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: #21262d !important;
}

[data-theme="dark"] .table-light {
    --bs-table-bg: #21262d !important;
    --bs-table-striped-bg: #161b22 !important;
    background-color: #21262d !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .table-light th {
    background-color: #21262d !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}

/* Headers de sections (zones roses/saumon) */
[data-theme="dark"] .bg-light,
[data-theme="dark"] .header-section,
[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}

/* Zones de drag & drop pour upload */
[data-theme="dark"] .upload-area,
[data-theme="dark"] .drop-zone,
[data-theme="dark"] .file-drop-area {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 2px dashed #30363d !important;
    color: #f0f6fc !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .upload-area:hover,
[data-theme="dark"] .drop-zone:hover,
[data-theme="dark"] .file-drop-area:hover {
    border-color: #58a6ff !important;
    background: linear-gradient(135deg, #1c2128 0%, #21262d 100%) !important;
}

[data-theme="dark"] .upload-area.dragover,
[data-theme="dark"] .drop-zone.dragover,
[data-theme="dark"] .file-drop-area.dragover {
    border-color: #58a6ff !important;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(88, 166, 255, 0.05)) !important;
}

/* Pagination complète */
[data-theme="dark"] .pagination {
    background-color: transparent !important;
}

[data-theme="dark"] .page-link {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #58a6ff !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .page-link:hover {
    background-color: #21262d !important;
    border-color: #484f58 !important;
    color: #79c0ff !important;
    transform: translateY(-1px);
}

[data-theme="dark"] .page-item.active .page-link {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%) !important;
    border-color: #238636 !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .page-item.disabled .page-link {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #484f58 !important;
    opacity: 0.5;
}

/* Breadcrumbs */
[data-theme="dark"] .breadcrumb {
    background-color: transparent !important;
    padding: 0.75rem 1rem;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #58a6ff !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .breadcrumb-item a:hover {
    color: #79c0ff !important;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #8b949e !important;
}

[data-theme="dark"] .breadcrumb-item.active {
    color: #f0f6fc !important;
}

/* Progress bars */
[data-theme="dark"] .progress {
    background-color: #30363d !important;
    border-radius: 8px !important;
}

[data-theme="dark"] .progress-bar {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%) !important;
    border-radius: 8px !important;
}

/* List groups */
[data-theme="dark"] .list-group {
    background-color: transparent !important;
}

[data-theme="dark"] .list-group-item {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .list-group-item:hover {
    background-color: #21262d !important;
    border-color: #484f58 !important;
}

[data-theme="dark"] .list-group-item.active {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%) !important;
    border-color: #238636 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .list-group-item-action:hover {
    background-color: #21262d !important;
    color: #f0f6fc !important;
}

/* Tooltips */
[data-theme="dark"] .tooltip-inner {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    color: #f0f6fc !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-md) !important;
}

[data-theme="dark"] .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #21262d !important;
}

[data-theme="dark"] .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #21262d !important;
}

[data-theme="dark"] .tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #21262d !important;
}

[data-theme="dark"] .tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #21262d !important;
}

/* Alertes système */
[data-theme="dark"] .alert {
    border-color: #30363d !important;
    border-radius: 8px !important;
}

[data-theme="dark"] .alert-success {
    background: linear-gradient(135deg, #0d2818 0%, #1a3826 100%) !important;
    border-color: #238636 !important;
    color: #4ac26b !important;
}

[data-theme="dark"] .alert-danger {
    background: linear-gradient(135deg, #2d0d0d 0%, #3d1414 100%) !important;
    border-color: #da3633 !important;
    color: #f85149 !important;
}

[data-theme="dark"] .alert-warning {
    background: linear-gradient(135deg, #2d2408 0%, #3d3210 100%) !important;
    border-color: #bf8700 !important;
    color: #d29922 !important;
}

[data-theme="dark"] .alert-info {
    background: linear-gradient(135deg, #0c2d48 0%, #143d5c 100%) !important;
    border-color: #0969da !important;
    color: #79c0ff !important;
}

/* Modales */
[data-theme="dark"] .modal-content {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-xl) !important;
}

[data-theme="dark"] .modal-header {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    border-bottom: 1px solid #30363d !important;
    color: #f0f6fc !important;
    border-radius: 12px 12px 0 0 !important;
}

[data-theme="dark"] .modal-body {
    background: transparent !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .modal-footer {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    border-top: 1px solid #30363d !important;
    border-radius: 0 0 12px 12px !important;
}

[data-theme="dark"] .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Headers spéciaux (comme "Mes Workflows") */
[data-theme="dark"] .page-header,
[data-theme="dark"] .section-title,
[data-theme="dark"] .workflow-header {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Filtres et contrôles */
[data-theme="dark"] .filter-section,
[data-theme="dark"] .controls-section {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    padding: 1rem !important;
}

[data-theme="dark"] .btn-filter,
[data-theme="dark"] .btn-control {
    background: linear-gradient(135deg, #30363d 0%, #484f58 100%) !important;
    border: none !important;
    color: #f0f6fc !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .btn-filter:hover,
[data-theme="dark"] .btn-control:hover {
    background: linear-gradient(135deg, #484f58 0%, #656c76 100%) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm) !important;
}

/* Zones de contenu principal */
[data-theme="dark"] .main-content,
[data-theme="dark"] .content-wrapper {
    background-color: transparent !important;
}

/* Sidebars et panels */
[data-theme="dark"] .sidebar,
[data-theme="dark"] .panel,
[data-theme="dark"] .widget {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    color: #f0f6fc !important;
}

/* Boutons spéciaux */
[data-theme="dark"] .btn-success {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .btn-success:hover {
    background: linear-gradient(135deg, #2ea043 0%, #3fb950 100%) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}

[data-theme="dark"] .btn-danger {
    background: linear-gradient(135deg, #da3633 0%, #f85149 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .btn-danger:hover {
    background: linear-gradient(135deg, #f85149 0%, #ff6b6b 100%) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}

[data-theme="dark"] .btn-warning {
    background: linear-gradient(135deg, #bf8700 0%, #d29922 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .btn-warning:hover {
    background: linear-gradient(135deg, #d29922 0%, #e6a532 100%) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}

[data-theme="dark"] .btn-info {
    background: linear-gradient(135deg, #0969da 0%, #1f6feb 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .btn-info:hover {
    background: linear-gradient(135deg, #1f6feb 0%, #388bfd 100%) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}

/* Logs et fichiers */
[data-theme="dark"] .log-viewer,
[data-theme="dark"] .file-viewer,
[data-theme="dark"] .code-viewer {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    border-radius: 8px !important;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', 'Courier New', monospace;
}

[data-theme="dark"] .log-entry,
[data-theme="dark"] .file-line {
    border-bottom: 1px solid #30363d !important;
    color: #f0f6fc !important;
    padding: 0.5rem 1rem;
}

[data-theme="dark"] .log-entry:hover,
[data-theme="dark"] .file-line:hover {
    background-color: rgba(88, 166, 255, 0.1) !important;
}

/* Labels et petits éléments */
[data-theme="dark"] .label,
[data-theme="dark"] .tag,
[data-theme="dark"] .chip {
    background: linear-gradient(135deg, #30363d 0%, #484f58 100%) !important;
    color: #f0f6fc !important;
    border-radius: 6px !important;
    padding: 0.25rem 0.5rem !important;
    border: 1px solid #30363d !important;
}

/* Workflow cards améliorées */
[data-theme="dark"] .workflow-card .card-title {
    color: #f0f6fc !important;
    font-weight: 600;
}

[data-theme="dark"] .workflow-card .card-text {
    color: #8b949e !important;
}

[data-theme="dark"] .workflow-card .btn {
    border-radius: 6px !important;
    font-weight: 500;
}

/* Input groups */
[data-theme="dark"] .input-group-text {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

/* Borders et dividers */
[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
    border-color: #30363d !important;
}

[data-theme="dark"] hr {
    border-color: #30363d !important;
    opacity: 1;
}

/* JSON et code highlighting */
[data-theme="dark"] .json-code-block {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', 'Courier New', monospace;
}

[data-theme="dark"] .json-code-block code {
    background: transparent !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .json-key {
    color: #79c0ff !important;
}

[data-theme="dark"] .json-string {
    color: #a5d6ff !important;
}

[data-theme="dark"] .json-number {
    color: #79c0ff !important;
}

[data-theme="dark"] .json-boolean {
    color: #ffa657 !important;
}

[data-theme="dark"] .json-null {
    color: #8b949e !important;
}

[data-theme="dark"] .json-punctuation {
    color: #f0f6fc !important;
}

/* Admin specific improvements */
[data-theme="dark"] .admin-stat-card {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #238636, #58a6ff, #da3633);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .admin-stat-card:hover {
    background: linear-gradient(135deg, #1c2128 0%, #21262d 100%) !important;
    border-color: #484f58 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg) !important;
}

[data-theme="dark"] .admin-stat-card:hover::before {
    opacity: 1;
}

/* User role badges */
[data-theme="dark"] .user-role-admin {
    background: linear-gradient(135deg, #da3633 0%, #f85149 100%) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.35em 0.65em !important;
    font-weight: 500;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .user-role-contributor {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.35em 0.65em !important;
    font-weight: 500;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .user-role-viewer {
    background: linear-gradient(135deg, #0969da 0%, #1f6feb 100%) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 0.35em 0.65em !important;
    font-weight: 500;
    box-shadow: var(--shadow-sm) !important;
}

/* File upload improvements */
[data-theme="dark"] .custom-file-input,
[data-theme="dark"] .file-input {
    background-color: #21262d !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .custom-file-label,
[data-theme="dark"] .file-label {
    background-color: #21262d !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

/* Small elements */
[data-theme="dark"] small,
[data-theme="dark"] .small {
    color: #8b949e !important;
}

[data-theme="dark"] mark,
[data-theme="dark"] .mark {
    background-color: rgba(255, 235, 59, 0.3) !important;
    color: #f0f6fc !important;
}

/* Close buttons */
[data-theme="dark"] .btn-close {
    background: none !important;
    opacity: 0.7;
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .btn-close:hover {
    opacity: 1;
}

/* Pre et code elements */
[data-theme="dark"] pre {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
}

[data-theme="dark"] code {
    background-color: rgba(88, 166, 255, 0.1) !important;
    color: #58a6ff !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 4px !important;
}

/* Blockquotes */
[data-theme="dark"] blockquote {
    border-left: 4px solid #58a6ff !important;
    background-color: rgba(88, 166, 255, 0.05) !important;
    color: #8b949e !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Utilitaires de fond Bootstrap overrides */
[data-theme="dark"] .bg-white {
    background-color: #161b22 !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .bg-light {
    background-color: #21262d !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .bg-secondary {
    background-color: #30363d !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .bg-dark {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
}

/* Final improvements for completeness */
[data-theme="dark"] .text-white {
    color: #f0f6fc !important;
}

[data-theme="dark"] .text-black {
    color: #f0f6fc !important;
}

[data-theme="dark"] .text-body {
    color: #f0f6fc !important;
}

[data-theme="dark"] .border-light {
    border-color: #30363d !important;
}

[data-theme="dark"] .border-dark {
    border-color: #484f58 !important;
} 

/* ========================================
   CORRECTIONS SPÉCIFIQUES MY-WORKFLOWS ET PAGES SIMILAIRES
   ======================================== */

/* Header "Mes Workflows" et pages similaires - Éliminer le fond rose/saumon */
[data-theme="dark"] .container .row .col-12:first-child,
[data-theme="dark"] .page-header,
[data-theme="dark"] .workflow-header,
[data-theme="dark"] .user-header {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Zone de filtres spécifique - Éliminer le fond blanc */
[data-theme="dark"] .bg-light.p-3,
[data-theme="dark"] .bg-light.p-4,
[data-theme="dark"] .filter-container,
[data-theme="dark"] .controls-container {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
}

/* Boutons de filtres avec couleurs du thème (bordeaux) */
[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #8b2635 0%, #a85a5a 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, #a85a5a 0%, #c8908a 100%) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}

/* Liens dans les boutons - Remplacer le bleu par le bordeaux */
[data-theme="dark"] .btn a,
[data-theme="dark"] .btn-link {
    color: #ffffff !important;
    text-decoration: none !important;
}

[data-theme="dark"] .btn a:hover,
[data-theme="dark"] .btn-link:hover {
    color: #f0f6fc !important;
    text-shadow: none !important;
}

/* Liens généraux - Couleur bordeaux du thème */
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #c8908a !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #e6b5a8 !important;
    text-shadow: 0 0 8px rgba(200, 144, 138, 0.3) !important;
}

/* Boutons "Workflows similaires" */
[data-theme="dark"] .btn-info,
[data-theme="dark"] .btn-outline-info {
    background: linear-gradient(135deg, #4a7ba7 0%, #5a8bb7 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .btn-info:hover,
[data-theme="dark"] .btn-outline-info:hover {
    background: linear-gradient(135deg, #5a8bb7 0%, #6a9bc7 100%) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}

/* Status badges avec couleurs du thème */
[data-theme="dark"] .badge.bg-primary {
    background: linear-gradient(135deg, #8b2635 0%, #a85a5a 100%) !important;
    color: #ffffff !important;
}

/* Section de recherche/filtres */
[data-theme="dark"] .search-section,
[data-theme="dark"] .filter-section {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

/* Input de recherche */
[data-theme="dark"] .search-section input[type="search"],
[data-theme="dark"] .filter-section input[type="search"],
[data-theme="dark"] input.form-control[placeholder*="Search"],
[data-theme="dark"] input.form-control[placeholder*="Recherch"] {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    border-radius: 6px !important;
}

/* Boutons de statut avec couleurs spécifiques du thème */
[data-theme="dark"] .btn.btn-outline-secondary.active,
[data-theme="dark"] .btn.btn-secondary.active {
    background: linear-gradient(135deg, #8b2635 0%, #a85a5a 100%) !important;
    border-color: #8b2635 !important;
    color: #ffffff !important;
}

/* Override des éléments de navigation bootstrap */
[data-theme="dark"] .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #8b2635 0%, #a85a5a 100%) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
}

[data-theme="dark"] .nav-pills .nav-link {
    color: #f0f6fc !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav-pills .nav-link:hover {
    background-color: rgba(139, 38, 53, 0.1) !important;
    color: #c8908a !important;
}

/* Correction pour les headers de cartes */
[data-theme="dark"] .card-header.bg-light,
[data-theme="dark"] .card-header.text-dark {
    background: linear-gradient(135deg, #21262d 0%, #262c36 100%) !important;
    color: #f0f6fc !important;
    border-bottom: 1px solid #30363d !important;
}

/* Texte dans les headers */
[data-theme="dark"] .card-header h1,
[data-theme="dark"] .card-header h2,
[data-theme="dark"] .card-header h3,
[data-theme="dark"] .card-header h4,
[data-theme="dark"] .card-header h5,
[data-theme="dark"] .card-header h6 {
    color: #f0f6fc !important;
    margin: 0;
}

/* Icônes dans les headers */
[data-theme="dark"] .card-header .bi,
[data-theme="dark"] .page-header .bi {
    color: #c8908a !important;
}

/* Zone de pagination spécifique */
[data-theme="dark"] .pagination-info,
[data-theme="dark"] .results-info {
    color: #8b949e !important;
    font-style: italic;
}

/* Corrections pour les zones avec classes Bootstrap persistantes */
[data-theme="dark"] .row .col-12 .bg-light,
[data-theme="dark"] .container-fluid .bg-light,
[data-theme="dark"] .d-flex.bg-light {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
}

/* Sections de contenu blanc */
[data-theme="dark"] .content-section,
[data-theme="dark"] .main-section {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    color: #f0f6fc !important;
    border-radius: 8px !important;
    border: 1px solid #30363d !important;
}

/* Labels et textes de formulaires */
[data-theme="dark"] .form-label,
[data-theme="dark"] label {
    color: #f0f6fc !important;
    font-weight: 500;
}

/* Boutons secondaires personnalisés */
[data-theme="dark"] .btn-light {
    background: linear-gradient(135deg, #30363d 0%, #484f58 100%) !important;
    border: none !important;
    color: #f0f6fc !important;
    border-radius: 6px !important;
}

[data-theme="dark"] .btn-light:hover {
    background: linear-gradient(135deg, #484f58 0%, #656c76 100%) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm) !important;
}

/* Messages d'information */
[data-theme="dark"] .info-message,
[data-theme="dark"] .help-text {
    color: #8b949e !important;
    font-size: 0.9rem;
}

/* Corrections pour les éléments flex */
[data-theme="dark"] .d-flex.justify-content-between,
[data-theme="dark"] .d-flex.align-items-center {
    background-color: transparent !important;
}

/* Override final pour éliminer tous les fonds clairs */
[data-theme="dark"] *[class*="bg-light"],
[data-theme="dark"] *[style*="background-color: #f8f9fa"],
[data-theme="dark"] *[style*="background: #f8f9fa"] {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%) !important;
    color: #f0f6fc !important;
}

/* Corrections spécifiques pour les titres en bordures de couleur */
[data-theme="dark"] .text-burgundy {
    color: #c8908a !important;
}

/* Workflow status badges - Supprimés pour laisser les couleurs BDD */ 

/* ========================================
   MY-WORKFLOWS PAGE - Mode sombre complet
   ======================================== */

/* Container principal */
[data-theme="dark"] .workflows-container {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important;
    color: #f0f6fc !important;
}

/* Header de page - Éliminer le rose/saumon */
[data-theme="dark"] .workflows-header {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%) !important;
    color: #f0f6fc !important;
    border-bottom: 1px solid #30363d !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .workflows-header h1 {
    color: #f0f6fc !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .workflows-header p {
    color: #8b949e !important;
}

/* Carte de filtres - Éliminer le fond blanc */
[data-theme="dark"] .filters-card {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .filters-card .card-body {
    background: #21262d !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .filters-card h6 {
    color: #f0f6fc !important;
}

/* Boutons de filtres avec couleurs bordeaux */
[data-theme="dark"] .status-filter-group .btn {
    background: #161b22 !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
}

[data-theme="dark"] .status-filter-group .btn:hover,
[data-theme="dark"] .status-filter-group .btn.active {
    background: #8b2635 !important;
    color: #ffffff !important;
    border-color: #c8908a !important;
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.3) !important;
}

/* Cartes de workflow */
[data-theme="dark"] .workflow-card {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .workflow-card::before {
    background: linear-gradient(90deg, #8b2635, #c8908a) !important;
}

[data-theme="dark"] .workflow-card:hover {
    border-color: #8b2635 !important;
    box-shadow: 0 12px 32px rgba(139, 38, 53, 0.4) !important;
}

[data-theme="dark"] .workflow-card .card-header {
    background: transparent !important;
    border: none !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .workflow-card .card-body {
    background: transparent !important;
    color: #f0f6fc !important;
}

/* Correction spécifique pour .card-footer.bg-light */
[data-theme="dark"] .workflow-card .card-footer,
[data-theme="dark"] .card-footer.bg-light {
    background: #161b22 !important;
    border-top: 1px solid #30363d !important;
    color: #f0f6fc !important;
}

/* Titres de workflow */
[data-theme="dark"] .workflow-title {
    color: #f0f6fc !important;
}

[data-theme="dark"] .workflow-title a {
    color: #f0f6fc !important;
}

[data-theme="dark"] .workflow-title a:hover {
    color: #c8908a !important;
}

/* Badges de statut - Supprimés pour laisser les couleurs BDD */

/* Tags et catégories - Laisse les couleurs de la BDD s'appliquer naturellement en mode sombre aussi */

/* BADGES MODE SOMBRE - Laisse les couleurs de la BDD s'appliquer naturellement */

/* COULEURS CYCLIQUES SUPPRIMÉES - Les couleurs viennent de la BDD */

/* Badges spéciaux pour catégories */
[data-theme="dark"] .badge .bi-folder {
    color: inherit !important;
    opacity: 0.9 !important;
}

[data-theme="dark"] .badge .bi-tag-fill {
    color: inherit !important;
    opacity: 0.9 !important;
}

/* Correction des liens bleus dans les badges - Supprimée pour laisser les couleurs BDD */

/* NETTOYAGE - Section supprimée pour éviter les conflits */

/* CORRECTION DES LIENS BLEUS ET BOUTONS BOOTSTRAP */
[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #8b2635 0%, #c8908a 100%) !important;
    border-color: #8b2635 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(139, 38, 53, 0.2) !important;
}

[data-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-outline-primary:focus,
[data-theme="dark"] .btn-primary:focus {
    background: linear-gradient(135deg, #c8908a 0%, #e6b5a8 100%) !important;
    border-color: #c8908a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(139, 38, 53, 0.3) !important;
    transform: translateY(-1px) !important;
}

[data-theme="dark"] .btn-outline-success {
    background: linear-gradient(135deg, #2ea043 0%, #46d75c 100%) !important;
    border-color: #2ea043 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(46, 160, 67, 0.2) !important;
}

[data-theme="dark"] .btn-outline-success:hover,
[data-theme="dark"] .btn-outline-success:focus {
    background: linear-gradient(135deg, #46d75c 0%, #56e66c 100%) !important;
    border-color: #46d75c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(46, 160, 67, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Boutons d'action dans les cartes */
[data-theme="dark"] .card-footer .btn {
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

[data-theme="dark"] .card-footer .btn-sm {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.85rem !important;
}

/* Badges de statut spéciaux - Supprimés pour laisser les couleurs BDD */

/* Correction des liens de navigation */
[data-theme="dark"] .text-primary {
    color: #c8908a !important;
}

[data-theme="dark"] .text-info {
    color: #58a6ff !important;
}

[data-theme="dark"] .text-success {
    color: #2ea043 !important;
}

[data-theme="dark"] .text-warning {
    color: #d29922 !important;
}

[data-theme="dark"] .text-danger {
    color: #f85149 !important;
}

/* Liens dans les statistiques */
[data-theme="dark"] .h4.text-primary {
    color: #c8908a !important;
}

[data-theme="dark"] .h4.text-success {
    color: #2ea043 !important;
}

[data-theme="dark"] .h4.text-info {
    color: #58a6ff !important;
}

[data-theme="dark"] .h4.text-warning {
    color: #d29922 !important;
}

/* Boutons avec couleurs bordeaux */
[data-theme="dark"] .btn-workflows-primary {
    background: linear-gradient(135deg, #8b2635 0%, #c8908a 100%) !important;
    color: #ffffff !important;
    border: 1px solid #8b2635 !important;
}

[data-theme="dark"] .btn-workflows-primary:hover {
    background: linear-gradient(135deg, #c8908a 0%, #8b2635 100%) !important;
    color: #ffffff !important;
    border-color: #c8908a !important;
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.4) !important;
}

[data-theme="dark"] .btn-workflows-secondary {
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%) !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
}

[data-theme="dark"] .btn-workflows-secondary:hover {
    background: linear-gradient(135deg, #30363d 0%, #21262d 100%) !important;
    color: #c8908a !important;
    border-color: #8b2635 !important;
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.2) !important;
}

/* Boutons génériques avec couleurs bordeaux */
[data-theme="dark"] .btn-workflows {
    border-radius: 6px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Dropdown */
[data-theme="dark"] .dropdown-workflows {
    background: #161b22 !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
}

[data-theme="dark"] .dropdown-workflows:hover {
    background: #21262d !important;
    color: #c8908a !important;
}

/* Empty state */
[data-theme="dark"] .empty-state {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .empty-state .empty-icon {
    color: #8b949e !important;
}

/* Pagination avec couleurs bordeaux */
[data-theme="dark"] .pagination-workflows .page-link {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
}

[data-theme="dark"] .pagination-workflows .page-link:hover {
    background: #8b2635 !important;
    color: #ffffff !important;
    border-color: #c8908a !important;
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.3) !important;
}

[data-theme="dark"] .pagination-workflows .page-item.active .page-link {
    background: #c8908a !important;
    color: #ffffff !important;
    border-color: #8b2635 !important;
}

/* Textes et éléments de contenu */
[data-theme="dark"] .text-muted {
    color: #8b949e !important;
}

[data-theme="dark"] .small,
[data-theme="dark"] small {
    color: #8b949e !important;
}

/* Liens dans les workflows avec couleurs bordeaux */
[data-theme="dark"] .workflow-card a:not(.btn) {
    color: #c8908a !important;
    text-decoration: none !important;
}

[data-theme="dark"] .workflow-card a:not(.btn):hover {
    color: #e6b5a8 !important;
}

/* Correction finale pour éliminer tous les transparents */
[data-theme="dark"] .workflows-container *[style*="background: transparent"],
[data-theme="dark"] .workflows-container *[style*="background-color: transparent"] {
    background: #21262d !important;
    color: #f0f6fc !important;
}