/**
 * DARK THEME OVERRIDE - Xtreme Performance
 * Este archivo fuerza la aplicación del modo oscuro
 */

/* ====================================
   MODO OSCURO - FORZADO
   ==================================== */

/* HTML y Body - Máxima especificidad */
html[data-theme="dark"],
html[data-theme="dark"] body,
body[data-theme="dark"],
body.theme-dark {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Contenedores principales */
html[data-theme="dark"] .container,
html[data-theme="dark"] .container-fluid,
body[data-theme="dark"] .container,
body[data-theme="dark"] .container-fluid,
body.theme-dark .container,
body.theme-dark .container-fluid {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Cards y elementos de contenido */
html[data-theme="dark"] .card,
body[data-theme="dark"] .card,
body.theme-dark .card {
    background-color: #252525 !important;
    color: #ffffff !important;
    border: 1px solid #404040 !important;
}

html[data-theme="dark"] .card-header,
body[data-theme="dark"] .card-header,
body.theme-dark .card-header {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-bottom: 1px solid #404040 !important;
}

html[data-theme="dark"] .card-body,
body[data-theme="dark"] .card-body,
body.theme-dark .card-body {
    background-color: #252525 !important;
    color: #ffffff !important;
}

/* Navegación */
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .admin-navbar,
body[data-theme="dark"] .navbar,
body[data-theme="dark"] .admin-navbar,
body.theme-dark .navbar,
body.theme-dark .admin-navbar {
    background-color: #252525 !important;
    border-bottom: 1px solid #404040 !important;
}

html[data-theme="dark"] .nav-link,
body[data-theme="dark"] .nav-link,
body.theme-dark .nav-link {
    color: #b3b3b3 !important;
}

html[data-theme="dark"] .nav-link:hover,
body[data-theme="dark"] .nav-link:hover,
body.theme-dark .nav-link:hover {
    color: #ffffff !important;
}

/* Tablas */
html[data-theme="dark"] .table,
body[data-theme="dark"] .table,
body.theme-dark .table {
    background-color: #252525 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .table th,
body[data-theme="dark"] .table th,
body.theme-dark .table th {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

html[data-theme="dark"] .table td,
body[data-theme="dark"] .table td,
body.theme-dark .table td {
    background-color: #252525 !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

html[data-theme="dark"] .table-hover tbody tr:hover,
body[data-theme="dark"] .table-hover tbody tr:hover,
body.theme-dark .table-hover tbody tr:hover {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

/* Formularios */
html[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-control,
body.theme-dark .form-control {
    background-color: #252525 !important;
    color: #ffffff !important;
    border: 1px solid #404040 !important;
}

html[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-control:focus,
body.theme-dark .form-control:focus {
    background-color: #252525 !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* Texto y títulos */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
    color: #ffffff !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] div,
html[data-theme="dark"] label,
body[data-theme="dark"] p,
body[data-theme="dark"] span,
body[data-theme="dark"] div,
body[data-theme="dark"] label,
body.theme-dark p,
body.theme-dark span,
body.theme-dark div,
body.theme-dark label {
    color: #ffffff !important;
}

/* Botones en modo oscuro */
html[data-theme="dark"] .btn-outline-primary,
body[data-theme="dark"] .btn-outline-primary,
body.theme-dark .btn-outline-primary {
    color: #ffffff !important;
    border-color: #0d6efd !important;
}

html[data-theme="dark"] .btn-outline-primary:hover,
body[data-theme="dark"] .btn-outline-primary:hover,
body.theme-dark .btn-outline-primary:hover {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Alerts en modo oscuro */
html[data-theme="dark"] .alert,
body[data-theme="dark"] .alert,
body.theme-dark .alert {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

/* Modales en modo oscuro */
html[data-theme="dark"] .modal-content,
body[data-theme="dark"] .modal-content,
body.theme-dark .modal-content {
    background-color: #252525 !important;
    color: #ffffff !important;
    border: 1px solid #404040 !important;
}

html[data-theme="dark"] .modal-header,
body[data-theme="dark"] .modal-header,
body.theme-dark .modal-header {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #404040 !important;
}

/* Dropdowns */
html[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .dropdown-menu,
body.theme-dark .dropdown-menu {
    background-color: #252525 !important;
    border: 1px solid #404040 !important;
}

html[data-theme="dark"] .dropdown-item,
body[data-theme="dark"] .dropdown-item,
body.theme-dark .dropdown-item {
    color: #ffffff !important;
}

html[data-theme="dark"] .dropdown-item:hover,
body[data-theme="dark"] .dropdown-item:hover,
body.theme-dark .dropdown-item:hover {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

/* Paginación */
html[data-theme="dark"] .pagination .page-link,
body[data-theme="dark"] .pagination .page-link,
body.theme-dark .pagination .page-link {
    background-color: #252525 !important;
    border-color: #404040 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .pagination .page-link:hover,
body[data-theme="dark"] .pagination .page-link:hover,
body.theme-dark .pagination .page-link:hover {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

/* Breadcrumb */
html[data-theme="dark"] .breadcrumb,
body[data-theme="dark"] .breadcrumb,
body.theme-dark .breadcrumb {
    background-color: #2d2d2d !important;
}

html[data-theme="dark"] .breadcrumb-item,
body[data-theme="dark"] .breadcrumb-item,
body.theme-dark .breadcrumb-item {
    color: #ffffff !important;
}

/* Lista group */
html[data-theme="dark"] .list-group-item,
body[data-theme="dark"] .list-group-item,
body.theme-dark .list-group-item {
    background-color: #252525 !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

/* Texto muted específico */
html[data-theme="dark"] .text-muted,
body[data-theme="dark"] .text-muted,
body.theme-dark .text-muted {
    color: #6c6c6c !important;
}

/* Small text */
html[data-theme="dark"] small,
body[data-theme="dark"] small,
body.theme-dark small {
    color: #b3b3b3 !important;
}