/* =========================================== */
/* NUEVO SISTEMA DE THEMES SIMPLIFICADO     */
/* Version 2.0 - CSS-First Approach         */
/* =========================================== */

/* ============================================
   VARIABLES CSS GLOBALES (Light Theme)
   ============================================ */
:root {
    /* Colores principales */
    --theme-primary: #0d6efd;
    --theme-primary-hover: #0b5ed7;
    --theme-primary-dark: #0a58ca; /* soporte para estilos que lo requieran */
    --theme-primary-strong: #0a58ca; /* usado en algunos componentes */
    --theme-primary-light: rgba(13, 110, 253, 0.1);
    
    /* Colores de superficie */
    --theme-background: #f4f6f9;
    --theme-surface: #ffffff;
    --theme-surface-secondary: #f8f9fa;
    
    /* Colores de texto */
    --theme-text-primary: #212529;
    --theme-text-secondary: #6c757d;
    --theme-text-muted: #9ca3af;
    --theme-text-inverse: #ffffff;
    
    /* Colores de borde */
    --theme-border: #dee2e6;
    --theme-border-light: #e9ecef;
    
    /* Colores semánticos */
    --theme-success: #198754;
    --theme-warning: #fd7e14;
    --theme-danger: #dc3545;
    --theme-info: #0dcaf0;
    
    /* Sidebar */
    --theme-sidebar-bg: #343a40;
    --theme-sidebar-text: #c2c7d0;
    --theme-sidebar-active: var(--theme-primary);
    --theme-sidebar-hover: rgba(13, 110, 253, 0.15);
    
    /* Sombras */
    --theme-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --theme-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
    
    /* Transiciones */
    --theme-transition: 0.15s ease;
}

/* ============================================
   DARK THEME - Estilo GitHub
   ============================================ */
[data-theme="dark"] {
    /* Colores principales - azul claro de GitHub */
    --theme-primary: #58a6ff;
    --theme-primary-hover: #79c0ff;
    --theme-primary-light: rgba(88, 166, 255, 0.15);
    --theme-primary-dark: #1158c7;
    --theme-primary-strong: #1158c7;

    /* Fondos - paleta GitHub Dark */
    --theme-background: #0d1117;
    --theme-surface: #161b22;
    --theme-surface-secondary: #21262d;

    /* Texto - alta legibilidad */
    --theme-text-primary: #c9d1d9;
    --theme-text-secondary: #8b949e;
    --theme-text-muted: #6e7681;
    --theme-text-inverse: #0d1117;

    /* Bordes - sutiles pero visibles */
    --theme-border: #30363d;
    --theme-border-light: #21262d;

    /* Colores semánticos - GitHub style */
    --theme-success: #3fb950;
    --theme-warning: #d29922;
    --theme-danger: #f85149;
    --theme-info: #58a6ff;

    /* Sidebar */
    --theme-sidebar-bg: #0d1117;
    --theme-sidebar-text: #c9d1d9;
    --theme-sidebar-active: var(--theme-primary);
    --theme-sidebar-hover: rgba(88, 166, 255, 0.12);

    /* Sombras - más sutiles */
    --theme-shadow-sm: 0 0 transparent, 0 0 transparent, 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --theme-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);

    color-scheme: dark;
}

/* ============================================
   BLUE CORPORATE THEME
   ============================================ */
[data-theme="blue"] {
    --theme-primary: #1e40af;
    --theme-primary-hover: #1d4ed8;
    --theme-primary-light: rgba(30, 64, 175, 0.1);
    
    --theme-background: #e2e8f0;
    --theme-surface: #ffffff;
    --theme-surface-secondary: #f1f5f9;
    
    --theme-text-primary: #1e293b;
    --theme-text-secondary: #475569;
    --theme-text-muted: #94a3b8;
    
    --theme-border: #94a3b8;
    --theme-border-light: #cbd5e1;
    
    --theme-sidebar-bg: #1e40af;
    --theme-sidebar-text: #e2e8f0;
    --theme-sidebar-active: rgba(255, 255, 255, 0.2);
    --theme-sidebar-hover: rgba(255, 255, 255, 0.1);
}

/* ============================================
   GREEN NATURE THEME
   ============================================ */
[data-theme="green"] {
    --theme-primary: #059669;
    --theme-primary-hover: #047857;
    --theme-primary-light: rgba(5, 150, 105, 0.1);
    
    --theme-background: #dcfce7;
    --theme-surface: #ffffff;
    --theme-surface-secondary: #f0fdf4;
    
    --theme-text-primary: #14532d;
    --theme-text-secondary: #166534;
    --theme-text-muted: #22c55e;
    
    --theme-border: #86efac;
    --theme-border-light: #bbf7d0;
    
    --theme-sidebar-bg: #059669;
    --theme-sidebar-text: #f0fdf4;
    --theme-sidebar-active: rgba(255, 255, 255, 0.2);
    --theme-sidebar-hover: rgba(255, 255, 255, 0.1);
}

/* ============================================
   EQUITAS THEME - Paleta Corporativa Oficial
   Basado en el logo corporativo de Equitas
   ============================================ */
[data-theme="equitas"] {
    /* Colores principales - Paleta corporativa Equitas */
    --theme-primary: #881781;
    --theme-primary-hover: #6a1164; /* Tono más oscuro para hover */
    --theme-primary-dark: #881781; /* Paleta corporativa (oscuro igual que primary) */
    --theme-primary-strong: #6a1164; /* Usado en focos/clics */
    --theme-primary-light: #c48cc4; /* Color claro de la paleta */

    /* Fondos - tonos neutros para no competir con el morado */
    --theme-background: #f8f9fa;
    --theme-surface: #ffffff;
    --theme-surface-secondary: #f3f4f6;

    /* Texto - alta legibilidad sobre fondos claros */
    --theme-text-primary: #212529;
    --theme-text-secondary: #6c757d;
    --theme-text-muted: #9ca3af;
    --theme-text-inverse: #FFFFFF; /* Texto sobre el color primario */
    --theme-text-on-primary: #FFFFFF; /* Alias solicitado por paleta */

    /* Bordes - sutiles pero visibles */
    --theme-border: #dee2e6;
    --theme-border-light: #e9ecef;

    /* Colores semánticos - mantener los estándar */
    --theme-success: #198754;
    --theme-warning: #fd7e14;
    --theme-danger: #dc3545;
    --theme-info: #0dcaf0;

    /* Sidebar - usar el color corporativo principal */
    --theme-sidebar-bg: #881781;
    --theme-sidebar-text: #FFFFFF;
    --theme-sidebar-active: rgba(196, 140, 196, 0.3); /* Usar el color claro con transparencia */
    --theme-sidebar-hover: rgba(255, 255, 255, 0.15);

    /* Sombras - sutiles para mantener el aspecto profesional */
    --theme-shadow-sm: 0 1px 3px rgba(136, 23, 129, 0.12), 0 1px 2px rgba(136, 23, 129, 0.08);
    --theme-shadow-md: 0 4px 6px rgba(136, 23, 129, 0.1), 0 1px 3px rgba(136, 23, 129, 0.08);
}

/* ============================================
   CORREO ARGENTINO THEME
   Azul corporativo + acento amarillo
   ============================================ */
[data-theme="correo"] {
    /* Amarillo como color primario */
    --theme-primary: #FFC107;             /* amarillo principal */
    --theme-primary-hover: #E0A800;       /* hover más oscuro (Bootstrap warning hover) */
    --theme-primary-dark: #C69500;        /* tono profundo */
    --theme-primary-strong: #B28704;      /* resaltes/foco */
    --theme-primary-light: rgba(255, 193, 7, 0.15);

    /* Azul como secundario/acento complementario */
    --theme-secondary: #06549C;           /* azul corporativo */

    /* Superficies y fondo claros */
    --theme-background: #f4f6f9;
    --theme-surface: #ffffff;
    --theme-surface-secondary: #f7f9fc;

    /* Texto y bordes */
    --theme-text-primary: #212529;
    --theme-text-secondary: #475569;
    --theme-text-muted: #94a3b8;
    --theme-text-inverse: #ffffff;

    --theme-border: #dbe1ea;
    --theme-border-light: #e7ecf3;

    /* Semánticos (conservar estándar, warning en amarillo) */
    --theme-success: #198754;
    --theme-warning: #FFC107;
    --theme-danger: #dc3545;
    --theme-info: #0dcaf0;

    /* Sidebar: fondo amarillo, texto azul corporativo */
    --theme-sidebar-bg: var(--theme-primary);
    --theme-sidebar-text: #003DA5;
    --theme-sidebar-active: rgba(0, 61, 165, 0.15);
    --theme-sidebar-hover: rgba(0, 61, 165, 0.08);

    /* Sombras sutiles con tinte azul */
    --theme-shadow-sm: 0 1px 3px rgba(6, 84, 156, 0.12), 0 1px 2px rgba(6, 84, 156, 0.08);
    --theme-shadow-md: 0 4px 6px rgba(6, 84, 156, 0.10), 0 1px 3px rgba(6, 84, 156, 0.06);
}

/* Ajustes visuales específicos para 'correo': acentos y legibilidad en sidebar */
[data-theme="correo"] .sidebar .nav-link {
    color: var(--theme-sidebar-text) !important;
}

[data-theme="correo"] .sidebar .nav-link:hover {
    background-color: var(--theme-sidebar-hover) !important;
    color: #003DA5 !important;
}

[data-theme="correo"] .sidebar .nav-link.active {
    background-color: var(--theme-sidebar-active) !important;
    color: #003DA5 !important;
    border-left: 3px solid #003DA5 !important;
}

[data-theme="correo"] .card,
[data-theme="correo"] .rz-card,
[data-theme="correo"] .card-body,
[data-theme="correo"] .card-footer {
    border-left: 3px solid var(--theme-primary) !important;
}

/* Cabeceras de tabla con primario amarillo para 'correo' */
[data-theme="correo"] .table thead th {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-inverse) !important;
    border-color: var(--theme-primary-dark) !important;
}

/* Acciones primarias y links en azul corporativo (003DA5) */
[data-theme="correo"] a {
    color: #003DA5 !important;
}

[data-theme="correo"] a:hover {
    color: #002f7b !important;
}

[data-theme="correo"] .text-primary {
    color: #003DA5 !important;
}

[data-theme="correo"] .border-primary {
    border-color: #003DA5 !important;
}

[data-theme="correo"] .btn-primary {
    background-color: #003DA5 !important;
    border-color: #003DA5 !important;
    color: #ffffff !important;
}

[data-theme="correo"] .btn-primary:hover,
[data-theme="correo"] .btn-primary:focus {
    background-color: #002f7b !important;
    border-color: #002f7b !important;
}

[data-theme="correo"] .btn-outline-primary {
    color: #003DA5 !important;
    border-color: #003DA5 !important;
    background-color: transparent !important;
}

[data-theme="correo"] .btn-outline-primary:hover,
[data-theme="correo"] .btn-outline-primary:focus {
    background-color: #003DA5 !important;
    border-color: #003DA5 !important;
    color: #ffffff !important;
}

[data-theme="correo"] .badge-primary {
    background-color: #003DA5 !important;
    color: #ffffff !important;
}

/* Encabezados y navbar superior en azul corporativo */
[data-theme="correo"] h1,
[data-theme="correo"] h2,
[data-theme="correo"] h3,
[data-theme="correo"] h4,
[data-theme="correo"] h5,
[data-theme="correo"] h6,
[data-theme="correo"] .card-title,
[data-theme="correo"] .modal-title {
    color: #003DA5 !important;
}

[data-theme="correo"] .main-header .nav-link,
[data-theme="correo"] .main-header .navbar-brand,
[data-theme="correo"] .main-header .navbar-text {
    color: #003DA5 !important;
}

[data-theme="correo"] .main-header .nav-link:hover,
[data-theme="correo"] .main-header .nav-link:focus {
    color: #002f7b !important;
}

[data-theme="correo"] .main-header .nav-link.active,
[data-theme="correo"] .main-header .nav-item .active {
    color: #002f7b !important;
    border-bottom: 2px solid #003DA5 !important;
}

/* Formularios: labels y estados de foco en azul 003DA5 */
[data-theme="correo"] label,
[data-theme="correo"] .form-label,
[data-theme="correo"] .form-check-label {
    color: #003DA5 !important;
}

[data-theme="correo"] .form-control:focus,
[data-theme="correo"] input:focus,
[data-theme="correo"] textarea:focus,
[data-theme="correo"] select:focus,
[data-theme="correo"] .form-select:focus {
    border-color: #003DA5 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 165, 0.25) !important;
}

[data-theme="correo"] .form-check-input:checked {
    background-color: #003DA5 !important;
    border-color: #003DA5 !important;
}

[data-theme="correo"] .btn-link {
    color: #003DA5 !important;
}

[data-theme="correo"] .btn-link:hover,
[data-theme="correo"] .btn-link:focus {
    color: #002f7b !important;
}

/* Paginación estilos en azul 003DA5 */
[data-theme="correo"] .pagination .page-link {
    color: #003DA5 !important;
    border-color: rgba(0, 61, 165, 0.3) !important;
}

[data-theme="correo"] .pagination .page-link:hover {
    color: #002f7b !important;
    background-color: rgba(0, 61, 165, 0.06) !important;
    border-color: #003DA5 !important;
}

[data-theme="correo"] .pagination .page-item.active .page-link {
    background-color: #003DA5 !important;
    border-color: #003DA5 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* ============================================
   APLICACIÓN GLOBAL DE THEMES
   ============================================ */
body,
html {
    background-color: var(--theme-background);
    color: var(--theme-text-primary);
    transition: background-color var(--theme-transition), color var(--theme-transition);
}

/* Layout principal */
.wrapper {
    background-color: var(--theme-background);
}

.content-wrapper {
    background-color: var(--theme-background) !important;
    color: var(--theme-text-primary) !important;
}

/* Header */
.main-header.navbar {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
    border-bottom: 1px solid var(--theme-border) !important;
    box-shadow: var(--theme-shadow-sm);
}

.main-header .nav-link,
.main-header .navbar-brand,
.main-header .navbar-text {
    color: var(--theme-text-primary) !important;
}

.main-header .nav-link:hover {
    color: var(--theme-primary) !important;
}

/* Sidebar */
.main-sidebar {
    background-color: var(--theme-sidebar-bg) !important;
    box-shadow: var(--theme-shadow-md);
}

.sidebar .nav-link {
    color: var(--theme-sidebar-text) !important;
    transition: all var(--theme-transition);
}

.sidebar .nav-link:hover {
    background-color: var(--theme-sidebar-hover) !important;
    color: var(--theme-text-inverse) !important;
}

.sidebar .nav-link.active {
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-text-inverse) !important;
}

/* Cards */
.card,
.rz-card,
.card-body,
.card-footer {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
    border: 1px solid var(--theme-border) !important;
    border-left: 3px solid var(--theme-primary) !important;
    box-shadow: var(--theme-shadow-sm);
    transition: border-color var(--theme-transition), box-shadow var(--theme-transition);
}

.card:hover {
    border-color: var(--theme-primary-light) !important;
    border-left-color: var(--theme-primary-hover) !important;
}

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

.card-title {
    color: var(--theme-text-primary) !important;
}

.card-text {
    color: var(--theme-text-secondary) !important;
}

/* Tablas */
.table {
    color: var(--theme-text-primary) !important;
    background-color: var(--theme-surface) !important;
}

.table thead th {
    background-color: var(--theme-surface-secondary) !important;
    border-color: var(--theme-border) !important;
}

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

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--theme-surface-secondary) !important;
}

.table-hover tbody tr:hover {
    background-color: var(--theme-primary-light) !important;
}

/* Forms */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
    border: 1px solid var(--theme-border) !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-primary) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 0.2rem var(--theme-primary-light) !important;
}

/* Botones */
.btn-primary {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

.btn-primary:hover {
    background-color: var(--theme-primary-hover) !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
    box-shadow: var(--theme-shadow-md);
    color: var(--theme-text-primary) !important;
}

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

.dropdown-item:hover {
    background-color: var(--theme-primary-light) !important;
    color: var(--theme-text-primary) !important;
}

/* Footer */
.main-footer {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text-secondary) !important;
    border-top: 1px solid var(--theme-border) !important;
}

/* Links */
a {
    color: var(--theme-primary);
    transition: color var(--theme-transition);
}

a:hover {
    color: var(--theme-primary-hover);
}

/* Badges semánticos */
.badge-success { background-color: var(--theme-success) !important; }
.badge-warning { background-color: var(--theme-warning) !important; }
.badge-danger { background-color: var(--theme-danger) !important; }
.badge-info { background-color: var(--theme-info) !important; }

/* Alertas */
.alert-success { 
    background-color: var(--theme-success) !important; 
    opacity: 0.1;
    border-color: var(--theme-success) !important;
}

.alert-warning { 
    background-color: var(--theme-warning) !important; 
    opacity: 0.1;
    border-color: var(--theme-warning) !important;
}

.alert-danger { 
    background-color: var(--theme-danger) !important; 
    opacity: 0.1;
    border-color: var(--theme-danger) !important;
}

.alert-info { 
    background-color: var(--theme-info) !important; 
    opacity: 0.1;
    border-color: var(--theme-info) !important;
}

/* ============================================
   THEME SELECTOR UTILITIES
   ============================================ */
.theme-selector {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--theme-surface-secondary);
    border-radius: 6px;
    border: 1px solid var(--theme-border-light);
}

.theme-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-text-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--theme-transition);
    font-size: 0.875rem;
}

.theme-btn:hover {
    background: var(--theme-primary-light);
    border-color: var(--theme-primary);
}

.theme-btn.active {
    background: var(--theme-primary);
    color: var(--theme-text-inverse);
    border-color: var(--theme-primary);
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
    .theme-selector {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .theme-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --theme-border: #000000;
        --theme-text-secondary: #000000;
    }
    
    [data-theme="dark"] {
        --theme-border: #ffffff;
        --theme-text-secondary: #ffffff;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        --theme-transition: 0s;
    }
}

/* ============================================
   MEJORAS ESPECÍFICAS PARA MODO OSCURO
   ============================================ */
[data-theme="dark"] {
    /* Headers de tabla con texto blanco en modo oscuro */
    .card-header .card-title,
    .card-header .card-title span,
    .card-header h5,
    .card-header h5 span {
        color: #ffffff !important;
    }

    /* Iconos en card headers también blancos */
    .card-header .card-title i,
    .card-header h5 i {
        color: #ffffff !important;
    }

    /* Mejorar contraste de labels */
    label,
    .form-label {
        color: var(--theme-text-primary) !important;
        font-weight: 500;
    }

    /* Mejorar inputs en modo oscuro */
    .form-control,
    input,
    textarea,
    select {
        background-color: #0d1117 !important;
        border-color: #30363d !important;
        color: #c9d1d9 !important;
    }

    .form-control:focus,
    input:focus,
    textarea:focus,
    select:focus {
        background-color: #0d1117 !important;
        border-color: #58a6ff !important;
        color: #c9d1d9 !important;
        box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3) !important;
    }

    /* Placeholders más visibles */
    .form-control::placeholder,
    input::placeholder,
    textarea::placeholder {
        color: #8b949e !important;
        opacity: 1;
    }

    /* Tablas en modo oscuro - estilo GitHub */
    .table {
        color: #c9d1d9 !important;
        background-color: #161b22 !important;
        border-color: #30363d !important;
    }

    .table thead th {
        background-color: #21262d !important;
        color: #c9d1d9 !important;
        border-color: #30363d !important;
        font-weight: 600;
    }

    .table tbody td {
        background-color: #161b22 !important;
        color: #c9d1d9 !important;
        border-color: #30363d !important;
    }

    .table tbody tr {
        background-color: #161b22 !important;
        border-color: #30363d !important;
    }

    .table tbody tr:hover {
        background-color: rgba(88, 166, 255, 0.1) !important;
    }

    .table-striped tbody tr:nth-of-type(odd) {
        background-color: #0d1117 !important;
    }

    .table-striped tbody tr:nth-of-type(odd):hover {
        background-color: rgba(88, 166, 255, 0.1) !important;
    }

    .table-secondary {
        background-color: #21262d !important;
        color: #8b949e !important;
    }

    /* Cards en modo oscuro */
    .card {
        background-color: #161b22 !important;
        border-color: #30363d !important;
        color: #c9d1d9 !important;
    }

    .card-header {
        background-color: #21262d !important;
        border-color: #30363d !important;
        color: #c9d1d9 !important;
    }

    .card-body {
        background-color: #161b22 !important;
        color: #c9d1d9 !important;
    }

    /* Botones en modo oscuro */
    .btn-outline-primary {
        color: #58a6ff !important;
        border-color: #58a6ff !important;
        background-color: transparent !important;
    }

    .btn-outline-primary:hover {
        background-color: #58a6ff !important;
        color: #0d1117 !important;
    }

    .btn-outline-secondary {
        color: #8b949e !important;
        border-color: #30363d !important;
        background-color: transparent !important;
    }

    .btn-outline-secondary:hover {
        background-color: #8b949e !important;
        color: #0d1117 !important;
    }

    .btn-outline-success {
        color: #3fb950 !important;
        border-color: #3fb950 !important;
        background-color: transparent !important;
    }

    .btn-outline-success:hover {
        background-color: #3fb950 !important;
        color: #0d1117 !important;
    }

    .btn-outline-danger {
        color: #f85149 !important;
        border-color: #f85149 !important;
        background-color: transparent !important;
    }

    .btn-outline-danger:hover {
        background-color: #f85149 !important;
        color: #0d1117 !important;
    }

    .btn-secondary {
        background-color: #21262d !important;
        border-color: #30363d !important;
        color: #c9d1d9 !important;
    }

    .btn-secondary:hover {
        background-color: #30363d !important;
        border-color: #8b949e !important;
    }

    .btn-info {
        background-color: #1f6feb !important;
        border-color: #1f6feb !important;
        color: #ffffff !important;
    }

    .btn-info:hover {
        background-color: #1158c7 !important;
        border-color: #1158c7 !important;
    }

    /* Badges en modo oscuro */
    .badge-primary {
        background-color: #1f6feb !important;
        color: #ffffff !important;
    }

    .badge-secondary {
        background-color: #21262d !important;
        color: #c9d1d9 !important;
    }

    .badge-info {
        background-color: #0969da !important;
        color: #ffffff !important;
    }

    .badge-danger {
        background-color: #da3633 !important;
        color: #ffffff !important;
    }

    .badge-light {
        background-color: #f0f6ff !important;
        color: #0d1117 !important;
    }

    /* Modales en modo oscuro */
    .modal-content {
        background-color: #161b22 !important;
        border: 1px solid #30363d !important;
        color: #c9d1d9 !important;
    }

    .modal-header {
        border-bottom: 1px solid #30363d !important;
    }

    .modal-footer {
        background-color: #0d1117 !important;
        border-top: 1px solid #30363d !important;
    }

    .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

    /* Input groups en modo oscuro */
    .input-group-text {
        background-color: #21262d !important;
        border-color: #30363d !important;
        color: #8b949e !important;
    }

    /* Spinners */
    .spinner-border {
        color: #58a6ff !important;
    }

    /* Text colors específicos */
    .text-muted {
        color: #8b949e !important;
    }

    .text-white {
        color: #ffffff !important;
    }

    /* Headers con gradientes */
    .card-header[style*="gradient"] {
        background: linear-gradient(135deg, #1f6feb 0%, #1158c7 100%) !important;
    }

    .modal-header[style*="gradient"] {
        background: linear-gradient(135deg, #1f6feb 0%, #1158c7 100%) !important;
    }

    /* Small text */
    small,
    .small {
        color: #8b949e !important;
    }

    /* Strong emphasis */
    strong {
        color: #f0f6ff !important;
    }
}
