/* ============================================
   LDG - Modern SaaS Design System
   Inspiré de Stripe/Airbnb
   ============================================ */

/* Variables CSS pour le design moderne */
/* Palette VIBRANT MODERN (violet/indigo) - Par défaut */
:root {
    /* Couleurs primaires - Violet/Indigo moderne */
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #8b5cf6;
    --primary-600: #7c3aed;
    --primary-700: #6d28d9;
    --primary-800: #5b21b6;
    --primary-900: #4c1d95;
    
    /* Success - Vert émeraude */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-200: #a7f3d0;
    --success-300: #6ee7b7;
    --success-400: #34d399;
    --success-500: #10b981;
    --success-600: #059669;
    
    /* Danger - Rose/Corail moderne */
    --danger-50: #fdf2f8;
    --danger-100: #fce7f3;
    --danger-200: #fbcfe8;
    --danger-300: #f9a8d4;
    --danger-400: #f472b6;
    --danger-500: #ec4899;
    --danger-600: #db2777;
    
    /* Warning - Ambre doré */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-300: #fcd34d;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    
    /* Info - Cyan moderne */
    --info-50: #ecfeff;
    --info-100: #cffafe;
    --info-200: #a5f3fc;
    --info-300: #67e8f9;
    --info-400: #22d3ee;
    --info-500: #06b6d4;
    --info-600: #0891b2;
    
    /* Neutres */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Ombres diffuses (style Stripe/Airbnb) */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    
    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Boutons Modernes
   ============================================ */

.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.btn:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary-500);
    ring-opacity: 0.2;
}

/* Boutons Primary */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-color: var(--primary-500);
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border-color: var(--primary-600);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.35);
}

.btn-primary:active {
    background: var(--primary-700);
    box-shadow: 0 2px 8px 0 rgba(139, 92, 246, 0.2);
}

/* Boutons Success */
.btn-success {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    color: white;
    border-color: var(--success-500);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-600) 0%, #15803d 100%);
    border-color: var(--success-600);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.35);
}

/* Boutons Danger */
.btn-danger {
    background: linear-gradient(135deg, var(--danger-500) 0%, var(--danger-600) 100%);
    color: white;
    border-color: var(--danger-500);
    box-shadow: 0 4px 14px 0 rgba(236, 72, 153, 0.25);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-600) 0%, #b91c1c 100%);
    border-color: var(--danger-600);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(236, 72, 153, 0.35);
}

/* Boutons Warning */
.btn-warning {
    background: linear-gradient(135deg, var(--warning-500) 0%, var(--warning-600) 100%);
    color: white;
    border-color: var(--warning-500);
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.25);
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--warning-600) 0%, #b45309 100%);
    border-color: var(--warning-600);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.35);
}

/* Boutons Info */
.btn-info {
    background: linear-gradient(135deg, var(--info-500) 0%, var(--info-600) 100%);
    color: white;
    border-color: var(--info-500);
    box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.25);
}

.btn-info:hover {
    background: linear-gradient(135deg, var(--info-600) 0%, #0891b2 100%);
    border-color: var(--info-600);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(6, 182, 212, 0.35);
}

/* Boutons Secondary */
.btn-secondary {
    background: white;
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

/* Boutons Outline */
.btn-outline-primary {
    background: white;
    color: var(--primary-600);
    border-color: var(--primary-200);
}

.btn-outline-primary:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
}

.btn-outline-success {
    background: white;
    color: var(--success-600);
    border-color: var(--success-200);
}

.btn-outline-success:hover {
    background: var(--success-50);
    border-color: var(--success-300);
    color: var(--success-700);
}

.btn-outline-danger {
    background: white;
    color: var(--danger-600);
    border-color: var(--danger-200);
}

.btn-outline-danger:hover {
    background: var(--danger-50);
    border-color: var(--danger-300);
    color: var(--danger-700);
}

.btn-outline-warning {
    background: white;
    color: var(--warning-600);
    border-color: var(--warning-200);
}

.btn-outline-warning:hover {
    background: var(--warning-50);
    border-color: var(--warning-300);
    color: var(--warning-700);
}

.btn-outline-info {
    background: white;
    color: var(--info-600);
    border-color: var(--info-200);
}

.btn-outline-info:hover {
    background: var(--info-50);
    border-color: var(--info-300);
    color: var(--info-700);
}

.btn-outline-secondary {
    background: white;
    color: var(--gray-600);
    border-color: var(--gray-200);
}

.btn-outline-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-700);
}

/* Tailles de boutons */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    min-height: 40px;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    min-height: 48px;
    border-radius: var(--radius-lg);
}

/* Boutons disabled */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Boutons actifs dans les groupes */
.btn-group .btn.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Cards Modernes
   ============================================ */

.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
}

/* ============================================
   Formulaires Modernes
   ============================================ */

.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    background: white;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:hover,
.form-select:hover {
    border-color: var(--gray-300);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

/* ============================================
   Navigation & Sidebar
   ============================================ */

.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
    padding: var(--spacing-md) 0;
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-link.active {
    color: var(--primary-600);
    background: var(--primary-50);
}

/* ============================================
   Tables Modernes
   ============================================ */

.table {
    background: white;
}

.table thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-200);
    padding: var(--spacing-md);
}

.table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table td {
    padding: var(--spacing-md);
    color: var(--gray-700);
}

/* ============================================
   Badges Modernes
   ============================================ */

.badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.5;
}

.bg-primary {
    background: var(--primary-500) !important;
}

.bg-success {
    background: var(--success-500) !important;
}

.bg-danger {
    background: var(--danger-500) !important;
}

.bg-warning {
    background: var(--warning-500) !important;
}

.bg-info {
    background: var(--info-500) !important;
}

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

/* ============================================
   Alerts Modernes
   ============================================ */

.alert {
    border-radius: var(--radius-md);
    border: 1px solid;
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: var(--shadow-xs);
}

.alert-primary {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-800);
}

.alert-success {
    background: var(--success-50);
    border-color: var(--success-200);
    color: var(--success-800);
}

.alert-danger {
    background: var(--danger-50);
    border-color: var(--danger-200);
    color: var(--danger-800);
}

.alert-warning {
    background: var(--warning-50);
    border-color: var(--warning-200);
    color: var(--warning-800);
}

.alert-info {
    background: var(--info-50);
    border-color: var(--info-200);
    color: var(--info-800);
}

/* ============================================
   Background & Layout
   ============================================ */

body {
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

.container,
.container-fluid {
    background: transparent;
}

/* Main content area */
main,
.content-wrapper {
    background: var(--gray-50);
    min-height: calc(100vh - 60px);
    padding: var(--spacing-xl) 0;
}

/* Sections avec fond blanc */
.section-white {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   Utilities
   ============================================ */

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

/* Espacements blancs */
.bg-white {
    background: white !important;
}

/* Border radius */
.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

.rounded-md {
    border-radius: var(--radius-md) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

/* ============================================
   Sidebar Moderne
   ============================================ */

.sidebar {
    background: white;
    border-right: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.sidebar-link,
.sidebar-item {
    color: var(--gray-600);
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    margin: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-link:hover,
.sidebar-item:hover {
    background: var(--gray-50);
    color: var(--primary-600);
    transform: translateX(2px);
}

.sidebar-link.active,
.sidebar-item.active {
    background: var(--primary-50);
    color: var(--primary-600);
    border-left: 3px solid var(--primary-500);
}

.sidebar-brand {
    color: var(--primary-600);
    font-weight: 600;
}

/* ============================================
   List Groups Modernes
   ============================================ */

.list-group-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    padding: var(--spacing-md);
    background: white;
    transition: all var(--transition-base);
}

.list-group-item:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateX(2px);
}

.list-group-item:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.list-group-item:last-child {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* ============================================
   Modals Modernes
   ============================================ */

.modal-content {
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
}

/* ============================================
   Dropdowns Modernes
   ============================================ */

.dropdown-menu {
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary-600);
}

.dropdown-item.active {
    background: var(--primary-50);
    color: var(--primary-600);
}

/* ============================================
   Progress Bars Modernes
   ============================================ */

.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .sidebar {
        box-shadow: var(--shadow-xl);
    }
}

/* ============================================
   LDG Thème sombre – overrides (priorité sur tout)
   ============================================ */
body {
    background-color: #161c24 !important;
    color: #e2e8f0 !important;
}
body main,
main#main-content {
    background: transparent !important;
    background-color: transparent !important;
}
body .section-white {
    background: #1e242c !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
}
body .card {
    background: #1e242c !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
}
body .card-header {
    background: #252b33 !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
}
body .card-header.bg-white,
body .card-header.bg-light {
    background: #252b33 !important;
    color: #e2e8f0 !important;
}
body .card-header.bg-primary,
body .card-header.bg-success,
body .card-header.bg-info {
    color: #e2e8f0 !important;
}
body .card-header.bg-danger {
    color: #f1f5f9 !important;
}
body .card-header.bg-warning {
    background: rgba(245,158,11,0.2) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body .card-header.bg-secondary {
    color: #e2e8f0 !important;
}
body .card-footer {
    background: #252b33 !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
}
body .card-footer.bg-light {
    background: #252b33 !important;
    color: #e2e8f0 !important;
}
body .card-body {
    color: #e2e8f0 !important;
}
body .bg-white {
    background: #1e242c !important;
    color: #e2e8f0 !important;
}
body .bg-light {
    background: #252b33 !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
/* Cartes dashboard / stats (stat-card, stat-chart-card, quick-action-card) */
body .stat-card,
body .stat-chart-card {
    background: #1e242c !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
}
body .stat-card:hover,
body .stat-chart-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.3) !important;
}
body .stat-value,
body .stat-chart-card h5 {
    color: #e2e8f0 !important;
}
body .stat-label {
    color: #94a3b8 !important;
}
body .quick-action-card {
    background: #252b33 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}
body .quick-action-card:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}
/* Cartes produit / modern (product-card-modern, etc.) */
body .product-card-modern,
body .card.shadow-sm,
body .card.border-0 {
    background: #1e242c !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body .category-card,
body .hover-card,
body .dashboard-widget,
body .day-card {
    background: #1e242c !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body .dashboard-widget:hover {
    border-color: rgba(255,255,255,0.1) !important;
}
body .table {
    background: transparent !important;
    color: #e2e8f0 !important;
}
body .table thead th,
body .table-light {
    background: #252b33 !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body .table td,
body .table tbody th {
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body .table tbody tr:hover {
    background: rgba(255,255,255,0.04) !important;
}
body .form-control,
body .form-select {
    background: #252b33 !important;
    border-color: #2d3544 !important;
    color: #e2e8f0 !important;
}
body .form-control:focus,
body .form-select:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 0.2rem rgba(139,92,246,0.2) !important;
}
body .form-control::placeholder {
    color: #64748b !important;
}
body .form-label {
    color: #e2e8f0 !important;
}
body .form-check-label {
    color: #e2e8f0 !important;
}
body .form-floating > label {
    color: #94a3b8 !important;
}
body .text-muted {
    color: #94a3b8 !important;
}
body .btn-secondary {
    background: #252b33 !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #e2e8f0 !important;
}
body .btn-secondary:hover {
    background: #2a313c !important;
    border-color: rgba(255,255,255,0.18) !important;
    color: #e2e8f0 !important;
}
body .btn-outline-primary {
    background: transparent !important;
    color: #a78bfa !important;
    border-color: rgba(167,139,250,0.5) !important;
}
body .btn-outline-primary:hover { background: rgba(139,92,246,0.15) !important; color: #c4b5fd !important; }
body .btn-outline-secondary {
    background: transparent !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.2) !important;
}
body .btn-outline-secondary:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.25) !important;
}
body .btn-outline-success {
    background: transparent !important;
    color: #6ee7b7 !important;
    border-color: rgba(110,231,183,0.5) !important;
}
body .btn-outline-success:hover { background: rgba(16,185,129,0.15) !important; color: #a7f3d0 !important; }
body .btn-outline-danger {
    background: transparent !important;
    color: #fca5a5 !important;
    border-color: rgba(248,113,113,0.5) !important;
}
body .btn-outline-danger:hover { background: rgba(239,68,68,0.15) !important; color: #fecaca !important; }
body .btn-outline-warning {
    background: transparent !important;
    color: #fcd34d !important;
    border-color: rgba(251,191,36,0.5) !important;
}
body .btn-outline-warning:hover { background: rgba(245,158,11,0.15) !important; color: #fde68a !important; }
body .btn-outline-info {
    background: transparent !important;
    color: #67e8f9 !important;
    border-color: rgba(103,232,249,0.5) !important;
}
body .btn-outline-info:hover { background: rgba(6,182,212,0.15) !important; color: #a5f3fc !important; }
body .list-group-item {
    background: #1e242c !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
}
body .list-group-item:hover {
    background: rgba(255,255,255,0.04) !important;
}
body .modal-content {
    background: #1e242c !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
}
body .modal-header,
body .modal-footer {
    border-color: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
}
body .modal-title {
    color: #e2e8f0 !important;
}
body .dropdown-menu {
    background: #1e242c !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body .dropdown-item {
    color: #e2e8f0 !important;
}
body .dropdown-item:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
}
body .dropdown-divider {
    border-color: rgba(255,255,255,0.06) !important;
}
body .navbar:not(.navbar-ldg) {
    background: #1e242c !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body .invalid-feedback {
    color: #fca5a5 !important;
}
body .valid-feedback {
    color: #6ee7b7 !important;
}
body .page-link {
    background: #252b33 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #e2e8f0 !important;
}
body .page-link:hover {
    background: #2a313c !important;
    color: #e2e8f0 !important;
}
body .page-item.active .page-link {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: #fff !important;
}
body .breadcrumb-item a {
    color: #94a3b8 !important;
}
body .breadcrumb-item.active {
    color: #e2e8f0 !important;
}
body .alert {
    border-color: rgba(255,255,255,0.08) !important;
}
body .alert-success { background: rgba(16,185,129,0.15) !important; color: #6ee7b7 !important; }
body .alert-danger { background: rgba(239,68,68,0.15) !important; color: #fca5a5 !important; }
body .alert-warning { background: rgba(245,158,11,0.15) !important; color: #fde68a !important; }
body .alert-info { background: rgba(6,182,212,0.15) !important; color: #67e8f9 !important; }
body .alert-primary { background: rgba(139,92,246,0.15) !important; color: #c4b5fd !important; }
body .card-body a:not(.btn):not([class*="text-"]),
body main a:not(.btn):not(.nav-link):not([class*="text-"]) {
    color: #a78bfa;
}
body .card-body a:not(.btn):hover,
body main a:not(.btn):not(.nav-link):hover {
    color: #c4b5fd;
}
body .alert a {
    color: inherit;
    text-decoration: underline;
}
body .badge.bg-white,
body .badge.bg-light {
    background: #252b33 !important;
    color: #e2e8f0 !important;
}
body .badge.bg-light.text-dark {
    color: #e2e8f0 !important;
}
body .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
/* DataTables thème sombre – fond et contenu */
body .dataTables_wrapper {
    background: transparent !important;
    color: #e2e8f0 !important;
}
body .dataTables_wrapper .dataTables_length,
body .dataTables_wrapper .dataTables_filter,
body .dataTables_wrapper .dataTables_info,
body .dataTables_wrapper .dataTables_paginate {
    background: transparent !important;
    color: #e2e8f0 !important;
}
body .dataTables_wrapper .dataTables_length label,
body .dataTables_wrapper .dataTables_filter label {
    color: #94a3b8 !important;
}
body .dataTables_wrapper .dataTables_length select,
body .dataTables_wrapper .dataTables_filter input {
    color: #e2e8f0 !important;
}
body .dataTables_wrapper select,
body .dataTables_wrapper input {
    background: #252b33 !important;
    border-color: #2d3544 !important;
    color: #e2e8f0 !important;
}
body .dataTables_wrapper .dataTables_info {
    color: #94a3b8 !important;
}
body table.dataTable {
    background: transparent !important;
    border-collapse: collapse;
}
body table.dataTable thead th {
    background: #252b33 !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body table.dataTable tbody td,
body table.dataTable tbody th {
    background: transparent !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body table.dataTable tbody tr {
    background: transparent !important;
}
body table.dataTable tbody tr:hover td,
body table.dataTable tbody tr:hover th {
    background: rgba(255,255,255,0.04) !important;
}
body table.dataTable.stripe tbody tr.odd td,
body table.dataTable.stripe tbody tr.odd th {
    background: rgba(255,255,255,0.02) !important;
}
body table.dataTable.stripe tbody tr.odd:hover td,
body table.dataTable.stripe tbody tr.odd:hover th {
    background: rgba(255,255,255,0.04) !important;
}
body .dataTables_wrapper .dataTables_processing {
    background: #1e242c !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: #e2e8f0 !important;
}
body .dataTables_wrapper .row {
    background: transparent !important;
}
body .dataTables_paginate {
    background: transparent !important;
}
body .paginate_button {
    background: #252b33 !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #e2e8f0 !important;
}
body .paginate_button:hover {
    background: #2a313c !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.12) !important;
}
body .paginate_button.current {
    background: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    color: #fff !important;
}
body .paginate_button.disabled {
    background: #252b33 !important;
    color: #64748b !important;
}
body table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
body table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background-color: #8b5cf6 !important;
    border-color: #e2e8f0 !important;
}
