/* 
    ==========================================================================
    HOJA DE ESTILOS UNIFICADA E INSTITUCIONAL (MOTOR DE TEMAS DINÁMICOS)
    Soporte para 3 Estilos Estructurales, 9 Temas de Color y Modo Nocturno
    Archivo: institucional_4t.css
    ==========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* 1. Mapeo de Variables del Sistema (Valores por defecto en fallback) */
:root {
    --primary: #9f2241;
    --primary-light: #fbeaf0;
    --secondary: #b38e5d;
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-color: #2b2b2b;
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --box-shadow: none;
    --backdrop-blur: none;
    --backdrop-saturate: 100%;
}

/* ========================================================
   2. REGLAS CORE Y TIPOGRAFÍA INSTITUCIONAL
   ======================================================== */
body {
    font-family: 'Outfit', 'Inter', 'Open Sans', Arial, sans-serif !important;
    background-color: var(--bg-body) !important;
    color: var(--text-color) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header.header {
    background-color: var(--bg-card) !important;
    border-top: 3px solid var(--primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--box-shadow) !important;
    transition: background-color 0.3s ease;
}

/* ========================================================
   3. ESTILOS DE DISEÑO ESTRUCTURAL (LAYOUTS)
   ======================================================== */

/* --- ESTILO 1: MINIMALISTA Y PLANO (FLAT) --- */
body.design-style1 {
    --border-radius: 5px;
    --border-color: #e5e7eb;
    --box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

/* Tarjetas estilo SEP NEM (Mockup): Borde dorado completo y esquinas curvadas premium */
body.design-style1 .card {
    border: 1.5px solid var(--secondary) !important; /* Borde completo dorado */
    border-radius: 10px !important; /* Esquinas curvadas del mockup */
    background-color: var(--bg-card) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important; /* Sombra ultra suave */
    transition: all 0.2s ease-in-out;
}

body.design-style1 .card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-1px);
}

/* Tarjetas secundarias de estado con acento vertical izquierdo grueso (Mockup) */
body.design-style1 .card.card-accent-left,
body.design-style1 .card[class*="status-"] {
    border: 1px solid var(--border-color, #e5e7eb) !important;
    border-left: 4.5px solid var(--primary) !important;
}
body.design-style1 .card.status-secondary,
body.design-style1 .card.status-gold {
    border: 1px solid var(--border-color, #e5e7eb) !important;
    border-left: 4.5px solid var(--secondary) !important;
}
body.design-style1 .card.status-success,
body.design-style1 .card.status-green {
    border: 1px solid var(--border-color, #e5e7eb) !important;
    border-left: 4.5px solid #235B4E !important;
}
body.design-style1 .card.status-gray {
    border: 1px solid var(--border-color, #e5e7eb) !important;
    border-left: 4.5px solid #6F7271 !important;
}

body.design-style1 .card .card-header {
    background-color: transparent !important;
    border-bottom: none !important; /* Sin línea divisora horizontal del mockup */
    padding: 22px 24px 0 24px !important;
}

body.design-style1 .card-title,
body.design-style1 .card .card-header strong,
body.design-style1 .card .card-header h4 {
    color: #1f2937 !important; /* Color gris oscuro/negro como en el mockup */
    font-weight: 700 !important;
    font-size: 1.15rem !important;
}

/* Cabecera limpia y plana (sin borde superior grueso, tal como el mockup) */
body.design-style1 header.header {
    background-color: #ffffff !important;
    border-bottom: 1.5px solid #e5e7eb !important;
    border-top: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

/* Breadcrumbs ultra limpios y planos */
body.design-style1 .right-panel .breadcrumbs {
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    margin: 0 !important;
    padding: 18px 30px !important;
    box-shadow: none !important;
}

body.design-style1 .right-panel .page-header {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.design-style1 .right-panel .page-header h1 {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
}

body.design-style1 .right-panel .page-header .breadcrumb li,
body.design-style1 .right-panel .page-header .breadcrumb li a {
    color: #4b5563 !important;
    font-weight: 500 !important;
}

body.design-style1 .right-panel .page-header .breadcrumb li.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Controles de Formulario Premium para Estilo 1 */
body.design-style1 .form-control,
body.design-style1 select,
body.design-style1 textarea {
    border: 1.5px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
}

body.design-style1 .form-control:focus,
body.design-style1 select:focus,
body.design-style1 textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent) !important;
}

/* Tablas Premium estilo SEP NEM (Mockup) */
body.design-style1 table.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

body.design-style1 table.table thead th,
body.design-style1 table thead th {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.05em !important;
    padding: 14px 16px !important;
    border-bottom: none !important;
}

body.design-style1 table.table td,
body.design-style1 table td {
    padding: 12px 16px !important;
    color: #374151 !important;
    border-bottom: 1px solid #e5e7eb !important;
    background-color: #ffffff !important;
}

body.design-style1 table.table tbody tr:last-child td {
    border-bottom: none !important;
}

body.design-style1 table.table tbody tr:hover td {
    background-color: #f9fafb !important;
    transition: background-color 0.15s ease;
}

/* Botones Premium Planos */
body.design-style1 .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    transition: all 0.2s ease !important;
}

body.design-style1 .btn-primary:hover {
    background-color: color-mix(in srgb, #000000 12%, var(--primary)) !important;
    border-color: color-mix(in srgb, #000000 12%, var(--primary)) !important;
}

/* --- ESTILO 2: GLASSMORPHISM / PREMIUM MODERNO --- */
html {
    background: transparent !important;
    background-color: transparent !important;
    min-height: 100vh;
}

body.design-style2 {
    background: linear-gradient(rgba(244, 246, 249, 0.75), rgba(244, 246, 249, 0.75)), var(--bg-backdrop-url) center center / cover no-repeat fixed !important;
    min-height: 100vh;
}

body.design-style2 {
    --border-radius: 18px;
    --border-color: rgba(255, 255, 255, 0.25);
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    display: block !important; /* Anula display: table de style.css que rompe pseudo-elementos fixed */
    position: relative !important;
    z-index: 1 !important; /* Forza contexto de apilamiento en body para que z-index negativo de body::before funcione dentro de él y no se esconda detrás del canvas */
}

/* Contenedor trasero para el fondo difuminado del Estilo 2 */
body.design-style2::before {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-image: var(--bg-backdrop-url, url('../img/ve20150904_secundaria2.jpg')) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    filter: blur(10px) brightness(0.75) saturate(115%) !important;
    z-index: -1 !important; /* Colocado dentro del contexto de apilamiento del body (detrás de los elementos, pero al frente del canvas transparente) */
    transform: scale(1.05) !important; /* Previene bordes blancos en blur */
    transition: background-image 0.5s ease-in-out !important;
}

body.design-style2 .right-panel,
body.design-style2 #right-panel,
body.design-style2 .content,
body.design-style2 .animated {
    background-color: transparent !important;
    background: transparent !important;
}

/* Forzar transparencia en toda la estructura del header de Ela Admin para desvelar el vidrio */
body.design-style2 header.header .top-left,
body.design-style2 header.header .top-right,
body.design-style2 header.header .navbar-header,
body.design-style2 header.header .navbar-brand,
body.design-style2 header.header .header-menu,
body.design-style2 .right-panel .top-left,
body.design-style2 .right-panel .top-right,
body.design-style2 .right-panel .navbar-header,
body.design-style2 .right-panel .navbar-brand,
body.design-style2 .right-panel .header-menu {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Frosted Glass Breadcrumbs Bar for Style 2 */
body.design-style2 .right-panel .breadcrumbs {
    background: color-mix(in srgb, var(--primary) 3%, rgba(255, 255, 255, 0.45)) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    margin: 20px 30px 10px 30px !important;
    padding: 12px 24px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}

/* Adjust page-header and inner breadcrumbs padding to fit the new bar */
body.design-style2 .right-panel .breadcrumbs .breadcrumbs-inner,
body.design-style2 .right-panel .page-header {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.design-style2 .right-panel .page-header h1 {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    margin: 0 !important;
}

body.design-style2 .right-panel .page-header .breadcrumb {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.design-style2 .right-panel .page-header .breadcrumb li,
body.design-style2 .right-panel .page-header .breadcrumb li a {
    color: var(--text-color) !important;
    font-weight: 500 !important;
}

body.design-style2 .right-panel .page-header .breadcrumb li.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Dark Mode adaptation for Breadcrumbs */
body.theme-dark.design-style2 .right-panel .breadcrumbs {
    background: color-mix(in srgb, var(--primary) 12%, rgba(15, 23, 42, 0.55)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Stretch Header to be flush against top and right of the right panel */
body.design-style2 header.header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 72px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 100 !important;
}

body.design-style2 .top-left {
    padding: 16px 24px !important;
    background: transparent !important;
}

body.design-style2 .top-right {
    padding: 0 !important;
    margin: 0 !important;
    height: 72px !important;
}

body.design-style2 .header-menu {
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.design-style2 .header-right {
    height: 72px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Hide original user area dropdown */
body.design-style2 .original-user-area {
    display: none !important;
}

/* Float header action buttons as a beautiful frosted pill */
body.design-style2 .header-action-buttons {
    display: flex !important;
    align-items: center !important;
    background: color-mix(in srgb, var(--primary) 4%, rgba(255, 255, 255, 0.45)) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 30px !important;
    padding: 6px 16px !important;
    margin-right: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

body.theme-dark.design-style2 .header-action-buttons {
    background: color-mix(in srgb, var(--primary) 12%, rgba(15, 23, 42, 0.45)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

body.design-style2 .header-action-buttons #dashboardNightModeToggle,
body.design-style2 .header-action-buttons .notification-button {
    color: var(--primary) !important;
    margin-right: 0 !important;
}

body.design-style2 .header-action-buttons #dashboardNightModeToggle {
    margin-right: 15px !important;
}

body.theme-dark.design-style2 .header-action-buttons #dashboardNightModeToggle,
body.theme-dark.design-style2 .header-action-buttons .notification-button {
    color: #f3f4f6 !important;
}

/* Large Premium User Profile Card - pegada al borde superior y derecho */
.premium-profile-card {
    display: none !important; /* hidden by default in other styles */
}

body.design-style2 .premium-profile-card {
    display: flex !important;
    align-items: center !important;
    height: 72px !important;
    background: color-mix(in srgb, var(--primary) 4%, rgba(255, 255, 255, 0.55)) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0 0 0 24px !important; /* round only bottom-left corner */
    padding: 0 24px 0 20px !important;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
}

body.theme-dark.design-style2 .premium-profile-card {
    background: color-mix(in srgb, var(--primary) 12%, rgba(15, 23, 42, 0.6)) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.premium-profile-card:hover {
    background: color-mix(in srgb, var(--primary) 6%, rgba(255, 255, 255, 0.65)) !important;
    box-shadow: -6px 6px 25px rgba(0, 0, 0, 0.06) !important;
}

body.theme-dark.design-style2 .premium-profile-card:hover {
    background: color-mix(in srgb, var(--primary) 15%, rgba(15, 23, 42, 0.7)) !important;
}

.premium-avatar-container {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    margin-right: 14px !important;
}

.premium-user-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid var(--secondary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    object-fit: cover !important;
}

.premium-status-dot {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    background-color: #2ed573 !important; /* Emerald active green */
}

body.theme-dark .premium-status-dot {
    border-color: #1e1e1e !important;
}

.premium-user-info {
    display: flex !important;
    flex-direction: column !important;
    margin-right: 20px !important;
    max-width: 140px !important;
}

.premium-user-name {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: var(--text-color) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

.premium-user-role {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: var(--secondary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-top: 2px !important;
}

.premium-logout-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 20%, transparent) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.premium-logout-btn i {
    margin-right: 6px !important;
    font-size: 0.85rem !important;
}

.premium-logout-btn:hover {
    background: color-mix(in srgb, #ffffff 15%, var(--primary)) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 30%, transparent) !important;
}

/* Floating Glass Hamburger Menu */
body.design-style2 .top-left {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-top: 15px !important;
    padding-left: 30px !important;
}

body.design-style2 .navbar-brand {
    display: none !important;
}

body.design-style2 .menutoggle {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04) !important;
}

body.theme-dark.design-style2 .menutoggle {
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* Tarjetas con Vidrio Esmerilado Premium Tintadas con Color-Mix */
body.design-style2 .card {
    background: color-mix(in srgb, var(--primary) 3%, rgba(255, 255, 255, 0.68)) !important;
    backdrop-filter: blur(25px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.40) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--box-shadow) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    overflow: hidden;
}
body.design-style2 .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* Subsecciones de tarjeta transparentes */
body.design-style2 .card .card-header,
body.design-style2 .card .card-body,
body.design-style2 .card .card-footer {
    background: transparent !important;
    background-color: transparent !important;
    border-top: none !important;
}

body.design-style2 .card .card-header {
    background: rgba(255, 255, 255, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
}

/* Tablas completamente transparentes dentro de tarjetas de vidrio */
body.design-style2 table.table,
body.design-style2 table.table tr,
body.design-style2 table.table td,
body.design-style2 table.table th {
    background-color: transparent !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.design-style2 table.table th {
    font-weight: 700 !important;
    color: var(--primary) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
}

body.design-style2 table.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transition: background-color 0.2s ease;
}

/* Inputs de formulario esmerilados */
body.design-style2 .form-control,
body.design-style2 select,
body.design-style2 textarea {
    background-color: rgba(255, 255, 255, 0.45) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    color: #2b2b2b !important;
    font-weight: 500 !important;
}
body.design-style2 .form-control:focus,
body.design-style2 select:focus,
body.design-style2 textarea:focus {
    background-color: rgba(255, 255, 255, 0.75) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(159, 34, 65, 0.15) !important;
}

/* Footer transparente */
body.design-style2 footer.site-footer,
body.design-style2 footer.site-footer .footer-inner {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

/* --- ESTILO 3: CLÁSICO Y ACADÉMICO --- */
body.design-style3 {
    --border-radius: 4px; /* Classic, rigid, elegant corners */
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    background-color: #f7f6f0 !important; /* Soft, warm academic book-like background */
}

/* Serif font style for classical academic feel */
body.design-style3 h1,
body.design-style3 h2,
body.design-style3 h3,
body.design-style3 h4,
body.design-style3 h5,
body.design-style3 h6,
body.design-style3 .card-title,
body.design-style3 .card .card-header strong,
body.design-style3 .card .card-header h4,
body.design-style3 table th,
body.design-style3 table.table th,
body.design-style3 table.table thead th,
body.design-style3 .right-panel .page-header h1,
body.design-style3 .breadcrumbs .page-title h1 {
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif !important;
}

/* Make layout 3 header fully transparent & borderless like the mockup */
body.design-style3 header.header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: 65px !important;
    background-color: #ffffff !important; /* Elegant white background */
    border-bottom: 2px solid var(--secondary) !important; /* Solid elegant gold divider */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important; /* Premium soft drop shadow */
    z-index: 999 !important;
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
}

body.theme-dark.design-style3 header.header {
    background-color: #131a26 !important; /* Deep navy blue in dark mode */
    border-bottom: 2px solid var(--secondary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

/* Clear ElaAdmin white background and fixed width on top-left */
body.design-style3 header.header .top-left,
body.design-style3 header.header .navbar-header {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    float: left !important;
}

/* Clear ElaAdmin float width on top-right */
body.design-style3 header.header .top-right {
    background: transparent !important;
    float: right !important;
    width: auto !important;
}

/* Hide duplicate original user dropdown profile avatar */
body.design-style3 header.header .original-user-area {
    display: none !important;
}

body.design-style3 header.header .navbar-brand {
    display: none !important;
}

body.design-style3 #right-panel {
    margin-top: 0 !important;
    padding-top: 0px !important; /* Changed from 85px since header is position: relative */
    background-color: #f7f6f0 !important;
}

/* Elegant search and control headers in mockup */
body.design-style3 .menutoggle {
    background: rgba(179, 142, 93, 0.1) !important;
    border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent) !important;
    border-radius: 4px !important;
    color: var(--secondary) !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.theme-dark.design-style3 .menutoggle {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Floating Glass/Gold profile card support for Style 3 */
body.design-style3 .premium-profile-card {
    display: flex !important;
    align-items: center !important;
    height: 55px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.design-style3 .original-user-area {
    display: none !important;
}

body.design-style3 .premium-user-name {
    font-family: 'Lora', 'Georgia', serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #2b2b2b !important;
}

body.design-style3 .premium-user-role {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: var(--secondary) !important;
}

body.design-style3 .premium-logout-btn {
    background: var(--secondary) !important;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--secondary) 30%, transparent) !important;
}

body.design-style3 .header-action-buttons #dashboardNightModeToggle,
body.design-style3 .header-action-buttons .notification-button {
    color: var(--secondary) !important;
}

/* Card Styling for Classy Academic Look (Borderless header, gold framing) */
body.design-style3 .card {
    border: 2px solid var(--secondary) !important; /* Solid gold framing */
    border-radius: 8px !important;
    background-color: #ffffff !important; /* Solid premium white background */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 25px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease-in-out !important;
}

body.design-style3 .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07) !important;
    transform: translateY(-2px);
}

/* Elegant card header - distinct layout with gold horizontal line */
body.design-style3 .card .card-header {
    background-color: color-mix(in srgb, var(--primary) 3%, #ffffff) !important; /* Soft tinted header */
    border-bottom: 1.5px solid var(--secondary) !important; /* Gold horizontal separator line */
    padding: 16px 24px !important;
}

/* Clean, balanced body padding */
body.design-style3 .card .card-body {
    padding: 20px 24px !important;
}

/* Elegant card footer */
body.design-style3 .card .card-footer,
body.design-style3 .card-footer {
    background-color: color-mix(in srgb, var(--primary) 3%, #ffffff) !important;
    border-top: 1px solid color-mix(in srgb, var(--primary) 10%, #e2e8f0) !important;
    padding: 12px 24px !important;
}

/* Table Style for Academic Theme */
body.design-style3 table.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border: 1.5px solid var(--primary) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

body.design-style3 table.table thead th,
body.design-style3 table thead th {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-bottom: 2.5px solid var(--secondary) !important; /* Elegant gold separator */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    padding: 14px 16px !important;
}

body.design-style3 table.table td,
body.design-style3 table td {
    padding: 12px 16px !important;
    color: #2d3748 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, #e2e8f0) !important;
    background-color: #ffffff !important;
}

body.design-style3 table.table tbody tr:last-child td {
    border-bottom: none !important;
}

body.design-style3 table.table tbody tr:hover td {
    background-color: color-mix(in srgb, var(--secondary) 5%, #ffffff) !important; /* Soft warm gold row hover tint */
}

/* Dynamic Brand Header block inside left-panel */
body.design-style3 .academic-brand-header-style3 {
    padding: 30px 20px 15px 20px !important;
    text-align: center !important;
    background: transparent !important;
    position: relative !important;
    z-index: 101 !important;
}

body.design-style3 .academic-brand-header-style3 .brand-logo-container {
    margin-bottom: 12px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.design-style3 .academic-brand-header-style3 .brand-logo-container.img-logo {
    height: 85px !important;
    width: 85px !important;
    margin: 0 auto 12px auto !important;
    padding: 6px !important;
    border: 3px double var(--secondary) !important; /* Double gold framing for shield */
    background: rgba(255, 255, 255, 0.04) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 4px !important;
}

body.design-style3 .academic-brand-header-style3 .brand-school-shield {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)) !important;
}

body.design-style3 .academic-brand-header-style3 .brand-logo-container i {
    font-size: 36px !important;
    color: var(--secondary) !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)) !important;
}

body.design-style3 .academic-brand-header-style3 .brand-title {
    font-family: 'Lora', 'Georgia', serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--secondary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.design-style3 .academic-brand-header-style3 .brand-subtitle {
    font-family: 'Lora', 'Georgia', serif !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.45) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
}

body.design-style3 .academic-brand-header-style3 .brand-divider {
    border-bottom: 1px double color-mix(in srgb, var(--secondary) 40%, transparent) !important;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    height: 3px !important;
    border-top: 1px solid color-mix(in srgb, var(--secondary) 40%, transparent) !important;
}

/* ========================================================
   4. MENÚ LATERAL (SIDEBAR NAVIGATION) UNIVERSAL Y ESTILOS
   ======================================================== */

/* Reset de Navbar de ElaAdmin en Panel Lateral */
body aside#left-panel .navbar,
body aside#left-panel .navbar-default,
body aside#left-panel .navbar-collapse {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Estructura Base del Sidebar */
body #left-panel, 
body aside#left-panel {
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

/* Estilos de Enlace del Menú (Alto Contraste y Legibilidad) */
body aside#left-panel .navbar .navbar-nav li {
    background: transparent !important;
    padding: 0 15px !important;
    margin: 2px 0 !important;
}

body #left-panel .nav-link,
body aside#left-panel .navbar .navbar-nav li>a {
    color: rgba(255, 255, 255, 0.75) !important; /* Texto de alto contraste */
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.2s ease !important;
    position: relative;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    padding: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 8px;
}

/* Iconos de Menú */
body aside#left-panel .navbar .navbar-nav li>a .menu-icon {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease;
    width: 28px !important;
    font-size: 1.05rem !important;
    margin-right: 10px !important;
    float: none !important;
    margin-top: 0 !important;
}

/* Títulos de Sección ("Menú", etc.) */
body aside#left-panel .navbar .navbar-nav li.menu-title {
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    padding: 20px 15px 5px 25px !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Flecha de Dropdowns (Pseudoelemento) */
body aside#left-panel .navbar .navbar-nav li.menu-item-has-children>a:before {
    border-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.5) transparent transparent !important;
    right: 15px !important;
    top: 18px !important;
}
body aside#left-panel .navbar .navbar-nav li.menu-item-has-children:hover>a:before,
body aside#left-panel .navbar .navbar-nav li.menu-item-has-children.show>a:before {
    border-color: var(--secondary) var(--secondary) transparent transparent !important;
}

/* --------------------------------------------------------
   A. COMPORTAMIENTO DE VARIANTES EN SIDEBAR
   -------------------------------------------------------- */

/* --- VARIANTE STYLE 1: MINIMALISTA (SIDEBAR DE COLOR INSTITUCIONAL SÓLIDO) --- */
body.design-style1 aside#left-panel {
    background-color: var(--primary) !important; /* Sidebar en color guinda/verde/dorado de la escuela */
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04) !important;
}
body.design-style1 aside#left-panel .navbar .navbar-nav li>a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}
body.design-style1 aside#left-panel .navbar .navbar-nav li>a:hover .menu-icon {
    color: #ffffff !important;
}
/* Activo Style 1 (Capsule dorado/bronce como el mockup) */
body.design-style1 aside#left-panel .navbar .navbar-nav li.active>a {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}
body.design-style1 aside#left-panel .navbar .navbar-nav li.active>a .menu-icon {
    color: #ffffff !important;
}
/* Sub-menús en Style 1 */
body.design-style1 aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu {
    background-color: rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    padding: 5px 0 5px 15px !important;
    margin: 5px 0 !important;
}
body.design-style1 aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.82rem !important;
}
body.design-style1 aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu a:hover {
    color: #ffffff !important;
}

/* --- VARIANTE STYLE 2: GLASSMORPHISM (SIDEBAR PREMIUM OSCURO BLURRED E IDENTIDAD DE COLOR MÓVIL) --- */
body.design-style2 aside#left-panel {
    background: color-mix(in srgb, var(--primary) 22%, rgba(15, 23, 42, 0.62)) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15) !important;
}
body.design-style2 aside#left-panel .navbar .navbar-nav li>a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
}

/* Icon menu elástico con micro-animaciones fluidas */
body aside#left-panel .navbar .navbar-nav li>a .menu-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease !important;
}
body.design-style2 aside#left-panel .navbar .navbar-nav li>a:hover .menu-icon {
    color: var(--secondary) !important;
    transform: scale(1.22) translateX(3px) !important;
}
/* Activo Style 2 (Glow Capsule del mockup - Dynamic color-mix) */
body.design-style2 aside#left-panel .navbar .navbar-nav li.active>a {
    background: color-mix(in srgb, var(--secondary) 24%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--secondary) 35%, transparent) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--secondary) 15%, transparent) !important;
    border-radius: 12px !important;
}
body.design-style2 aside#left-panel .navbar .navbar-nav li.active>a .menu-icon {
    color: #ffffff !important;
}
/* Sub-menús en Style 2 */
body.design-style2 aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu {
    background-color: rgba(0, 0, 0, 0.22) !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    padding: 5px 0 5px 15px !important;
    margin: 5px 0 !important;
}
body.design-style2 aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.82rem !important;
}
body.design-style2 aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu a:hover {
    color: var(--secondary) !important;
}

/* --- VARIANTE STYLE 3: CLÁSICO Y ACADÉMICO (SLATE NAVY SÓLIDO Y ACENTO DE BORDE) --- */
body.design-style3 aside#left-panel {
    background-color: color-mix(in srgb, var(--primary) 40%, #080c0a) !important;
    border-right: 3px solid var(--secondary) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15) !important;
    top: 0 !important;
    height: 100vh !important;
    padding-top: 20px !important;
}

/* Inner gold rectangular frame removed to prevent menu collision */
body.design-style3 aside#left-panel::after {
    display: none !important;
}

body.design-style3 aside#left-panel .navbar-brand {
    display: none !important;
}

body.design-style3 aside#left-panel .navbar {
    padding: 0 !important;
    margin: 0 !important;
}

body.design-style3 aside#left-panel .navbar .navbar-nav {
    padding-top: 10px !important;
    position: relative !important;
    z-index: 101 !important;
}

body.design-style3 aside#left-panel .navbar .navbar-nav li {
    background: transparent !important;
    padding: 0 15px !important;
    margin: 0 !important;
}

/* Divider lines between items in mockup */
body.design-style3 aside#left-panel .navbar .navbar-nav li:not(.menu-title):not(:last-child) {
    border-bottom: 1px solid color-mix(in srgb, var(--secondary) 15%, transparent) !important;
    padding-bottom: 2px !important;
    margin-bottom: 2px !important;
}

body.design-style3 aside#left-panel .navbar .navbar-nav li.menu-title {
    border-bottom: none !important;
    padding-top: 15px !important;
}

body.design-style3 aside#left-panel .navbar .navbar-nav li>a {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 4px !important;
    margin: 2px 15px !important;
    border: 1px solid transparent !important;
    font-size: 0.86rem !important;
}

body.design-style3 aside#left-panel .navbar .navbar-nav li>a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: color-mix(in srgb, var(--secondary) 25%, transparent) !important;
}

body.design-style3 aside#left-panel .navbar .navbar-nav li>a:hover .menu-icon {
    color: var(--secondary) !important;
    transform: scale(1.1) !important;
}

/* Activo Style 3 (Academic gold capsule style matching mockup - sharp rectangular band) */
body.design-style3 aside#left-panel .navbar .navbar-nav li.active>a {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid var(--secondary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    border-radius: 2px !important;
}

body.design-style3 aside#left-panel .navbar .navbar-nav li.active>a .menu-icon {
    color: #ffffff !important;
}

/* Sub-menús en Style 3 */
body.design-style3 aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu {
    background-color: rgba(0, 0, 0, 0.35) !important;
    border-radius: 4px !important;
    padding: 8px 0 8px 15px !important;
    margin: 5px 15px !important;
    border-left: 2px solid var(--secondary) !important;
}

body.design-style3 aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu a {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.82rem !important;
}

body.design-style3 aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu a:hover {
    color: var(--secondary) !important;
    background: transparent !important;
}

/* ========================================================
   5. BOTONES Y ACCIONES MINIMALISTAS
   ======================================================== */
body .btn-primary, 
body .btn-dark,
body .btn-info {
    background-color: transparent !important;
    background: transparent !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
    border-radius: var(--border-radius) !important;
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
}

body .btn-primary:hover, 
body .btn-dark:hover,
body .btn-info:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

body .btn-success {
    background-color: transparent !important;
    border: 1.5px solid var(--secondary) !important;
    color: var(--secondary) !important;
    border-radius: var(--border-radius) !important;
    transition: all 0.2s ease !important;
}
body .btn-success:hover {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
    border-color: var(--secondary) !important;
}

/* ========================================================
   6. CONTROLES DE FORMULARIO
   ======================================================== */
.form-control, select, textarea {
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    transition: all 0.2s ease !important;
    background-color: var(--bg-card) !important;
    color: var(--text-color) !important;
}

.form-control:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.15rem rgba(159, 34, 65, 0.15) !important;
    outline: none !important;
}

/* ========================================================
   7. MODO NOCTURNO (NIGHT MODE / THEME DARK)
   ======================================================== */
body.theme-dark {
    --bg-body: #0b0f19;
    --bg-card: #131a26;
    --text-color: #ffffff;
    --border-color: #2d3748;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Global Left Sidebar Menu & Nested Elements under Dark Mode */
body.theme-dark #left-panel,
body.theme-dark aside#left-panel {
    background-color: #131a26 !important;
    background: #131a26 !important;
    border-right: 1px solid #2d3748 !important;
}

body.theme-dark aside#left-panel .navbar,
body.theme-dark aside#left-panel .navbar-default,
body.theme-dark aside#left-panel .navbar-header {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
}

body.theme-dark aside#left-panel .navbar .navbar-nav li {
    background-color: transparent !important;
}

body.theme-dark aside#left-panel .navbar .navbar-nav li a,
body.theme-dark aside#left-panel .navbar .navbar-nav li a *,
body.theme-dark .left-panel .navbar .navbar-nav li a,
body.theme-dark .left-panel .navbar .navbar-nav li a * {
    color: #e2e8f0 !important;
}

body.theme-dark aside#left-panel .navbar .navbar-nav li a:hover,
body.theme-dark aside#left-panel .navbar .navbar-nav li a:hover *,
body.theme-dark .left-panel .navbar .navbar-nav li a:hover,
body.theme-dark .left-panel .navbar .navbar-nav li a:hover * {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark aside#left-panel .navbar .navbar-nav li.active>a,
body.theme-dark aside#left-panel .navbar .navbar-nav li.active>a *,
body.theme-dark .left-panel .navbar .navbar-nav li.active>a,
body.theme-dark .left-panel .navbar .navbar-nav li.active>a * {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
}

body.theme-dark aside#left-panel .navbar .navbar-nav li.menu-title {
    color: rgba(226, 232, 240, 0.5) !important;
}

body.theme-dark aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu {
    background-color: #0b0f19 !important;
    border: 1px solid #2d3748 !important;
    border-radius: 4px !important;
}

body.theme-dark aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu a {
    color: #e2e8f0 !important;
}

body.theme-dark aside#left-panel .navbar .navbar-nav li.menu-item-has-children .sub-menu a:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.theme-dark aside#left-panel .navbar .navbar-nav li.menu-item-has-children>a:before {
    border-color: #e2e8f0 !important;
}

/* Scrollbar para Panel Lateral en Modo Oscuro */
body.theme-dark aside#left-panel::-webkit-scrollbar,
body.theme-dark .left-panel::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}
body.theme-dark aside#left-panel::-webkit-scrollbar-track,
body.theme-dark .left-panel::-webkit-scrollbar-track {
    background: #0b0f19 !important;
}
body.theme-dark aside#left-panel::-webkit-scrollbar-thumb,
body.theme-dark .left-panel::-webkit-scrollbar-thumb {
    background: #2d3748 !important;
    border-radius: 3px !important;
}
body.theme-dark aside#left-panel::-webkit-scrollbar-thumb:hover,
body.theme-dark .left-panel::-webkit-scrollbar-thumb:hover {
    background: #4a5568 !important;
}

/* Global Header and Branding Areas in Dark Mode */
body.theme-dark header.header {
    background-color: #131a26 !important;
    background: #131a26 !important;
    border-bottom: 1px solid #2d3748 !important;
    color: #ffffff !important;
}

body.theme-dark header.header .top-left,
body.theme-dark header.header .navbar-header,
body.theme-dark header.header .navbar-brand {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
}

body.theme-dark.design-style2 {
    --bg-card: color-mix(in srgb, var(--primary) 12%, rgba(15, 23, 42, 0.65));
    --border-color: rgba(255, 255, 255, 0.08);
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    background: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)), var(--bg-backdrop-url) center center / cover no-repeat fixed !important;
}

body.theme-dark.design-style2::before {
    filter: blur(12px) brightness(0.4) saturate(100%) !important;
}

body.theme-dark.design-style2 header.header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.theme-dark.design-style2 .card {
    background: color-mix(in srgb, var(--primary) 12%, rgba(15, 23, 42, 0.65)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: var(--box-shadow) !important;
}

body.theme-dark.design-style2 .card .card-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark.design-style2 .card .card-footer,
body.theme-dark.design-style2 .card-footer {
    background: rgba(255, 255, 255, 0.03) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: none !important;
}

body.theme-dark.design-style2 .form-control,
body.theme-dark.design-style2 select,
body.theme-dark.design-style2 textarea {
    background-color: color-mix(in srgb, var(--primary) 10%, rgba(15, 23, 42, 0.5)) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #f3f4f6 !important;
}

/* Micro-animaciones en botones de acción superiores */
body.design-style2 .header-action-buttons button,
body.design-style2 .header-action-buttons .notification-button {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

body.design-style2 .header-action-buttons button:hover,
body.design-style2 .header-action-buttons .notification-button:hover {
    transform: scale(1.15) !important;
}

body.design-style2 #dashboardNightModeToggle:hover i {
    transform: rotate(20deg) scale(1.2) !important;
    color: #ffbc42 !important;
}

body.design-style2 .notification-button:hover i {
    animation: premium-wobble 0.6s ease-in-out both;
}

@keyframes premium-wobble {
    0%, 100% { transform: rotate(0deg) scale(1.2); }
    15% { transform: rotate(-15deg) scale(1.2); }
    30% { transform: rotate(10deg) scale(1.2); }
    45% { transform: rotate(-10deg) scale(1.2); }
    60% { transform: rotate(5deg) scale(1.2); }
    75% { transform: rotate(-3deg) scale(1.2); }
}

/* Micro-escalado táctil en hovers de iconos de tablas de datos y paneles */
body.design-style2 table.table td a.btn i,
body.design-style2 table.table td button i,
body.design-style2 .card-body a.btn i,
body.design-style2 .card-body button i {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: inline-block;
}

body.design-style2 table.table td a.btn:hover i,
body.design-style2 table.table td button:hover i,
body.design-style2 .card-body a.btn:hover i,
body.design-style2 .card-body button:hover i {
    transform: scale(1.3) !important;
}

/* Offset vertical y reseteos para el Right Panel */
body.design-style2 .right-panel {
    padding-top: 72px !important;
    margin-top: 0 !important;
}
body.theme-dark.design-style2 .form-control:focus,
body.theme-dark.design-style2 select:focus,
body.theme-dark.design-style2 textarea:focus {
    background-color: rgba(15, 23, 42, 0.75) !important;
    border-color: var(--secondary) !important;
}

body.theme-dark.design-style2 table.table th {
    color: var(--secondary) !important;
}

body.theme-dark.design-style2 table.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.theme-dark header.header {
    background-color: #1a1a1a !important;
}

/* --- TARJETAS EN MODO OSCURO PARA ESTILOS NO-GLASSMORPHIC --- */
body.theme-dark:not(.design-style2) .card {
    background-color: #1e1e1e !important;
    border: 1px solid #2d2d2d !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

body.theme-dark:not(.design-style2) .card-header {
    background-color: #252525 !important;
    border-bottom: 1px solid #2d2d2d !important;
}

body.theme-dark:not(.design-style2) .card-footer,
body.theme-dark:not(.design-style2) .card .card-footer {
    background-color: #252525 !important;
    border-top: 1px solid #2d2d2d !important;
    color: #ffffff !important;
}

/* --- CONTROLES DE FORMULARIO EN MODO OSCURO GLOBAL --- */
body.theme-dark .form-control, 
body.theme-dark select, 
body.theme-dark textarea {
    background-color: #2a2a2a !important;
    border-color: #3d3d3d !important;
    color: #ffffff !important;
}

body.theme-dark .form-control:focus,
body.theme-dark select:focus,
body.theme-dark textarea:focus {
    background-color: #333333 !important;
    border-color: var(--secondary) !important;
    color: #ffffff !important;
}

body.theme-dark .form-control::placeholder,
body.theme-dark select::placeholder,
body.theme-dark textarea::placeholder {
    color: #a0aec0 !important;
}

/* --- LEGIBILIDAD EXTREMA Y ALTO CONTRASTE DE TEXTOS EN MODO OSCURO --- */
body.theme-dark label,
body.theme-dark .form-control-label,
body.theme-dark legend,
body.theme-dark .card-title,
body.theme-dark .box-title,
body.theme-dark .help-block,
body.theme-dark .form-text,
body.theme-dark .card-header,
body.theme-dark .card-header h4,
body.theme-dark .card-header strong,
body.theme-dark .card-header span,
body.theme-dark .card-body,
body.theme-dark .card-block,
body.theme-dark .right-panel .page-header .breadcrumb li,
body.theme-dark .right-panel .page-header .breadcrumb li a,
body.theme-dark .right-panel .page-header .page-title h1,
body.theme-dark .dataTables_wrapper .dataTables_length,
body.theme-dark .dataTables_wrapper .dataTables_filter,
body.theme-dark .dataTables_wrapper .dataTables_info,
body.theme-dark .dataTables_wrapper .dataTables_paginate {
    color: #f3f4f6 !important;
}

/* Forzar que pequeños textos de ayuda o párrafos estándar sean claros */
body.theme-dark p {
    color: #e5e7eb !important;
}
body.theme-dark .help-block,
body.theme-dark .form-text,
body.theme-dark .help-block *,
body.theme-dark .form-text *,
body.theme-dark small,
body.theme-dark small * {
    color: #94a3b8 !important;
}

/* --- TABLAS GLOBAL EN MODO OSCURO --- */
body.theme-dark table,
body.theme-dark table.table {
    color: #f3f4f6 !important;
}

body.theme-dark table th,
body.theme-dark table.table th,
body.theme-dark table.table thead th {
    background-color: #252525 !important;
    color: var(--secondary) !important;
    border-color: #3d3d3d !important;
}

body.theme-dark table td,
body.theme-dark table.table td {
    border-color: #2d2d2d !important;
    color: #e5e7eb !important;
    background-color: transparent !important;
}

body.theme-dark table.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* --- MODALES EN MODO OSCURO --- */
body.theme-dark .modal-content {
    background-color: #1e1e1e !important;
    color: #f3f4f6 !important;
    border: 1px solid #2d2d2d !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.theme-dark .modal-header,
body.theme-dark .modal-footer {
    border-color: #2d2d2d !important;
    background-color: #1a1a1a !important;
    color: #f3f4f6 !important;
}

body.theme-dark .modal-title {
    color: #f3f4f6 !important;
    font-weight: 700 !important;
}

/* --- MODALES EN GLASSMORPHISM (ESTILO 2) --- */
body.theme-dark.design-style2 .modal-content {
    background: color-mix(in srgb, var(--primary) 12%, rgba(15, 23, 42, 0.88)) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark.design-style2 .modal-header,
body.theme-dark.design-style2 .modal-footer {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- SWEETALERT2 EN MODO OSCURO --- */
body.theme-dark .swal2-popup {
    background-color: #1e1e1e !important;
    color: #f3f4f6 !important;
    border: 1px solid #2d2d2d !important;
}

body.theme-dark .swal2-title,
body.theme-dark .swal2-html-container {
    color: #f3f4f6 !important;
}

/* ========================================================
   7.1 ADAPTACIONES DE MODO OSCURO PREMIUM - ESTILO 1 (GLOSS & FLAT INTERMEDIATE)
   ======================================================== */
body.theme-dark.design-style1,
body.theme-dark.design-style1 #right-panel,
body.theme-dark.design-style1 .right-panel,
body.theme-dark.design-style1 .content,
body.theme-dark.design-style1 .animated {
    background-color: #0b0f19 !important;
    background: #0b0f19 !important;
    color: #ffffff !important;
}

/* Cabecera superior integrada con color negro azuloso */
body.theme-dark.design-style1 header.header {
    background-color: #131a26 !important;
    border-bottom: 1px solid #2d3748 !important;
    border-top: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Menú lateral (Sidebar) integrado con color negro azuloso */
body.theme-dark.design-style1 aside#left-panel {
    background-color: #131a26 !important;
    background: #131a26 !important;
    border-right: 1px solid #2d3748 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3) !important;
}

/* Tarjetas integradas con color negro azuloso */
body.theme-dark.design-style1 .card {
    background-color: #131a26 !important;
    border: 1px solid #2d3748 !important;
    border-radius: 10px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25) !important;
}

body.theme-dark.design-style1 .card-header {
    background-color: #1c2535 !important;
    border-bottom: 1px solid #2d3748 !important;
}

body.theme-dark.design-style1 .card-footer,
body.theme-dark.design-style1 .card .card-footer {
    background-color: #1c2535 !important;
    border-top: 1px solid #2d3748 !important;
    color: #ffffff !important;
}

/* Re-definición de tarjetas de estado con acento en Modo Oscuro Estilo 1 */
body.theme-dark.design-style1 .card.card-accent-left,
body.theme-dark.design-style1 .card[class*="status-"] {
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 4.5px solid var(--primary) !important;
}
body.theme-dark.design-style1 .card.status-secondary,
body.theme-dark.design-style1 .card.status-gold {
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 4.5px solid var(--secondary) !important;
}
body.theme-dark.design-style1 .card.status-success,
body.theme-dark.design-style1 .card.status-green {
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 4.5px solid #235B4E !important;
}
body.theme-dark.design-style1 .card.status-gray {
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 4.5px solid #6F7271 !important;
}

/* Legibilidad extrema para títulos de las tarjetas y secciones */
body.theme-dark.design-style1 .box-title,
body.theme-dark.design-style1 .card-title,
body.theme-dark.design-style1 .card .card-header strong,
body.theme-dark.design-style1 .card .card-header h4,
body.theme-dark.design-style1 .card-header,
body.theme-dark.design-style1 .card-header span {
    color: #ffffff !important;
}

/* Controles de Formulario e Inputs estilizados en Modo Oscuro Estilo 1 */
body.theme-dark.design-style1 .form-control,
body.theme-dark.design-style1 select,
body.theme-dark.design-style1 textarea {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

body.theme-dark.design-style1 .form-control:focus,
body.theme-dark.design-style1 select:focus,
body.theme-dark.design-style1 textarea:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

/* Barra de breadcrumbs global para Modo Oscuro */
body.theme-dark:not(.design-style2) .breadcrumbs {
    background-color: #131a26 !important;
    background: #131a26 !important;
    border: none !important;
    border-bottom: 1px solid #2d3748 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Hacer transparentes los contenedores internos para evitar la acumulación de opacidad */
body.theme-dark .breadcrumbs-inner,
body.theme-dark .page-header,
body.theme-dark .page-header .breadcrumb {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.theme-dark .breadcrumbs .page-header h1 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.theme-dark .breadcrumbs .breadcrumb li,
body.theme-dark .breadcrumbs .breadcrumb li a {
    color: #e2e8f0 !important;
}

body.theme-dark .breadcrumbs .breadcrumb li.active {
    color: var(--secondary) !important;
    font-weight: 600 !important;
}

/* Footer global para Modo Oscuro */
body.theme-dark:not(.design-style2) footer.site-footer {
    background-color: #131a26 !important;
    background: #131a26 !important;
    border: none !important;
    border-top: 1px solid #2d3748 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #e2e8f0 !important;
}

body.theme-dark footer.site-footer .footer-inner {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #e2e8f0 !important;
}

body.theme-dark footer.site-footer .footer-inner a {
    color: var(--secondary, #bc955c) !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

body.theme-dark footer.site-footer .footer-inner a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Tablas Premium en Modo Oscuro Estilo 1 */
body.theme-dark.design-style1 table.table {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.theme-dark.design-style1 table.table thead th {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.theme-dark.design-style1 table.table td {
    background-color: transparent !important;
    color: #e5e7eb !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.theme-dark.design-style1 table.table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* ========================================================
   8. ALINEACIONES DE CABECERA PREMIUM PARA ESTILOS NO-GLASSMORPHIC (ESTILO 1 Y ESTILO 3)
   ======================================================== */
@media (min-width: 992px) {
    body:not(.design-style2) .top-right {
        float: right !important;
        height: 55px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body:not(.design-style2) .header-menu {
        height: 55px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:not(.design-style2) .header-right {
        display: flex !important;
        align-items: center !important;
        height: 55px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.design-style1 .original-user-area {
        float: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        height: 55px !important;
    }

    body.design-style1 .user-area .dropdown-toggle {
        height: 55px !important;
        line-height: 55px !important;
    }
}

/* Alineaciones universales de elementos internos */
body:not(.design-style2) .header-action-buttons {
    display: flex !important;
    align-items: center !important;
    margin-right: 20px !important;
}

body:not(.design-style2) .user-area .user-avatar {
    width: 38px !important;
    height: 38px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--border-color, #e2e8f0) !important;
    transition: all 0.2s ease !important;
}

body:not(.design-style2) .user-area .user-avatar:hover {
    border-color: var(--primary) !important;
    transform: scale(1.05) !important;
}

body:not(.design-style2) .user-area .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    position: relative !important;
}

body:not(.design-style2) .user-area .dropdown-toggle:before {
    right: 0px !important;
    bottom: 10px !important;
    width: 10px !important;
    height: 10px !important;
    border: 1.5px solid #ffffff !important;
}

/* Alineación y micro-interacciones de iconos nocturno/notificación */
body:not(.design-style2) #dashboardNightModeToggle,
body:not(.design-style2) .notification-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    font-size: 19px !important;
    color: #6b7280 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 36px !important;
    height: 36px !important;
    transition: all 0.2s ease !important;
}

body:not(.design-style2) #dashboardNightModeToggle:hover,
body:not(.design-style2) .notification-button:hover {
    color: var(--primary) !important;
    transform: scale(1.1) !important;
}

body:not(.design-style2) .notification-button i.fa-bell {
    position: static !important;
    top: auto !important;
    transform: none !important;
    font-size: 19px !important;
    color: #6b7280 !important;
}

body:not(.design-style2) .notification-button:hover i.fa-bell {
    color: var(--primary) !important;
}

body:not(.design-style2) .notification-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border: 1.5px solid #ffffff !important;
}

/* Modo Nocturno de Cabecera (Soporte Alto Contraste) */
body.theme-dark:not(.design-style2) #dashboardNightModeToggle,
body.theme-dark:not(.design-style2) .notification-button,
body.theme-dark:not(.design-style2) .notification-button i.fa-bell {
    color: #f3f4f6 !important;
}

/* Legibilidad y estética premium para botones en Modo Oscuro */
body.theme-dark .btn-primary {
    background-color: var(--primary, #9f2241) !important;
    border-color: var(--primary, #9f2241) !important;
    color: #ffffff !important;
}
body.theme-dark .btn-primary:hover {
    background-color: color-mix(in srgb, #ffffff 15%, var(--primary, #9f2241)) !important;
    border-color: color-mix(in srgb, #ffffff 15%, var(--primary, #9f2241)) !important;
    color: #ffffff !important;
}
body.theme-dark .btn-secondary {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-secondary:hover {
    background-color: #4a5568 !important;
    border-color: #718096 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-success {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-success:hover {
    background-color: #388e3c !important;
    border-color: #388e3c !important;
    color: #ffffff !important;
}
body.theme-dark .btn-danger {
    background-color: #c62828 !important;
    border-color: #c62828 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-danger:hover {
    background-color: #d32f2f !important;
    border-color: #d32f2f !important;
    color: #ffffff !important;
}
body.theme-dark .btn-warning {
    background-color: #ef6c00 !important;
    border-color: #ef6c00 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-warning:hover {
    background-color: #f57c00 !important;
    border-color: #f57c00 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-info {
    background-color: #0277bd !important;
    border-color: #0277bd !important;
    color: #ffffff !important;
}
body.theme-dark .btn-info:hover {
    background-color: #0288d1 !important;
    border-color: #0288d1 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-light {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-light:hover {
    background-color: #4a5568 !important;
    border-color: #718096 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-dark {
    background-color: #1a202c !important;
    border-color: #2d3748 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-dark:hover {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #ffffff !important;
}

/* Botones Outline en Modo Oscuro */
body.theme-dark .btn-outline-primary {
    color: var(--primary, #9f2241) !important;
    border-color: var(--primary, #9f2241) !important;
    background-color: transparent !important;
}
body.theme-dark .btn-outline-primary:hover {
    background-color: var(--primary, #9f2241) !important;
    color: #ffffff !important;
}
body.theme-dark .btn-outline-secondary {
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
    background-color: transparent !important;
}
body.theme-dark .btn-outline-secondary:hover {
    background-color: #4a5568 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-outline-success {
    color: #4caf50 !important;
    border-color: #4caf50 !important;
    background-color: transparent !important;
}
body.theme-dark .btn-outline-success:hover {
    background-color: #4caf50 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-outline-danger {
    color: #f44336 !important;
    border-color: #f44336 !important;
    background-color: transparent !important;
}
body.theme-dark .btn-outline-danger:hover {
    background-color: #f44336 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-outline-warning {
    color: #ff9800 !important;
    border-color: #ff9800 !important;
    background-color: transparent !important;
}
body.theme-dark .btn-outline-warning:hover {
    background-color: #ff9800 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-outline-info {
    color: #00bcd4 !important;
    border-color: #00bcd4 !important;
    background-color: transparent !important;
}
body.theme-dark .btn-outline-info:hover {
    background-color: #00bcd4 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-outline-dark {
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
    background-color: transparent !important;
}
body.theme-dark .btn-outline-dark:hover {
    background-color: #4a5568 !important;
    border-color: #718096 !important;
    color: #ffffff !important;
}
body.theme-dark .btn-outline-light {
    color: #ffffff !important;
    border-color: #cbd5e1 !important;
    background-color: transparent !important;
}
body.theme-dark .btn-outline-light:hover {
    background-color: #cbd5e1 !important;
    color: #1e293b !important;
}

/* ========================================================
   REGLAS EXCLUSIVAS PARA ESTILO 3 (CLÁSICO ACADÉMICO) EN MODO OSCURO
   ======================================================== */
body.theme-dark.design-style3,
body.theme-dark.design-style3 #right-panel,
body.theme-dark.design-style3 .right-panel,
body.theme-dark.design-style3 .content,
body.theme-dark.design-style3 .animated {
    background-color: #080c10 !important;
    background: #080c10 !important;
    color: #e2e8f0 !important;
}

body.theme-dark.design-style3 .breadcrumbs {
    background-color: #080c10 !important;
    background: #080c10 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--secondary) 20%, #1c232f) !important;
    box-shadow: none !important;
}

body.theme-dark.design-style3 .premium-user-name {
    color: #ffffff !important;
}

body.theme-dark.design-style3 .premium-user-role {
    color: var(--secondary) !important;
}

body.theme-dark.design-style3 .card {
    background-color: #11161d !important;
    border: 2px solid var(--secondary) !important; /* Solid elegant gold/bronze border in dark mode too */
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
}

/* Card header distinct background and gold divider line in dark mode */
body.theme-dark.design-style3 .card .card-header {
    background-color: #181f29 !important;
    border-bottom: 1.5px solid var(--secondary) !important;
    color: #ffffff !important;
}

body.theme-dark.design-style3 .card .card-footer,
body.theme-dark.design-style3 .card-footer {
    background-color: #181f29 !important;
    border-top: 1px solid color-mix(in srgb, var(--secondary) 25%, #1c232f) !important;
    color: #ffffff !important;
}

body.theme-dark.design-style3 table.table {
    border: 1.5px solid color-mix(in srgb, var(--secondary) 50%, #1c232f) !important;
}

body.theme-dark.design-style3 table.table thead th,
body.theme-dark.design-style3 table thead th {
    background-color: #181f29 !important;
    border-bottom: 2.5px solid var(--secondary) !important;
    color: #ffffff !important;
}

body.theme-dark.design-style3 table.table td,
body.theme-dark.design-style3 table td {
    background-color: #11161d !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--secondary) 20%, #1c232f) !important;
}

body.theme-dark.design-style3 table.table tbody tr:hover td {
    background-color: color-mix(in srgb, var(--secondary) 8%, #11161d) !important;
}

body.theme-dark.design-style3 .form-control,
body.theme-dark.design-style3 select,
body.theme-dark.design-style3 textarea {
    background-color: #181f29 !important;
    border: 1.5px solid color-mix(in srgb, var(--secondary) 30%, #1c232f) !important;
    color: #ffffff !important;
}

body.theme-dark.design-style3 .form-control:focus,
body.theme-dark.design-style3 select:focus,
body.theme-dark.design-style3 textarea:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 20%, transparent) !important;
}

/* High visibility help-block / form-text for Style 3 Clásico Académico */
body.design-style3 .help-block,
body.design-style3 .form-text,
body.design-style3 .help-block *,
body.design-style3 .form-text * {
    color: color-mix(in srgb, var(--primary) 75%, #000000) !important; /* Deep, clear academic tone */
    font-size: 0.85rem !important;
    font-weight: 550 !important;
    margin-top: 6px !important;
    display: block !important;
    opacity: 0.95 !important;
}

body.theme-dark.design-style3 .help-block,
body.theme-dark.design-style3 .form-text,
body.theme-dark.design-style3 .help-block *,
body.theme-dark.design-style3 .form-text * {
    color: color-mix(in srgb, var(--secondary) 85%, #ffffff) !important; /* Elegant warm gold-white high-contrast text */
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* ========================================================
   CONTRASTE Y SKINNING PARA TARJETAS Y ELEMENTOS EN MODO OSCURO (ESTILOS COMPARTIDOS Y ESPECÍFICOS)
   ======================================================== */

/* General Card, Card-Modern and Small Card Skinning */
body.theme-dark.design-style3 .card,
body.theme-dark.design-style3 .card-modern,
body.theme-dark.design-style3 .small-card {
    background-color: #11161d !important;
    background: #11161d !important;
    border: 2px solid var(--secondary) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4) !important;
}

/* Card Header, Footer, and Title Overrides */
body.theme-dark.design-style3 .card .card-header,
body.theme-dark.design-style3 .card-modern .card-header,
body.theme-dark.design-style3 .small-card .sc-header {
    background-color: #181f29 !important;
    border-bottom: 1.5px solid var(--secondary) !important;
    color: #ffffff !important;
}

body.theme-dark.design-style3 .card-modern h5,
body.theme-dark.design-style3 .card-modern h5 * {
    color: #ffffff !important;
}

/* Override for Inline Dark Colors on Text and Numbers globally in Style 3 Dark Mode */
body.theme-dark.design-style3 [style*="color: #495057"],
body.theme-dark.design-style3 [style*="color:#495057"],
body.theme-dark.design-style3 [style*="color: #2b2b2b"],
body.theme-dark.design-style3 [style*="color:#2b2b2b"],
body.theme-dark.design-style3 [style*="color: #333"],
body.theme-dark.design-style3 [style*="color:#333"],
body.theme-dark.design-style3 [style*="color: #111"],
body.theme-dark.design-style3 [style*="color:#111"],
body.theme-dark.design-style3 [style*="color: #212529"],
body.theme-dark.design-style3 [style*="color:#212529"],
body.theme-dark.design-style3 [style*="color: #444"],
body.theme-dark.design-style3 [style*="color:#444"],
body.theme-dark.design-style3 [style*="color: #555"],
body.theme-dark.design-style3 [style*="color:#555"],
body.theme-dark.design-style3 [style*="color:black"],
body.theme-dark.design-style3 [style*="color: black"] {
    color: #ffffff !important;
}

body.theme-dark.design-style3 [style*="color: #6c757d"],
body.theme-dark.design-style3 [style*="color:#6c757d"],
body.theme-dark.design-style3 [style*="color: #888"],
body.theme-dark.design-style3 [style*="color:#888"],
body.theme-dark.design-style3 [style*="color: #777"],
body.theme-dark.design-style3 [style*="color:#777"],
body.theme-dark.design-style3 [style*="color: #666"],
body.theme-dark.design-style3 [style*="color:#666"],
body.theme-dark.design-style3 [style*="color: #aaa"],
body.theme-dark.design-style3 [style*="color:#aaa"],
body.theme-dark.design-style3 [style*="color: #a9a9a9"],
body.theme-dark.design-style3 [style*="color:#a9a9a9"] {
    color: #cbd5e1 !important;
}

/* Metric text labels specific overrides */
body.theme-dark.design-style3 .metric-title,
body.theme-dark.design-style3 .sc-title,
body.theme-dark.design-style3 .stats-item-title {
    color: #ffffff !important;
}

body.theme-dark.design-style3 .metric-value,
body.theme-dark.design-style3 .sc-value,
body.theme-dark.design-style3 .chart-center h3,
body.theme-dark.design-style3 .chart-center h3 span {
    color: #ffffff !important;
}

body.theme-dark.design-style3 .chart-center > span,
body.theme-dark.design-style3 .stats-item-subtitle,
body.theme-dark.design-style3 .text-muted {
    color: #cbd5e1 !important;
}

/* Border and Grid Line Overrides */
body.theme-dark.design-style3 .card [style*="border-right: 1px solid #f0f0f0"],
body.theme-dark.design-style3 .card [style*="border-right:1px solid #f0f0f0"],
body.theme-dark.design-style3 .card [style*="border-right: 1px solid #f4f5f7"],
body.theme-dark.design-style3 .card [style*="border-right:1px solid #f4f5f7"],
body.theme-dark.design-style3 .card .border-right {
    border-right: 1px solid color-mix(in srgb, var(--secondary) 20%, #1c232f) !important;
}

body.theme-dark.design-style3 .card [style*="border-top: 2px solid #f4f5f7"],
body.theme-dark.design-style3 .card [style*="border-top:2px solid #f4f5f7"],
body.theme-dark.design-style3 .card .border-top,
body.theme-dark.design-style3 .card [style*="border-top: 2px solid #f0f0f0"] {
    border-top: 2px solid color-mix(in srgb, var(--secondary) 20%, #1c232f) !important;
}

body.theme-dark.design-style3 .card .border-bottom,
body.theme-dark.design-style3 .card [style*="border-bottom: 2px solid #f4f5f7"],
body.theme-dark.design-style3 .card [style*="border-bottom:2px solid #f4f5f7"],
body.theme-dark.design-style3 .card-modern [style*="border-bottom: 2px solid #f4f5f7"],
body.theme-dark.design-style3 .card-modern [style*="border-bottom:2px solid #f4f5f7"] {
    border-bottom: 1.5px solid color-mix(in srgb, var(--secondary) 20%, #1c232f) !important;
}

/* Semi-donut Widget Styling in Dark Mode */
body.theme-dark.design-style3 .semi-donut-model-2 {
    color: #ffffff !important;
}
body.theme-dark.design-style3 .semi-donut-model-2:after {
    border-color: #1c232f !important;
}

/* Button & Dropdown contrast adjustments */
body.theme-dark.design-style3 #pubFilterButtons button,
body.theme-dark.design-style3 .card button,
body.theme-dark.design-style3 .card-modern button,
body.theme-dark.design-style3 .small-card button {
    background-color: #181f29 !important;
    border: 1.5px solid color-mix(in srgb, var(--secondary) 30%, #1c232f) !important;
    color: #e2e8f0 !important;
    transition: all 0.2s ease-in-out !important;
}

body.theme-dark.design-style3 #pubFilterButtons button:hover,
body.theme-dark.design-style3 .card button:hover,
body.theme-dark.design-style3 .card-modern button:hover,
body.theme-dark.design-style3 .small-card button:hover,
body.theme-dark.design-style3 #pubFilterButtons button.active {
    background-color: var(--secondary) !important;
    color: #080c10 !important;
    border-color: var(--secondary) !important;
}

/* Dynamic Progress Bar adjustments */
body.theme-dark.design-style3 .progress,
body.theme-dark.design-style3 .custom-prog {
    background-color: #1c232f !important;
}
/* Override sidebar active color to guindo */
.navbar .navbar-nav > .active > a, .navbar .navbar-nav > .active > a:focus, .navbar .navbar-nav > .active > a:hover { color: #800000 !important; }
.navbar .navbar-nav li.active .menu-icon { color: #800000 !important; }
