/* Sidebar ancho fijo */
#sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    background: #212529; /* o el color que uses */
    z-index: 1000;
    overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.15) transparent;
}

/* Links del sidebar */
#sidebar .nav-link {
    border-radius: 6px;
    transition: background 0.2s;
}

#sidebar .nav-link:hover {
    background: rgba(255,255,255,0.15);
}
/* Logo centrado */
.sidebar-logo {
    width: 100%;
    text-align: center;
}

.sidebar-logo img {
    max-width: 130px;   /* tamaño recomendado */
    height: auto;
    display: block;
    margin: 0 auto;
}
.sidebar-logo img:hover{
    transform: scale(1.05);
}
/* Chrome, Edge */
#sidebar::-webkit-scrollbar{
    width:5px;
}

#sidebar::-webkit-scrollbar-track{
    background:transparent;
}

#sidebar::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.18);
    border-radius:20px;
}

#sidebar::-webkit-scrollbar-thumb:hover{
    background:rgba(255,255,255,.35);
}
#layout {
    margin-left: 240px;   /* mismo ancho del sidebar */
    transition: margin-left 0.3s ease;
}
/* Responsive: ocultar sidebar en móviles */
@media (max-width: 800px) {
    #sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    #sidebar.active {
        left: 0;
    }

    #layout {
        margin-left: 0 !important;
    }

.sidebar-logo img {
        max-width: 100px;
    }
}
.sidebar-menu .nav-link {
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 14px;
}

.sidebar-menu .nav-link:hover {
    background: rgba(255,255,255,.12);
}

.sidebar-section {
    margin-bottom: 6px;
}

.sidebar-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.75);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.sidebar-toggle span {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-toggle .bi-chevron-down {
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
}

.sidebar-submenu {
    padding-left: 10px;
    margin-top: 4px;
}

.sidebar-submenu .nav-link {
    font-size: 14px;
    padding-left: 18px;
}
/* Tarjetas (banners) */
.card img {
    border-radius: 6px;
}

/* Botón para mostrar menú en móviles (puedes añadirlo si quieres) */
.menu-toggle {
    cursor: pointer;
}

/**************BANNER*******/ 
.logo-img { 
    height: 90px; /* tamaño ideal */ 
    width: auto; object-fit: contain; 
    transition: transform 0.2s ease; 
} 
.logo-img:hover { 
    transform: scale(1.05); 
}

/* Cards con aumento suave */
.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
}

/* Títulos con fade al entrar */
.content h4 {
    animation: fadeIn 0.5s ease;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer del sidebar */
.sidebar-footer {
    padding-top: 15px;
    padding-bottom: 16px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* Separación entre los enlaces del footer */
.sidebar-footer > a {
    margin-bottom: 6px;
    text-decoration: none !important;
}

.sidebar-footer > a:last-of-type {
    margin-bottom: 0;
}

/* Firma institucional debajo de Accesibilidad */
.sidebar-footer-brand {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sidebar-footer-logo {
    display: block;
    width: 112px;
    max-width: 82%;
    height: 52px;
    object-fit: contain;
    margin: 0 auto;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-footer-logo:hover {
    opacity: 1;
    transform: scale(1.03);
}
#sidebar a:hover {
    opacity: 0.8;
    transform: translateX(3px);
    transition: 0.2s;
}

.header-banner {
    background-image: url('/assets/img/informativo/banner2.PNG'); /* TU IMAGEN */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 120px;           /* Altura mínima */
    padding: 20px 30px;          /* ESPACIO para que los botones no se peguen */
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* CONTROLES: siempre empujados a la derecha */
.header-controls {
  margin-left: auto;          /* <- esto los posiciona a la derecha */
  display: flex;
  gap: 0.5rem;
  align-items: center;
}


/**********************************************
    PERFIL DE USUARIO (OPTIMIZADO)
***********************************************/

.perfil-page {
    font-family: Arial, sans-serif;
    padding-bottom: 40px;
}

/* 🔥 Código estilo badge */
.code-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0D1E3C;
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
}

.copy-btn {
    background: #fff;
    color: #0D1E3C;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    background: #ffc107;
    color: #000;
}

/* QR */
.qr-box img {
    border-radius: 10px;
    border: 2px solid #ddd;
    background: #fff;
    padding: 5px;
}

/* Imagen perfil PRO */
.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #0D1E3C;
    object-fit: cover;
}

/* 🔥 TOAST PRO */
.toast-custom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0D1E3C;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);

    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 9999;
}

.toast-custom.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-custom i {
    font-size: 18px;
    color: #28a745;
}
/* ==============================
   HEADER PRINCIPAL
============================== */
.perfil-header {
    background: linear-gradient(90deg, #0a3a63, #2f80ed);
    color: white;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    padding: 50px 30px 70px;
    position: relative;
    text-align: center;
}

/* Botones del header */
.header-actions {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 12px;
}

.action-btn {
    background: white;
    border: none;
    font-size: 22px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2);
}

/* Contenido principal del header */
.header-content .profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.6);
}

.header-content .name {
    font-size: 26px;
    font-weight: bold;
}

.header-content .code {
    margin-top: 4px;
    font-size: 16px;
    opacity: 0.9;
}

/* ==============================
   CONTENIDO / CARDS
============================== */
.perfil-page .container {
    max-width: 1100px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 0 20px;
}

.perfil-page .card {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.perfil-page .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.perfil-page .card h2 {
    font-size: 19px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e6e6e6;
    color: #1d3557;
    font-weight: 700;
}

/* ==============================
   TABLAS
============================== */
.perfil-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.perfil-page td {
    background: #f8f9fa;
    padding: 12px 14px;
    border-radius: 8px;
    white-space: normal;     /* permite saltos de línea */
    word-break: break-word;  /* corta palabras largas */
    max-width: 100%;         /* evita que se salga del contenedor */
}

.perfil-page td:first-child {
    background: transparent;
    font-weight: bold;
    width: 35%;
    padding-left: 0;
    color: #333;
}

/* ==============================
   ENLACES
============================== */
.perfil-page a {
    color: #1d72d8;
    font-weight: 500;
}

.perfil-page a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ==============================
   RESPONSIVE REAL
============================== */
@media (max-width: 768px) {

    /* Las cards en columna */
    .perfil-page .container {
        grid-template-columns: 1fr;
    }

    /* Reduce padding del header */
    .perfil-header {
        padding: 40px 20px 60px;
    }

    /* Botones más accesibles */
    .header-actions {
        top: 15px;
        right: 15px;
    }

    .action-btn {
        font-size: 20px;
        padding: 8px 10px;
    }

    /* Imagen más pequeña */
    .header-content .profile-img {
        width: 100px;
        height: 100px;
    }

    .header-content .name {
        font-size: 22px;
    }
}

/* Para dispositivos muy pequeños (como móviles en modo vertical) */
@media (max-width: 480px) {
    /* Ajustar padding para mayor espacio */
    .perfil-header {
        padding: 20px 10px 40px;
    }

    /* Asegura que los botones no sean demasiado grandes */
    .header-actions {
        top: 10px;
        right: 10px;
    }

    /* Ajustar los tamaños de los botones */
    .action-btn {
        font-size: 18px;
        padding: 6px 8px;
    }

    /* La imagen de perfil debe ser aún más pequeña */
    .header-content .profile-img {
        width: 80px;
        height: 80px;
    }

    .header-content .name {
        font-size: 18px;
    }

    /* Reduce la altura del encabezado */
    .perfil-header h1 {
        font-size: 24px;
    }

    /* Cambiar el margen de la tarjeta de perfil */
    .perfil-page .container {
        margin: 0 10px;
    }
}
/* ==========================================================
      MODO OSCURO PARA LA PÁGINA DE PERFIL
   ========================================================== */

/* Fondo general */
body.dark-mode {
    background: #121212 !important;
    color: #eaeaea !important;
}

/* Header */
body.dark-mode .perfil-header {
    background: linear-gradient(90deg, #0a2540, #1b4a80) !important;
    color: #fff;
}

/* Nombre y código */
body.dark-mode .perfil-header .name,
body.dark-mode .perfil-header .code {
    color: #fff !important;
}

/* Cards */
body.dark-mode .perfil-page .card {
    background: #1f1f1f !important;
    color: #e5e5e5 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

body.dark-mode .perfil-page .card h2 {
    color: #fafafa !important;
    border-bottom-color: #444 !important;
}

/* Tablas */
body.dark-mode .perfil-page td {
    background: #262626 !important;
    color: #eaeaea !important;
}

body.dark-mode .perfil-page td:first-child {
    background: transparent !important;
    color: #cccccc !important;
}

/* Enlaces */
body.dark-mode .perfil-page a {
    color: #4da8ff !important;
}

body.dark-mode .perfil-page a:hover {
    color: #82c4ff !important;
}

/* Botón de modo oscuro */
body.dark-mode .action-btn {
    background: #1d1d1d !important;
    color: #ffffff !important;
    border: 1px solid #444;
}

/* Sidebar en modo oscuro */
body.dark-mode #sidebar {
    background: #161616 !important;
}

body.dark-mode #sidebar a {
    color: #ddd !important;
}

/* ==========================================================
   CURSOS – ESTILOS PRINCIPALES
   ========================================================== */

.courses-page {
    padding: 20px 40px;
    background: transparent;
    color: inherit;
    box-sizing: border-box;
    font-family: inherit;
    width: 100%;
}

.courses-page > h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1d1d1d;
    margin: 6px 0 22px;
}

/* ==========================================================
   FILTROS (Siempre arriba, nunca se mueven)
   ========================================================== */

.courses-page .courses-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
}

.courses-page .courses-filters input[type="search"] {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-size: 0.95rem;
    box-sizing: border-box;
    width: 180px; /* 🔥 igual que tus MUI-select */
}

/********************************** Botón de vista **************************/
.view-toggle {
    display: flex;
    gap: 6px;
    align-items: center;
}

.view-toggle .toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle .toggle-btn:hover {
    background: #f0f0f0;
}

.view-toggle .toggle-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}


/* ==========================================================
   RESULTADOS
   ========================================================== */

.courses-page .results-count {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

/* ==========================================================
   SECCIONES / PERÍODOS
   ========================================================== */

.courses-page .section-period {
    font-weight: 700;
    color: #1f1f1f;
    margin: 25px 0 14px;
    padding-bottom: 6px;
    font-size: 1.2rem;
    border-bottom: 2px solid #e2e2e2;
    animation: fadeInSection 0.4s ease;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Contenedor de grupo de cursos por sección */
.courses-group {
    display: block;
}
/********************************* Contenedor base de filtros *************************************************************/
.mui-select {
    position: relative;
    width: 180px;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

/* Texto seleccionado */
.mui-selected {
    display: block;
}

/* El popup de opciones */
.mui-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    z-index: 5;
    max-height: 260px;
    overflow-y: auto;
}

/* Mostrar menú */
.mui-select.open .mui-options {
    display: block;
}

/* Items */
.mui-options li {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.mui-options li:hover {
    background: #f0f0f0;
}

/* Indicador ▼ */
.mui-select::after {
    content: "▼";
    font-size: 0.65rem;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
/* ==========================================================
   TARJETAS – VISTA LISTA (DEFAULT)
   ========================================================== */

.courses-page .course-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-left: 6px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.22s ease;
    opacity: 0;
    animation: fadeInCourse 0.45s ease forwards;
}

@keyframes fadeInCourse {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.courses-page .course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.courses-page .course-info {
    flex: 1;
    min-width: 0;
}

.courses-page .course-code {
    font-size: 0.88rem;
    font-weight: 500;
    color: #666;
}

.courses-page .course-name {
    margin-top: 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
}

.courses-page .course-meta {
    margin-top: 8px;
    font-size: 0.93rem;
    color: #777;
}

/* Estrella */
.courses-page .course-star {
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s ease;
}

.courses-page .course-star:hover {
    color: gold;
    transform: scale(1.20);
}

.courses-page .course-star.active {
    color: gold;
}

/* Colores */
.courses-page .border-blue   { border-left-color: #3498db; }
.courses-page .border-purple { border-left-color: #9b59b6; }
.courses-page .border-green  { border-left-color: #2ecc71; }
.courses-page .border-orange { border-left-color: #e67e22; }

/* ==========================================================
   VISTA CUADRÍCULA (GRID) – SOLO TARJETAS, NO FILTROS
   ========================================================== */

.courses-page.grid-view .section-period {
    display: none;
}

.courses-page.grid-view .courses-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Tarjetas en grid */
.courses-page.grid-view .courses-group .course-card {
    display: block;
    height: 190px;
    padding: 20px;
    border-left: none !important;
    border-top: 6px solid #3498db;
    position: relative;
}

/* Estrella flotante */
.courses-page.grid-view .courses-group .course-star {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    padding: 0;
}

/* Hover grid */
.courses-page.grid-view .courses-group .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

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

@media (max-width: 900px) {
    .courses-page h1 { font-size: 2rem; }
}

@media (max-width: 700px) {
    .courses-page { padding: 16px; }
    .courses-page .courses-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .courses-page .courses-filters input[type="search"],
    .mui-select {
        width: 100%; /* 🔥 todos igual de anchos */
    }
    
}

@media (max-width: 500px) {
    .courses-page.grid-view .courses-group {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 360px) {
    .courses-page.grid-view .courses-group {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================
      MODO OSCURO – PÁGINA DE CURSOS
   ========================================================== */

/* Fondo general */
body.dark-mode .courses-page {
    color: #e6e6e6 !important;
}

/* Título */
body.dark-mode .courses-page > h1 {
    color: #ffffff !important;
}

/* Filtros */
body.dark-mode .courses-filters input[type="search"] {
    background: #1d1d1d !important;
    color: #eaeaea !important;
    border: 1px solid #444 !important;
}

/* Selects personalizados */
body.dark-mode .mui-select {
    background: #1d1d1d !important;
    color: #eaeaea !important;
    border: 1px solid #444 !important;
}

body.dark-mode .mui-options {
    background: #222 !important;
    border-color: #555 !important;
}

body.dark-mode .mui-options li {
    color: #e6e6e6 !important;
}

body.dark-mode .mui-options li:hover {
    background: #333 !important;
}

/* Botones de vista lista / cuadricula */
body.dark-mode .toggle-btn {
    background: #1f1f1f !important;
    border: 1px solid #444 !important;
    color: #ddd !important;
}

body.dark-mode .toggle-btn.active {
    background: #3498db !important;
    border-color: #3498db !important;
    color: #fff !important;
}

/* Resultados */
body.dark-mode .results-count {
    color: #ccc !important;
}

/* Títulos de sección */
body.dark-mode .section-period {
    color: #fff !important;
    border-bottom-color: #444 !important;
}

/* Tarjetas de curso */
body.dark-mode .course-card {
    background: #1e1e1e !important;
    color: #eaeaea !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}

/* Código, nombre, meta */
body.dark-mode .course-code {
    color: #bbbbbb !important;
}

body.dark-mode .course-name {
    color: #ffffff !important;
}

body.dark-mode .course-meta {
    color: #b5b5b5 !important;
}

/* Estrella */
body.dark-mode .course-star {
    color: #888 !important;
}

body.dark-mode .course-star:hover,
body.dark-mode .course-star.active {
    color: gold !important;
}

/* Botón de modo oscuro arriba */
body.dark-mode .filters-actions .action-btn {
    background: #1d1d1d !important;
    color: #fff !important;
    border: 1px solid #444;
}


/***************************** PANEL DESLIZABLE *****************************/
.course-details {
    position: fixed;
    top: 0;
    right: -100%; /* Inicialmente está fuera de la pantalla */
    width: 97%;
    height: 100%;
    background-color: white;
    transition: right 0.5s ease;
    box-shadow: -4px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.course-details.active {
    right: 0;
}

/***************************** BOTÓN DE CERRAR *****************************/
#closeCourseDetails {
    position: absolute;
    top: 10px;        /* Ajusta la altura */
    left: 10px;       /* Separación exacta de la izquierda */
    width: 35px;      /* Cuadro más pequeño */
    height: 35px;
    
    font-size: 22px;  /* Tamaño de la X */
    background-color: #2c3e50;  /* Azul oscuro */
    color: white;
    
    border: none;
    border-radius: 6px;
    cursor: pointer;
    
    display: flex;            /* Centrar la X */
    align-items: center;
    justify-content: center;

    transition: background-color 0.3s ease, transform 0.2s ease;
}

#closeCourseDetails:hover {
    background-color: #34495e;
    transform: scale(1.05);
}

/***************************** CONTENIDO GENERAL *****************************/
.course-details-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 60px; /* Evita que el botón tape el contenido */
}

/***************************** SECCIÓN PRINCIPAL *****************************/
.course-content {
    flex: 3;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/***************************** HEADER Y PESTAÑAS *****************************/
.course-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 120px;
    width: 100%;
}

.tabs {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background-color: #e4e4e4;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tab-button.active {
    background-color: #3498db;
    color: white;
    transform: scale(1.05);
}

.tab-button:hover {
    background-color: #2980b9;
}

.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

/***************************** SIDEBAR *****************************/
.course-details-sidebar {
    flex: 1;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 280px;
    position: sticky;
    top: 20px;
}

.course-details-sidebar h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.course-details-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.course-details-sidebar ul li {
    margin: 8px 0;
    font-size: 1rem;
}

/***************************** LINKS *****************************/
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/***************************** RESPONSIVE *****************************/

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
    .course-details-content {
        flex-direction: column;
        align-items: stretch;
    }

    .course-details-sidebar {
        position: relative;
        top: 0;
        max-width: 100%;
        width: 100%;
    }

    #closeCourseDetails {
        left: 10px; /* Ya no sobresale */
        top: 10px;
    }
}

/* Celulares (≤ 768px) */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        gap: 10px;
    }

    .tab-button {
        width: 100%;
    }

    .course-details-sidebar,
    .course-content {
        width: 100%;
    }

}
/*********************************estilo de contenido del curso ********************************************************************************* */
.course-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cada ítem */
.course-content ul li {
    margin-bottom: 12px;
}

/* Enlaces estilo "tarjeta interactiva" */
.course-content ul li a {
    display: block;
    padding: 14px 18px;
    background-color: #ffffff;

    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;

    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);

    transition: 
        background-color 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.25s ease;
}

/* Hover: se eleva y cambia color */
.course-content ul li a:hover {
    background-color: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Activo o seleccionado (si deseas marcarlo) */
.course-content ul li a.active {
    background-color: #3498db;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* ==========================================================
      MODO OSCURO – COURSE DETAILS (igual estilo que Cursos)
   ========================================================== */

/* Fondo general */
body.dark-mode .course-details-content {
    color: #e6e6e6 !important;
}

/* Header general del curso */
body.dark-mode .course-header {
    background: #1e1e1e !important;
    color: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45) !important;
}

/* Título del curso */
body.dark-mode .course-header h1 {
    color: #ffffff !important;
}

/* -------- TABS -------- */
body.dark-mode .tabs .tab-button {
    background: #1f1f1f !important;
    color: #e6e6e6 !important;
    border: 1px solid #444 !important;
}

body.dark-mode .tabs .tab-button:hover {
    background: #272727 !important;
}

body.dark-mode .tabs .tab-button.active {
    background: #3498db !important;
    border-color: #3498db !important;
    color: #fff !important;
}

/* -------- CONTENIDO DEL CURSO -------- */
body.dark-mode .course-content h3 {
    color: #ffffff !important;
}

body.dark-mode .course-content ul li a {
    display: block;
    background: #1e1e1e !important;
    color: #eaeaea !important;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #444 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35) !important;
    transition: background .2s ease, border-color .2s ease;
}

body.dark-mode .course-content ul li a:hover {
    background: #2a2a2a !important;
    border-color: #555 !important;
}

/* -------- SIDEBAR -------- */
body.dark-mode .course-details-sidebar {
    background: #1e1e1e !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45) !important;
}

body.dark-mode .course-details-sidebar h4 {
    color: #ffffff !important;
}

body.dark-mode .course-details-sidebar ul li,
body.dark-mode .course-details-sidebar a {
    color: #e6e6e6 !important;
}

body.dark-mode .course-details-sidebar a:hover {
    color: #3498db !important;
}

/* -------- BOTONES DEL HEADER (modo oscuro + menú móvil) -------- */
body.dark-mode .header-actions .action-btn {
    background: #1d1d1d !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

body.dark-mode .header-actions .action-btn:hover {
    background: #272727 !important;
}

/* FONDO PRINCIPAL DEL PANEL (muy importante) */
body.dark-mode .course-details {
    background: #121212 !important;
    color: #e6e6e6 !important;
}

/* Contenedor interno */
body.dark-mode .course-details-content {
    background: transparent !important;
    color: #e6e6e6 !important;
}

/* Caja donde está el contenido (ANTES era blanca → por eso no cambiaba) */
body.dark-mode .course-content {
    background: #1d1d1d !important;
    color: #eaeaea !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35) !important;
}
/********************************************************************calendario*****************************************************************************************/
.calendar-container {
  width: 100%;
  padding: 20px 40px;
  max-width: none;
}

h1 {
  margin-bottom: 20px;
}

/* BOTONES SUPERIORES */
.top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.top-bar button {
  padding: 8px 15px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.top-bar button.active {
  background: black;
  color: white;
}

/* MES */
.month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 15px 0;
}

.month .arrow {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

/* DÍAS */
.weekdays, .dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 5px;
}

.weekdays span {
  font-weight: bold;
  color: #333;
}

/* BURBUJAS SOLO EN VISTA DÍA */
.calendar-container:not(.month-mode) .dates span {
    padding: 8px;
    margin: auto;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.active-date {
  background: #8e24aa;
  color: white;
}

/* FECHA PRINCIPAL */
.current-date {
  margin-top: 25px;
  font-weight: bold;
}

/* HORAS */
.time-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 60px 1fr;
  row-gap: 15px;
}

.time {
  text-align: right;
  padding-right: 10px;
  color: #666;
}

.line {
  border-top: 1px solid #e0e0e0;
}

.highlight {
  border-top: 2px solid black;
}

.current-time {
  background: black;
  color: white;
  padding: 4px 5px;
  border-radius: 8px;
  width: fit-content;
}

@media (max-width: 768px) {
  .calendar-container {
    width: 100%;
    margin-left: 0;
    padding: 15px;
  }
}
@media (max-width: 480px) {

  .top-bar {
    flex-direction: column;
    gap: 15px;
  }

  .left-buttons,
  .right-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .top-bar button {
    width: 100%;
    padding: 12px 8px;
    font-size: 14px;
  }

}

/***************** EVENTOS GRILLA *******************************/
.event {
  position: relative;
  background: linear-gradient(135deg, #8e24aa, #5e1785);
  color: white;
  padding: 10px 55px 16px 10px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 6px;
  max-width: 95%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform .2s ease, opacity .2s ease;
  cursor: grab;
  user-select: none;
}

.event:hover {
  transform: translateY(-2px) scale(1.01);
}

/* BOTONES */
.edit-btn,
.delete-btn {
  position: absolute;
  top: 4px;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: all 0.2s ease;
}

.event:hover .edit-btn,
.event:hover .delete-btn {
  opacity: 1;
}

.edit-btn {
  right: 32px;
  background: #ffb300;
  color: black;
}

.delete-btn {
  right: 5px;
  background: #e53935;
  color: white;
}

/* INPUT */
.event-input {
  width: 95%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

/* ===== DRAG & DROP ===== */
.event.dragging {
  opacity: 0.6;
  transform: scale(0.98);
}

/* Drop area */
.line.drag-over {
  background: rgba(142, 36, 170, 0.08);
  border-top: 2px dashed #8e24aa;
}

/* Manija visual para estirar */
.event::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18px;                /* 👈 más grande y cómodo */
  cursor: ns-resize;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(0,0,0,0.15)
  );
  border-radius: 0 0 10px 10px;
}

.event span {
  font-weight: 500;
  pointer-events: none;
}

.dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas para los días de la semana */
    gap: 5px;
}

.day-box {
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.day-box:hover {
    background-color: #f0f0f0;
}

.active-date {
    background-color: #8e24aa;
    color: white;
}

.fc-today {
    background-color: #ffeb3b;
}



.month-mode #timeGrid,
.month-mode #selectedDate {
    display: none !important;
}

.month-mode #weekdays {
    display: grid !important;
}

.month-mode #dates {
    display: grid !important;
}


/* ===== VISTA MES (CUADROS) ===== */
.month-mode #dates span {
    width: 100%;
    height: 210px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6px;
    font-size: 16px;
    cursor: pointer;
    
}

.month-mode #dates span:hover {
    background: #747272;
}

.month-mode #dates {
    gap: 4px;
    margin-top: 10px;
}

.month-mode #weekdays span {
    font-weight: bold;
    padding: 10px 0;
}

/*********************************************
        RESPONSIVE — VISTA MES
**********************************************/

/* Tablets (pantallas medianas) */
@media (max-width: 992px) {
    .month-mode #dates span {
        height: 110px;   /* un poco más bajo */
        padding: 6px;
        font-size: 13px;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .calendar-container {
        padding: 10px;
    }

    .month-mode #dates {
        grid-template-columns: repeat(7, 1fr);
    }

    .month-mode #dates span {
        height: 90px;
        padding: 5px;
        font-size: 12px;
    }

    .month-mode .day-number {
        font-size: 13px;
    }
}

/* Móviles pequeños */
@media (max-width: 600px) {

    /* Usamos 4 columnas en lugar de 7 */
    .month-mode #dates {
        grid-template-columns: repeat(4, 1fr);
    }

    .month-mode #dates span {
        height: 85px;
        font-size: 12px;
    }
}

/* Móviles muy pequeños (320px–480px) */
@media (max-width: 480px) {

    .month-mode #dates {
        grid-template-columns: repeat(3, 1fr); /* 3 por fila */
    }

    .month-mode #dates span {
        height: 75px;
        padding: 4px;
    }

    .month-mode .day-number {
        font-size: 12px;
        margin-bottom: 3px;
    }
}

/* Indicador de eventos en la vista MES */
.month-mode .day-box .event-indicator {
    width: 8px;
    height: 8px;
    background-color: #8e24aa;  /* Color del indicador, puedes cambiarlo */
    border-radius: 50%;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    bottom: 5px;
}

/* Mostrar los eventos en color rojo dentro de los días */
.month-mode .day-box .event-display {
    color: red;  /* Color del texto del evento */
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
}

/* Asegúrate de que el texto no se desborde y quede bien visible */
.month-mode .day-box .event-display .event-text {
    word-wrap: break-word;
    white-space: normal;
}

/* ==========================================================
      MODO OSCURO – calendario
   ========================================================== */
.calendar-container.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* Título */
.calendar-container.dark-mode h1 {
  color: #e0e0e0;
}

/* Botones superiores */
.calendar-container.dark-mode .top-bar {
  background-color: #1e1e1e;
}

.calendar-container.dark-mode .top-bar button {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #444;
}

.calendar-container.dark-mode .top-bar button.active {
  background: #8e24aa;
  color: white;
}

/* Mes */
.calendar-container.dark-mode .month {
  color: #e0e0e0;
}

.calendar-container.dark-mode .month .arrow {
  color: #e0e0e0;
}

/* Días de la semana */
.calendar-container.dark-mode .weekdays {
  background-color: #222;  /* Fondo ligeramente más claro para que los días resalten más */

}

.calendar-container.dark-mode .weekdays span {
  color: #ffffff !important;  /* Blanco brillante */
  font-weight: bold !important;           /* Aumentar peso para hacerlo más visible */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3) !important; /* Agregar sombra sutil para mejorar visibilidad */
}

/* Fechas */
.calendar-container.dark-mode .dates {
  background-color: #222;
}

.calendar-container.dark-mode .dates span {
  background-color: #333;
  color: #e0e0e0;
}

.calendar-container.dark-mode .dates span:hover {
  background-color: #555;
}

.calendar-container.dark-mode .active-date {
  background-color: #8e24aa;
  color: white;
}

/* Fecha seleccionada */
.calendar-container.dark-mode .current-date {
  color: #e0e0e0;
}

/* Grilla de horas */
.calendar-container.dark-mode .time-grid {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

.calendar-container.dark-mode .time {
  color: #999;
}

.calendar-container.dark-mode .line {
  border-top: 1px solid #444;
}

.calendar-container.dark-mode .highlight {
  border-top: 2px solid white;
}

.calendar-container.dark-mode .current-time {
  background-color: #8e24aa;
  color: white;
}

/* Eventos */
.calendar-container.dark-mode .event {
  background: linear-gradient(135deg, #8e24aa, #5e1785);
  color: white;
}

.calendar-container.dark-mode .event:hover {
  transform: translateY(-2px) scale(1.01);
}

.calendar-container.dark-mode .edit-btn {
  background: #ffb300;
  color: black;
}

.calendar-container.dark-mode .delete-btn {
  background: #e53935;
  color: white;
}

/* Input */
.calendar-container.dark-mode .event-input {
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #444;
}

/* Drag & Drop */
.calendar-container.dark-mode .event.dragging {
  opacity: 0.6;
  transform: scale(0.98);
}

.calendar-container.dark-mode .line.drag-over {
  background: rgba(142, 36, 170, 0.08);
  border-top: 2px dashed #8e24aa;
}

/* Manija visual para estirar eventos */
.calendar-container.dark-mode .event::after {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(0,0,0,0.15)
  );
}

/* Responsive: Modo oscuro */
@media (max-width: 768px) {
  .calendar-container.dark-mode .top-bar {
    flex-direction: column;
  }

  .calendar-container.dark-mode .left-buttons,
  .calendar-container.dark-mode .right-buttons {
    display: grid;
    gap: 10px;
  }

  .calendar-container.dark-mode .top-bar button {
    width: 100%;
  }
}
/* Aseguramos que los números de los días en la vista de mes se vean bien en modo oscuro */
.calendar-container.dark-mode .month-mode #dates span {
  color: #ffffff !important;  /* Blanco brillante para los números de los días */
  background-color: #333 !important;      /* Fondo oscuro para los cuadros de los días */
  border: 1px solid #444 !important;      /* Bordes más visibles */
}

/* Cambio de color al pasar el ratón sobre los días */
.calendar-container.dark-mode .month-mode #dates span:hover {
  background-color: #555 !important; /* Fondo más claro cuando se pasa el ratón */
}

/* Resalta la fecha activa (seleccionada) */
.calendar-container.dark-mode .month-mode .active-date {
  background-color: #8e24aa !important;
  color: white !important;
}

/* Cambiar color de los días de la semana (L, M, X, J, V, S, D) */
.calendar-container.dark-mode .month-mode #weekdays span {
  color: #ffffff !important;  /* Blanco brillante */
  font-weight: bold !important;           /* Aumentar peso para hacerlo más visible */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3) !important; /* Sombra para mejorar visibilidad */
}

/* ============================================================ PÁGINA CALIFICACIONES AISLADA ============================================================================================= */
/* ============================== MODO CLARO (actual) ============================== */
#calificaciones-page {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: #fafafa;
  color: #222;
  margin: 0;
  padding: 0;
}

/* Header */
#calificaciones-page .grades-header {
  background: white;
  padding: 18px 20px;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 30;
}

#calificaciones-page .grades-header h1 {
  margin: 0;
  font-weight: 500;
  font-size: 28px;
}

/* Term title */
#calificaciones-page .term-title h2 {
  font-size: 20px;
  font-weight: 400;
  color: #666;
  margin-bottom: 6px;
}

#calificaciones-page .term-title .dot-indicator {
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 50%;
  margin: 0 auto;
  opacity: .5;
}

/* Courses list */
#calificaciones-page .courses-list {
  max-width: 920px;
  margin: 0 auto 80px auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 20px; /* Ajuste para pequeños dispositivos */
}

/* Card base */
#calificaciones-page .course-card {
  background: white;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

/* Top colored stripe */
#calificaciones-page .course-card .top-stripe {
  height: 6px;
  width: 100%;
}

/* Content layout */
#calificaciones-page .course-content {
  display: flex;
  align-items: stretch;
  padding: 18px;
  gap: 14px;
  flex-wrap: wrap; /* Permite flexibilidad en tamaños más pequeños */
}

#calificaciones-page .course-main {
  flex: 1;
}

#calificaciones-page .course-number {
  display: block;
  font-size: 11px;
  color: #777;
  letter-spacing: .4px;
  margin-bottom: 6px;
}

#calificaciones-page .course-title {
  font-size: 22px;
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #222;
}

/* Right column: grade pill and icon */
#calificaciones-page .course-right {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Grade pill */
#calificaciones-page .grade-pill {
  background: #f3f3f3;
  padding: 10px 14px;
  border-radius: 18px;
  font-weight: 600;
  color: #444;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.03);
}

/* Recent area (diagonal stripes like screenshot) */
#calificaciones-page .recent-area {
  margin-top: 14px;
  padding: 20px;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0,0,0,0.03) 25%, transparent 25%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  border-radius: 2px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9b9b9b;
}

/* Footer row with "Ver todos los trabajos" */
#calificaciones-page .card-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 18px;
  border-top: 1px solid #eee;
  background: transparent;
}

/* Hover & active */
#calificaciones-page .course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(14,30,37,0.06);
}

/* small elements */
#calificaciones-page .view-all-link {
  color: #0d6efd;
  text-decoration: none;
  font-size: 14px;
}

/* Different color classes for top stripe */
#calificaciones-page .stripe-purple { background: linear-gradient(90deg,#b23cf7,#d86ef1); }
#calificaciones-page .stripe-blue   { background: linear-gradient(90deg,#0b83ff,#3fb6ff); }
#calificaciones-page .stripe-green  { background: linear-gradient(90deg,#00c37a,#4feaa3); }
#calificaciones-page .stripe-pink   { background: linear-gradient(90deg,#ff4db7,#ffa0d6); }
#calificaciones-page .stripe-orange { background: linear-gradient(90deg,#ff8533,#ffb366); }

/* MEDIA QUERIES */

/* Pantallas de hasta 1024px (Tabletas y pantallas medianas) */
@media (max-width: 1024px) {
  #calificaciones-page .courses-list {
    padding: 0 15px; /* Añadimos algo de padding para pantallas medianas */
  }
  
  #calificaciones-page .course-content {
    flex-direction: column; /* Colocamos los elementos uno debajo del otro */
    gap: 16px;
  }

  #calificaciones-page .course-right {
    width: 100%;
    align-items: flex-start;
  }
  
  #calificaciones-page .course-title {
    font-size: 20px;
  }

  #calificaciones-page .course-main {
    flex: none;
  }
}

/* Pantallas de hasta 720px (Dispositivos móviles) */
@media (max-width: 720px) {
  #calificaciones-page .course-right {
    width: 100px;
  }

  #calificaciones-page .course-title {
    font-size: 18px;
  }

  #calificaciones-page .courses-list {
    padding: 0 12px; /* Ajustamos padding para dispositivos pequeños */
  }

  #calificaciones-page .course-content {
    gap: 12px;
  }

  #calificaciones-page .course-card {
    padding: 12px; /* Ajustamos el padding dentro de las tarjetas */
  }
  
  #calificaciones-page .recent-area {
    padding: 14px; /* Reducimos el padding de las áreas recientes */
  }
}

/* ============================== MODO OSCURO ============================== */
/* Aplicamos cambios solo cuando la clase "dark-mode" esté en el body */
body.dark-mode #calificaciones-page {
    background: #121212;
    color: #e0e0e0;
}

/* Header en modo oscuro */
body.dark-mode #calificaciones-page .grades-header {
    background: #1c1c1c;
    border-bottom: 1px solid #333;
}

body.dark-mode #calificaciones-page .grades-header h1 {
    color: #e0e0e0;
}

/* Títulos del curso */
body.dark-mode #calificaciones-page .term-title h2 {
    color: #bbb;
}

body.dark-mode #calificaciones-page .term-title .dot-indicator {
    background: #888;
}

/* Cards en modo oscuro */
body.dark-mode #calificaciones-page .course-card {
    background: #2c2c2c;
    border: 1px solid #444;
    box-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

/* Títulos y números de curso */
body.dark-mode #calificaciones-page .course-title {
    color: #fff;
}

body.dark-mode #calificaciones-page .course-number {
    color: #aaa;
}

/* Columnas y botones */
body.dark-mode #calificaciones-page .course-right .grade-pill {
    background: #444;
    color: #ddd;
}

body.dark-mode #calificaciones-page .recent-area {
    background: #333;
    color: #ccc;
}

body.dark-mode #calificaciones-page .card-footer {
    border-top: 1px solid #444;
}

body.dark-mode .view-all-link {
    color: #64b5f6;
}

body.dark-mode .view-all-link:hover {
    color: #82cfff;
}

/* Hover & active en modo oscuro */
body.dark-mode #calificaciones-page .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(14,30,37,0.12);
}


/* ============================== MODO OSCURO — Modal ============================== */
body.dark-mode .modal-content {
    background-color: #2c2c2c;  /* Fondo oscuro */
    color: #e0e0e0;  /* Texto claro */
    border-radius: 4px;
}

body.dark-mode .modal-header {
    background-color: #444; /* Fondo oscuro del header */
    color: #e0e0e0;  /* Título en color claro */
    border-bottom: 1px solid #666;
}

body.dark-mode .modal-title {
    color: #e0e0e0;  /* Título del modal claro */
}

body.dark-mode .modal-body {
    background-color: #333; /* Fondo oscuro para el cuerpo del modal */
    color: #ccc; /* Texto claro para el cuerpo */
}

body.dark-mode .btn-close {
    color: #e0e0e0;  /* Botón de cerrar en color claro */
    background-color: transparent;
    border: none;
}

body.dark-mode .modal-footer {
    background-color: #444; /* Fondo oscuro para el pie de modal */
    border-top: 1px solid #666;
}

/* Para los botones dentro del modal en modo oscuro */
body.dark-mode .modal-body button,
body.dark-mode .modal-header button {
    background-color: #444;
    color: #e0e0e0;
    border: 1px solid #666;
}

body.dark-mode .modal-body button:hover,
body.dark-mode .modal-header button:hover {
    background-color: #555;
    border-color: #777;
}

/* =========================
   ÁREAS DE CURSOS
   ========================= */

.area-section {
    margin-bottom: 30px;
}

.area-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    border-left: 4px solid #0D1E3C;
    padding-left: 10px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* =========================
   ÁREAS ACADÉMICAS
   ========================= */
/* =========================
   AREA CARD PRO (BLACKBOARD STYLE)
   ========================= */

.area-card {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s;
}

/* HEADER */
.area-header {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, #0D1E3C, #152a52);
    color: white;
    transition: 0.3s;
}

.area-header:hover {
    background: linear-gradient(135deg, #12284a, #1a3566);
}

/* TITLE */
.area-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.icon {
    font-size: 18px;
}

/* META */
.area-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.count {
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.arrow {
    font-size: 18px;
    transition: 0.3s;
}

/* BODY (ANIMACIÓN REAL) */
.area-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #f9fafc;
}

/* COURSE ITEM */
.course-item {
    padding: 12px 16px;
    margin: 8px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #eee;
}

.course-item:hover {
    transform: translateX(4px);
    background: #eef3f8;
}

.course-name {
    font-weight: 600;
    color: #1a1a1a;
}

.course-sub {
    font-size: 12px;
    color: #666;
}
/* BARRA PROGRESO */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0D1E3C, #3b82f6);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.course-progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.course-container {
    padding: 20px;
}


#progressFill {
    height: 100%;
    background: #1e3c72;
    width: 0%;
    transition: 0.4s;
}

.course-tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.course-tabs button {
    padding: 8px 12px;
    border: none;
    background: #0D1E3C;
    color: white;
    cursor: pointer;
    border-radius: 6px;
}

/**********/
.tab-page {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn {
    padding: 8px 12px;
    background: #0D1E3C;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.list li {
    padding: 6px 0;
}

.big-progress {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

#bigProgressBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0D1E3C, #3b82f6);
}

/* ==========================================================
   DARK MODE GLOBAL - PANEL DOCENTE
   Agregar al final de blackboard.css
   ========================================================== */

body.dark-mode {
    --doc-bg: #0f172a;
    --doc-surface: #182235;
    --doc-surface-2: #202c40;
    --doc-surface-3: #27354a;
    --doc-border: #344258;
    --doc-text: #f1f5f9;
    --doc-muted: #aebacd;
    --doc-input: #111c2e;
    --doc-shadow: rgba(0, 0, 0, .34);

    background: var(--doc-bg) !important;
    color: var(--doc-text) !important;
}

body.dark-mode #layout,
body.dark-mode #content-area,
body.dark-mode main,
body.dark-mode .content {
    background: var(--doc-bg) !important;
    color: var(--doc-text) !important;
}

body.dark-mode .text-muted {
    color: var(--doc-muted) !important;
}

/* ==========================================================
   DARK MODE - CURSOS DOCENTE
   ========================================================== */

body.dark-mode .mis-cursos-wrapper {
    color: var(--doc-text) !important;
}

/* Hero azul: se conserva */
body.dark-mode .mis-cursos-wrapper .cursos-hero {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .30) !important;
}

body.dark-mode .mis-cursos-wrapper .cursos-hero h1,
body.dark-mode .mis-cursos-wrapper .cursos-hero h2,
body.dark-mode .mis-cursos-wrapper .cursos-hero h3,
body.dark-mode .mis-cursos-wrapper .cursos-hero p {
    color: #ffffff !important;
}

/* Contador del hero */
body.dark-mode .mis-cursos-wrapper .hero-stat {
    background: var(--doc-surface) !important;
    color: var(--doc-text) !important;
    border: 1px solid var(--doc-border) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28) !important;
}

body.dark-mode .mis-cursos-wrapper .hero-stat h3 {
    color: #ffffff !important;
}

body.dark-mode .mis-cursos-wrapper .hero-stat small {
    color: var(--doc-muted) !important;
}

/* Tarjetas resumen */
body.dark-mode .mis-cursos-wrapper .resumen-card {
    background: var(--doc-surface) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
    box-shadow: 0 8px 20px var(--doc-shadow) !important;
}

body.dark-mode .mis-cursos-wrapper .resumen-card h4 {
    color: #ffffff !important;
}

body.dark-mode .mis-cursos-wrapper .resumen-card small {
    color: var(--doc-muted) !important;
}

body.dark-mode .mis-cursos-wrapper .resumen-icon {
    background: #203653 !important;
    color: #7dd3fc !important;
}

/* Tarjetas de curso y grado */
body.dark-mode .mis-cursos-wrapper .curso-card,
body.dark-mode .mis-cursos-wrapper .grado-card {
    background: var(--doc-surface) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
    box-shadow: 0 10px 26px var(--doc-shadow) !important;
}

body.dark-mode .mis-cursos-wrapper .curso-card:hover,
body.dark-mode .mis-cursos-wrapper .grado-card:hover {
    background: var(--doc-surface-2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .40) !important;
}

/* Títulos */
body.dark-mode .mis-cursos-wrapper .curso-title,
body.dark-mode .mis-cursos-wrapper .grado-title {
    color: #f8fafc !important;
}

body.dark-mode .mis-cursos-wrapper .curso-info,
body.dark-mode .mis-cursos-wrapper .grado-info {
    color: var(--doc-muted) !important;
}

/* Badges */
body.dark-mode .mis-cursos-wrapper .curso-badge,
body.dark-mode .mis-cursos-wrapper .grado-badge {
    background: #203653 !important;
    color: #7dd3fc !important;
}

/* Datos internos */
body.dark-mode .mis-cursos-wrapper .info-pill,
body.dark-mode .mis-cursos-wrapper .grado-stats {
    background: var(--doc-input) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
}

body.dark-mode .mis-cursos-wrapper .grado-stats h3,
body.dark-mode .mis-cursos-wrapper .info-pill strong {
    color: #ffffff !important;
}

/* Icono de grado */
body.dark-mode .mis-cursos-wrapper .grado-icon {
    background: #203653 !important;
    color: #7dd3fc !important;
}

/* Botones */
body.dark-mode .mis-cursos-wrapper .btn-docente-primary {
    background: #2458a6 !important;
    color: #ffffff !important;
    border-color: #2458a6 !important;
}

body.dark-mode .mis-cursos-wrapper .btn-docente-primary:hover {
    background: #3475c9 !important;
    color: #ffffff !important;
}

/* Estado vacío */
body.dark-mode .mis-cursos-wrapper .empty-box {
    background: var(--doc-surface) !important;
    color: var(--doc-muted) !important;
    border-color: #465a73 !important;
}

body.dark-mode .mis-cursos-wrapper .empty-box h3,
body.dark-mode .mis-cursos-wrapper .empty-box h4 {
    color: var(--doc-text) !important;
}

/* Badge Panel docente */
body.dark-mode .mis-cursos-wrapper .badge.bg-light {
    background: rgba(255, 255, 255, .92) !important;
    color: #0d1e3c !important;
}

/* ==========================================================
   DARK MODE - CALENDARIO DOCENTE
   ========================================================== */

body.dark-mode .teacher-calendar-page {
    --calendar-primary: #4d8fe3;
    --calendar-primary-dark: #8bbcff;
    --calendar-primary-soft: #203653;
    --calendar-text: #f1f5f9;
    --calendar-muted: #aebacd;
    --calendar-border: #344258;
    --calendar-surface: #182235;
    --calendar-background: #202c40;
    --calendar-task: #60a5fa;
    --calendar-task-soft: #172e4f;
    --calendar-evaluation: #fb7185;
    --calendar-evaluation-soft: #48232c;

    color: var(--calendar-text) !important;
}

/* Tarjeta principal */
body.dark-mode .teacher-calendar-page .calendar-card {
    background: var(--calendar-surface) !important;
    border-color: var(--calendar-border) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .32) !important;
}

/* Encabezado del calendario */
body.dark-mode .teacher-calendar-page .calendar-card-header {
    background: var(--calendar-surface) !important;
    border-color: var(--calendar-border) !important;
}

body.dark-mode .teacher-calendar-page .calendar-heading,
body.dark-mode .teacher-calendar-page .fc-toolbar-title {
    color: var(--calendar-text) !important;
}

body.dark-mode .teacher-calendar-page .calendar-helper {
    color: var(--calendar-muted) !important;
}

/* Leyenda */
body.dark-mode .teacher-calendar-page .legend-item {
    background: var(--calendar-surface-2, #202c40) !important;
    color: var(--calendar-text) !important;
    border-color: var(--calendar-border) !important;
}

/* FullCalendar */
body.dark-mode .teacher-calendar-page .fc,
body.dark-mode .teacher-calendar-page .fc-scrollgrid,
body.dark-mode .teacher-calendar-page .fc-theme-standard td,
body.dark-mode .teacher-calendar-page .fc-theme-standard th {
    background: var(--calendar-surface) !important;
    color: var(--calendar-text) !important;
    border-color: var(--calendar-border) !important;
}

body.dark-mode .teacher-calendar-page .fc-col-header-cell {
    background: var(--calendar-background) !important;
}

body.dark-mode .teacher-calendar-page .fc-col-header-cell-cushion {
    color: #cbd5e1 !important;
}

body.dark-mode .teacher-calendar-page .fc-daygrid-day {
    background: var(--calendar-surface) !important;
}

body.dark-mode .teacher-calendar-page .fc-daygrid-day:hover {
    background: #202c40 !important;
}

body.dark-mode .teacher-calendar-page .fc-day-other {
    background: #141f31 !important;
}

body.dark-mode .teacher-calendar-page .fc-daygrid-day-number {
    color: #dbe4f0 !important;
}

body.dark-mode .teacher-calendar-page .fc-day-other .fc-daygrid-day-number {
    color: #74839a !important;
}

body.dark-mode .teacher-calendar-page .fc-day-today {
    background: rgba(77, 143, 227, .15) !important;
}

/* Botones del calendario */
body.dark-mode .teacher-calendar-page .fc-button {
    background: var(--doc-surface-2) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
}

body.dark-mode .teacher-calendar-page .fc-button:hover,
body.dark-mode .teacher-calendar-page .fc-button:focus {
    background: var(--doc-surface-3) !important;
    color: #ffffff !important;
    border-color: #4d8fe3 !important;
}

body.dark-mode .teacher-calendar-page .fc-button-active,
body.dark-mode .teacher-calendar-page .fc-button:active {
    background: #2458a6 !important;
    color: #ffffff !important;
    border-color: #2458a6 !important;
}

/* Ventanas y popovers */
body.dark-mode .teacher-calendar-page .fc-popover {
    background: var(--doc-surface) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
}

body.dark-mode .teacher-calendar-page .fc-popover-header {
    background: var(--doc-surface-2) !important;
    color: var(--doc-text) !important;
}
/* ==========================================================
   DARK MODE - MENSAJES DOCENTE
   ========================================================== */

body.dark-mode .messages-page.messages-theme-docente {
    --msg-text: #f1f5f9;
    --msg-muted: #aebacd;
    --msg-border: #344258;
    --msg-surface: #182235;
    --msg-soft: #111c2e;
    --msg-unread: #203653;
    --msg-item-hover: #25344a;
    --msg-item-border: #3d516d;
    --msg-focus: rgba(77, 143, 227, .15);
    --msg-focus-border: rgba(77, 143, 227, .65);
}

/* Pestañas */
body.dark-mode .messages-theme-docente .messages-module-tabs {
    background: var(--doc-surface) !important;
    border-color: var(--doc-border) !important;
}

body.dark-mode .messages-theme-docente .messages-module-tab {
    color: var(--doc-muted) !important;
}

body.dark-mode .messages-theme-docente .messages-module-tab:hover {
    background: var(--doc-surface-3) !important;
    color: var(--doc-text) !important;
}

body.dark-mode .messages-theme-docente .messages-module-tab.active {
    background: #2458a6 !important;
    color: #ffffff !important;
}

/* Panel */
body.dark-mode .messages-theme-docente .messages-panel {
    background: var(--doc-surface) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .32) !important;
}

body.dark-mode .messages-theme-docente .messages-toolbar {
    background: var(--doc-surface) !important;
    border-color: var(--doc-border) !important;
}

/* Buscador */
body.dark-mode .messages-theme-docente .message-search input {
    background: var(--doc-input) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
}

body.dark-mode .messages-theme-docente .message-search input:focus {
    background: var(--doc-input) !important;
    border-color: #4d8fe3 !important;
}

body.dark-mode .messages-theme-docente .message-search input::placeholder {
    color: #93a4b9 !important;
}

/* Listados */
body.dark-mode .messages-theme-docente .conversation-list,
body.dark-mode .messages-theme-docente .conversation-list.is-grouped {
    background: var(--doc-surface) !important;
}

body.dark-mode .messages-theme-docente .conversation-group {
    background: var(--doc-surface-2) !important;
    border-color: var(--doc-border) !important;
}

body.dark-mode .messages-theme-docente .conversation-group-header {
    background: var(--doc-surface-2) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
}

body.dark-mode .messages-theme-docente .conversation-group-header:hover {
    background: var(--doc-surface-3) !important;
}

body.dark-mode .messages-theme-docente .conversation-group-title,
body.dark-mode .messages-theme-docente .conversation-name,
body.dark-mode .messages-theme-docente .conversation-subject {
    color: var(--doc-text) !important;
}

body.dark-mode .messages-theme-docente .conversation-group-subtitle,
body.dark-mode .messages-theme-docente .conversation-preview,
body.dark-mode .messages-theme-docente .conversation-date,
body.dark-mode .messages-theme-docente .messages-filter-label {
    color: var(--doc-muted) !important;
}

body.dark-mode .messages-theme-docente .conversation-group-count {
    background: var(--doc-input) !important;
    color: #cbd5e1 !important;
}

/* Conversación */
body.dark-mode .messages-theme-docente .conversation-item {
    color: var(--doc-text) !important;
}

body.dark-mode .messages-theme-docente .conversation-item:hover {
    background: var(--doc-surface-3) !important;
    border-color: #465a73 !important;
}

body.dark-mode .messages-theme-docente .conversation-item.is-unread {
    background: linear-gradient(
        90deg,
        #203653,
        var(--doc-surface) 75%
    ) !important;
    border-color: #3d516d !important;
}

body.dark-mode .messages-theme-docente .conversation-item.is-unread .conversation-preview {
    color: #cbd5e1 !important;
}

/* Filtro de grupos */
body.dark-mode .messages-theme-docente .message-section-filter {
    background: var(--doc-input) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
}

/* Estado vacío */
body.dark-mode .messages-theme-docente .messages-empty,
body.dark-mode .messages-theme-docente .empty-state,
body.dark-mode .messages-theme-docente .messages-empty-state {
    background: var(--doc-surface) !important;
    color: var(--doc-muted) !important;
}

body.dark-mode .messages-theme-docente .messages-empty h3,
body.dark-mode .messages-theme-docente .empty-state h3,
body.dark-mode .messages-theme-docente .messages-empty-state h3 {
    color: var(--doc-text) !important;
}

/* ==========================================================
   DARK MODE - NOTIFICACIONES DOCENTE
   ========================================================== */

body.dark-mode .notificaciones-page {
    color: var(--doc-text) !important;
}

/* Se conserva el hero azul oscuro */
body.dark-mode .notificaciones-page .noti-hero,
body.dark-mode .notificaciones-page .noti-hero-docente {
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .32) !important;
}

body.dark-mode .notificaciones-page .noti-hero h2,
body.dark-mode .notificaciones-page .noti-hero p {
    color: #ffffff !important;
}

/* Barra de filtros */
body.dark-mode .notificaciones-page .noti-toolbar {
    background: var(--doc-surface) !important;
    border-color: var(--doc-border) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28) !important;
}

body.dark-mode .notificaciones-page .noti-filter-btn {
    background: var(--doc-input) !important;
    color: #cbd5e1 !important;
    border-color: var(--doc-border) !important;
}

body.dark-mode .notificaciones-page .noti-filter-btn:hover {
    background: var(--doc-surface-3) !important;
    color: #ffffff !important;
    border-color: #4d8fe3 !important;
}

body.dark-mode .notificaciones-page .noti-filter-btn.active {
    background: #2458a6 !important;
    color: #ffffff !important;
    border-color: #2458a6 !important;
}

/* Buscador */
body.dark-mode .notificaciones-page .noti-search {
    background: var(--doc-input) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
}

body.dark-mode .notificaciones-page .noti-search::placeholder {
    color: #93a4b9 !important;
}

/* Línea de tiempo */
body.dark-mode .notificaciones-page .timeline-title {
    color: var(--doc-text) !important;
}

body.dark-mode .notificaciones-page .timeline-group::before {
    background: var(--doc-border) !important;
}

body.dark-mode .notificaciones-page .timeline-title::before {
    border-color: #203653 !important;
    box-shadow: 0 0 0 3px var(--doc-bg) !important;
}

/* Tarjetas */
body.dark-mode .notificaciones-page .noti-card {
    background: var(--doc-surface) !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .27) !important;
}

body.dark-mode .notificaciones-page .noti-card:hover {
    background: var(--doc-surface-2) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .36) !important;
}

body.dark-mode .notificaciones-page .noti-card.noti-unread {
    background: linear-gradient(
        180deg,
        #203653,
        var(--doc-surface)
    ) !important;
}

body.dark-mode .notificaciones-page .noti-title {
    color: #f8fafc !important;
}

body.dark-mode .notificaciones-page .noti-msg {
    color: #c2cddd !important;
}

body.dark-mode .notificaciones-page .noti-meta {
    color: #93a4b9 !important;
}

body.dark-mode .notificaciones-page .noti-count-badge {
    background: #2458a6 !important;
    color: #ffffff !important;
}

/* Iconos y badges */
body.dark-mode .notificaciones-page .noti-icon,
body.dark-mode .notificaciones-page .noti-type-badge {
    border: 1px solid rgba(255, 255, 255, .07);
}

/* Estado vacío */
body.dark-mode .notificaciones-page .noti-empty {
    background: var(--doc-surface) !important;
    color: var(--doc-muted) !important;
    border-color: #465a73 !important;
}

body.dark-mode .notificaciones-page .noti-empty h3,
body.dark-mode .notificaciones-page .noti-empty h4 {
    color: var(--doc-text) !important;
}

/* ==========================================================
   DARK MODE - PRINCIPAL DOCENTE
   ========================================================== */

body.dark-mode .teacher-dashboard {
    color: var(--doc-text) !important;
}

/* Encabezado */
body.dark-mode .teacher-dashboard .welcome-card {
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .32) !important;
}

body.dark-mode .teacher-dashboard .welcome-card h1,
body.dark-mode .teacher-dashboard .welcome-card p {
    color: #ffffff !important;
}

body.dark-mode .teacher-dashboard .welcome-card .badge.bg-light {
    background: rgba(255, 255, 255, .94) !important;
    color: #0d1e3c !important;
}

/* Tarjetas de resumen y paneles */
body.dark-mode .teacher-dashboard .summary-card,
body.dark-mode .teacher-dashboard .dashboard-card {
    background: var(--doc-surface) !important;
    color: var(--doc-text) !important;
    border: 1px solid var(--doc-border) !important;
    box-shadow: 0 10px 26px var(--doc-shadow) !important;
}

body.dark-mode .teacher-dashboard .summary-card:hover {
    background: var(--doc-surface-2) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .38) !important;
}

/* Números principales */
body.dark-mode .teacher-dashboard .summary-card h3 {
    color: #ffffff !important;
}

/* Títulos de tarjetas */
body.dark-mode .teacher-dashboard .summary-card h5,
body.dark-mode .teacher-dashboard .dashboard-card h5 {
    color: #f1f5f9 !important;
}

/* Etiquetas principales */
body.dark-mode .teacher-dashboard .summary-card p,
body.dark-mode .teacher-dashboard .dashboard-card p {
    color: #d5deeb !important;
}

/* Textos secundarios */
body.dark-mode .teacher-dashboard .text-muted,
body.dark-mode .teacher-dashboard small.text-muted {
    color: var(--doc-muted) !important;
}

/* Cuerpo de tarjetas */
body.dark-mode .teacher-dashboard .card-body {
    background: transparent !important;
    color: var(--doc-text) !important;
}

/* Listas internas */
body.dark-mode .teacher-dashboard .list-group,
body.dark-mode .teacher-dashboard .list-group-flush {
    background: transparent !important;
}

body.dark-mode .teacher-dashboard .list-group-item {
    background: transparent !important;
    color: var(--doc-text) !important;
    border-color: var(--doc-border) !important;
}

/* Nombres de alumnos, tareas y evaluaciones */
body.dark-mode .teacher-dashboard .list-group-item strong {
    color: #f8fafc !important;
}

body.dark-mode .teacher-dashboard .list-group-item small {
    color: #c5d0df !important;
}

body.dark-mode .teacher-dashboard .list-group-item small.text-muted {
    color: #93a4b9 !important;
}

/* Líneas divisorias */
body.dark-mode .teacher-dashboard hr {
    border-color: #53627a !important;
    opacity: 1 !important;
}

/* Estados vacíos */
body.dark-mode .teacher-dashboard p.text-muted {
    color: #b8c4d4 !important;
}

/* Mejor contraste para iconos Bootstrap */
body.dark-mode .teacher-dashboard .text-primary {
    color: #60a5fa !important;
}

body.dark-mode .teacher-dashboard .text-success {
    color: #4ade80 !important;
}

body.dark-mode .teacher-dashboard .text-warning {
    color: #fbbf24 !important;
}

body.dark-mode .teacher-dashboard .text-danger {
    color: #fb7185 !important;
}

/* ==========================================================
   DARK MODE - AJUSTES CURSOS / GRADOS DOCENTE
   ========================================================== */

body.dark-mode .mis-cursos-wrapper .grado-stats .text-dark {
    color: #f8fafc !important;
}

body.dark-mode .mis-cursos-wrapper .grado-stats .text-primary {
    color: #60a5fa !important;
}

body.dark-mode .mis-cursos-wrapper .grado-stats .text-muted,
body.dark-mode .mis-cursos-wrapper .resumen-card .text-muted {
    color: #aebacd !important;
}

body.dark-mode .mis-cursos-wrapper .grado-stats small {
    color: #aebacd !important;
}

body.dark-mode .mis-cursos-wrapper .empty-box h5 {
    color: #f1f5f9 !important;
}

body.dark-mode .mis-cursos-wrapper .empty-box p {
    color: #aebacd !important;
}

/* ==========================================================
   DARK MODE - DETALLE DEL CURSO DOCENTE
   ========================================================== */

body.dark-mode .course-dashboard {
    --course-primary: #60a5fa;
    --course-primary-dark: #93c5fd;
    --course-text: #f1f5f9;
    --course-muted: #aebacd;
    --course-border: #344258;
    --course-surface: #182235;
    --course-background: #0f172a;

    color: var(--course-text) !important;
}

/* Botón volver */
body.dark-mode .course-dashboard .course-back-button {
    background: #182235 !important;
    color: #d7e1ee !important;
    border-color: #344258 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22) !important;
}

body.dark-mode .course-dashboard .course-back-button:hover {
    background: #202c40 !important;
    color: #7dd3fc !important;
    border-color: #4d6c91 !important;
}

/* Hero */
body.dark-mode .course-dashboard .course-hero {
    color: #ffffff !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, .36) !important;
}

body.dark-mode .course-dashboard .course-title,
body.dark-mode .course-dashboard .course-subtitle,
body.dark-mode .course-dashboard .course-meta-item,
body.dark-mode .course-dashboard .course-badge {
    color: #ffffff !important;
}

/* Títulos de secciones */
body.dark-mode .course-dashboard .section-title {
    color: #f8fafc !important;
}

body.dark-mode .course-dashboard .section-description {
    color: #aebacd !important;
}

/* Tarjetas estadísticas */
body.dark-mode .course-dashboard .stat-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28) !important;
}

body.dark-mode .course-dashboard .stat-card:hover {
    background: #202c40 !important;
    border-color: color-mix(
        in srgb,
        var(--accent) 45%,
        #344258
    ) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .38) !important;
}

body.dark-mode .course-dashboard .stat-number,
body.dark-mode .course-dashboard .stat-label {
    color: #f8fafc !important;
}

body.dark-mode .course-dashboard .stat-link {
    color: #aebacd !important;
}

/* Iconos de estadísticas */
body.dark-mode .course-dashboard .stat-icon,
body.dark-mode .course-dashboard .action-icon {
    background: color-mix(
        in srgb,
        var(--accent) 19%,
        #182235
    ) !important;
    color: var(--accent) !important;
    border: 1px solid color-mix(
        in srgb,
        var(--accent) 25%,
        #344258
    );
}

/* Paneles Crear contenido y Gestión académica */
body.dark-mode .course-dashboard .dashboard-panel {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .30) !important;
}

/* Tarjetas de acciones */
body.dark-mode .course-dashboard .action-card {
    background: #111c2e !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
}

body.dark-mode .course-dashboard .action-card:hover {
    background: #202c40 !important;
    border-color: color-mix(
        in srgb,
        var(--accent) 45%,
        #344258
    ) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .32) !important;
}

body.dark-mode .course-dashboard .action-title {
    color: #f8fafc !important;
}

body.dark-mode .course-dashboard .action-description {
    color: #aebacd !important;
}

body.dark-mode .course-dashboard .action-arrow {
    color: var(--accent) !important;
}

/* Asegurar que botones no tomen estilos blancos de Bootstrap */
body.dark-mode .course-dashboard button {
    color: inherit;
}

/* Foco accesible */
body.dark-mode .course-dashboard .stat-card:focus-visible,
body.dark-mode .course-dashboard .action-card:focus-visible,
body.dark-mode .course-dashboard .course-back-button:focus-visible {
    outline-color: rgba(96, 165, 250, .65) !important;
}

/* ==========================================================
   DARK MODE - CURSOS POR GRADO DOCENTE
   Corrección del bloque blanco interior
   ========================================================== */

/* Panel interior con alumnos y año */
body.dark-mode .mis-cursos-wrapper .curso-card .bg-light {
    background: #111c2e !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
}

/* Número de alumnos */
body.dark-mode .mis-cursos-wrapper .curso-card .bg-light .text-primary {
    color: #60a5fa !important;
}

/* Año: Bootstrap text-dark */
body.dark-mode .mis-cursos-wrapper .curso-card .bg-light .text-dark {
    color: #f8fafc !important;
}

/* Etiquetas Alumnos y Año */
body.dark-mode .mis-cursos-wrapper .curso-card .bg-light .text-muted {
    color: #aebacd !important;
}

/* Nombre del curso */
body.dark-mode .mis-cursos-wrapper .curso-card .curso-title {
    color: #ffffff !important;
}

/* Texto Curso asignado */
body.dark-mode .mis-cursos-wrapper .curso-card > div small.text-muted,
body.dark-mode .mis-cursos-wrapper .curso-card .curso-info {
    color: #b8c4d4 !important;
}

/* Icono superior del libro */
body.dark-mode .mis-cursos-wrapper .curso-card .text-end > div {
    background: #203653 !important;
    border: 1px solid #344258 !important;
}

/* Tarjeta completa */
body.dark-mode .mis-cursos-wrapper .curso-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
}

/* Botón */
body.dark-mode .mis-cursos-wrapper .curso-card .btn-docente-primary {
    background: #2d65b6 !important;
    color: #ffffff !important;
}

body.dark-mode .mis-cursos-wrapper .curso-card .btn-docente-primary:hover {
    background: #3b7bd1 !important;
}

/* ==========================================================
   DARK MODE - VER ALUMNOS DOCENTE
   ========================================================== */

body.dark-mode .alumnos-wrapper {
    color: var(--doc-text, #f1f5f9) !important;
}

/* Botón volver */
body.dark-mode .alumnos-wrapper .btn-outline-secondary {
    background: #182235 !important;
    color: #dbe7f5 !important;
    border-color: #40526a !important;
}

body.dark-mode .alumnos-wrapper .btn-outline-secondary:hover {
    background: #25344a !important;
    color: #ffffff !important;
    border-color: #5c7697 !important;
}

/* Hero principal */
body.dark-mode .alumnos-wrapper .alumnos-hero {
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
}

body.dark-mode .alumnos-wrapper .alumnos-hero h2,
body.dark-mode .alumnos-wrapper .alumnos-hero p {
    color: #ffffff !important;
}

/* Badge Gestión docente */
body.dark-mode .alumnos-wrapper .alumnos-hero .badge.bg-light {
    background: rgba(255, 255, 255, .94) !important;
    color: #0d1e3c !important;
}

/* Contador superior */
body.dark-mode .alumnos-wrapper .hero-count {
    background: #182235 !important;
    color: #f8fafc !important;
    border: 1px solid #40526a !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .30) !important;
}

body.dark-mode .alumnos-wrapper .hero-count h3 {
    color: #ffffff !important;
}

body.dark-mode .alumnos-wrapper .hero-count small {
    color: #aebacd !important;
}

/* Contenedor de la lista */
body.dark-mode .alumnos-wrapper .lista-alumnos {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .30) !important;
}

/* Cabecera de la lista */
body.dark-mode .alumnos-wrapper .lista-header {
    background: #202c40 !important;
    color: #f1f5f9 !important;
    border-bottom-color: #405069 !important;
}

/* Filas */
body.dark-mode .alumnos-wrapper .alumno-row {
    background: transparent !important;
    color: #f1f5f9 !important;
    border-bottom-color: #344258 !important;
}

body.dark-mode .alumnos-wrapper .alumno-row:hover {
    background: #202c40 !important;
}

/* Avatar */
body.dark-mode .alumnos-wrapper .alumno-avatar {
    background: #203653 !important;
    color: #7dd3fc !important;
    border: 1px solid #344258 !important;
}

/* Nombre y DNI */
body.dark-mode .alumnos-wrapper .alumno-title {
    color: #f8fafc !important;
}

body.dark-mode .alumnos-wrapper .alumno-dni {
    color: #aebacd !important;
}

/* Correo y teléfono */
body.dark-mode .alumnos-wrapper .info-pill {
    background: #111c2e !important;
    color: #d5deeb !important;
    border-color: #344258 !important;
}

/* Estado activo */
body.dark-mode .alumnos-wrapper .badge-activo {
    background: #173d32 !important;
    color: #6ee7b7 !important;
    border: 1px solid #256b56 !important;
}

/* Estado inactivo */
body.dark-mode .alumnos-wrapper .badge-inactivo {
    background: #48232c !important;
    color: #fda4af !important;
    border: 1px solid #7f3443 !important;
}

/* Estado vacío */
body.dark-mode .alumnos-wrapper .empty-box {
    background: #182235 !important;
    color: #aebacd !important;
    border-color: #465a73 !important;
}

body.dark-mode .alumnos-wrapper .empty-box h5 {
    color: #f1f5f9 !important;
}

body.dark-mode .alumnos-wrapper .empty-box p {
    color: #aebacd !important;
}

@media (max-width: 768px) {
    body.dark-mode .alumnos-wrapper .alumno-contacto {
        border-top: 1px solid #344258;
        padding-top: 12px;
    }

    body.dark-mode .alumnos-wrapper .info-pill {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* ==========================================================
   DARK MODE - DETALLE DE NOTAS DEL ALUMNO
   ========================================================== */

body.dark-mode .detalle-wrap {
    color: var(--doc-text, #f1f5f9) !important;
}

/* Botones superiores */
body.dark-mode .detalle-wrap .btn-outline-secondary {
    background: #182235 !important;
    color: #dbe7f5 !important;
    border-color: #40526a !important;
}

body.dark-mode .detalle-wrap .btn-outline-secondary:hover {
    background: #25344a !important;
    color: #ffffff !important;
    border-color: #5c7697 !important;
}

/* Hero */
body.dark-mode .detalle-wrap .detalle-hero {
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
}

body.dark-mode .detalle-wrap .detalle-hero h1,
body.dark-mode .detalle-wrap .detalle-hero h2,
body.dark-mode .detalle-wrap .detalle-hero h3,
body.dark-mode .detalle-wrap .detalle-hero p {
    color: #ffffff !important;
}

/* Tarjetas de promedios */
body.dark-mode .detalle-wrap .stat-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28) !important;
}

body.dark-mode .detalle-wrap .stat-card small {
    color: #aebacd !important;
}

body.dark-mode .detalle-wrap .stat-card h3 {
    color: #ffffff !important;
}

/* Tarjetas de detalle */
body.dark-mode .detalle-wrap .detalle-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .30) !important;
}

body.dark-mode .detalle-wrap .detalle-header {
    background: #202c40 !important;
    color: #f1f5f9 !important;
    border-bottom-color: #405069 !important;
}

/* Tablas */
body.dark-mode .detalle-wrap table,
body.dark-mode .detalle-wrap .table {
    color: #f1f5f9 !important;
    border-color: #405069 !important;
}

body.dark-mode .detalle-wrap thead th,
body.dark-mode .detalle-wrap .detalle-card thead th {
    background: #111c2e !important;
    color: #ffffff !important;
    border-color: #405069 !important;
}

body.dark-mode .detalle-wrap tbody td {
    background: #182235 !important;
    color: #e8eef6 !important;
    border-color: #344258 !important;
}

body.dark-mode .detalle-wrap tbody tr:hover td {
    background: #202c40 !important;
}

/* Promedios y textos principales */
body.dark-mode .detalle-wrap .prom-bold,
body.dark-mode .detalle-wrap .detalle-item-principal,
body.dark-mode .detalle-wrap .detalle-item-link {
    color: #f8fafc !important;
}

body.dark-mode .detalle-wrap .detalle-item-link:hover {
    color: #7dd3fc !important;
}

body.dark-mode .detalle-wrap .detalle-item-secundario {
    color: #aebacd !important;
}

/* Badges */
body.dark-mode .detalle-wrap .badge-tipo {
    background: #173a52 !important;
    color: #7dd3fc !important;
    border: 1px solid #285b7d !important;
}

body.dark-mode .detalle-wrap .badge-abrev {
    background: #2458a6 !important;
    color: #ffffff !important;
}

/* Estado sin registros */
body.dark-mode .detalle-wrap .empty-mini {
    background: #111c2e !important;
    color: #aebacd !important;
    border: 1px solid #344258 !important;
}

/* Acordeones */
body.dark-mode .detalle-wrap .detalle-accordion {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28) !important;
}

body.dark-mode .detalle-wrap .detalle-accordion.is-open {
    border-color: #4d6c91 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .36) !important;
}

body.dark-mode .detalle-wrap .detalle-accordion-header {
    background: linear-gradient(
        135deg,
        #202c40,
        #25364e
    ) !important;
    color: #f1f5f9 !important;
}

body.dark-mode .detalle-wrap .detalle-accordion-header:hover {
    background: linear-gradient(
        135deg,
        #25364e,
        #2d4260
    ) !important;
}

body.dark-mode .detalle-wrap .detalle-accordion-title {
    color: #ffffff !important;
}

body.dark-mode .detalle-wrap .detalle-accordion-count {
    background: #203653 !important;
    color: #7dd3fc !important;
}

body.dark-mode .detalle-wrap .detalle-accordion-arrow {
    background: #2458a6 !important;
    color: #ffffff !important;
}

body.dark-mode .detalle-wrap .detalle-accordion-body {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-top-color: #344258 !important;
}

/* ==========================================================
   DARK MODE - ENTREGAS DE TAREAS DOCENTE
   ========================================================== */

body.dark-mode .entregas-wrapper {
    color: var(--doc-text, #f1f5f9) !important;
}

/* Botón volver */
body.dark-mode .entregas-wrapper .btn-outline-secondary {
    background: #182235 !important;
    color: #dbe7f5 !important;
    border-color: #40526a !important;
}

body.dark-mode .entregas-wrapper .btn-outline-secondary:hover {
    background: #25344a !important;
    color: #ffffff !important;
    border-color: #5c7697 !important;
}

/* Hero */
body.dark-mode .entregas-wrapper .entregas-hero {
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
}

body.dark-mode .entregas-wrapper .entregas-hero h2,
body.dark-mode .entregas-wrapper .entregas-hero p {
    color: #ffffff !important;
}

body.dark-mode .entregas-wrapper .entregas-hero .badge.bg-light {
    background: rgba(255, 255, 255, .94) !important;
    color: #0d1e3c !important;
}

/* Contador del hero */
body.dark-mode .entregas-wrapper .hero-stat {
    background: #182235 !important;
    color: #f8fafc !important;
    border: 1px solid #40526a !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .30) !important;
}

body.dark-mode .entregas-wrapper .hero-stat h3 {
    color: #ffffff !important;
}

body.dark-mode .entregas-wrapper .hero-stat small {
    color: #aebacd !important;
}

/* Listado */
body.dark-mode .entregas-wrapper .entregas-list {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .30) !important;
}

body.dark-mode .entregas-wrapper .entregas-list-header {
    background: #202c40 !important;
    color: #f1f5f9 !important;
    border-bottom-color: #405069 !important;
}

/* Filas base */
body.dark-mode .entregas-wrapper .entrega-row {
    color: #f1f5f9 !important;
    border-bottom-color: #344258 !important;
}

/* Estados de entrega */
body.dark-mode .entregas-wrapper .entrega-calificada {
    background: #172f2a !important;
    border-left-color: #22c55e !important;
}

body.dark-mode .entregas-wrapper .entrega-entregada {
    background: #172b45 !important;
    border-left-color: #3b82f6 !important;
}

body.dark-mode .entregas-wrapper .entrega-sin {
    background: #382128 !important;
    border-left-color: #ef4444 !important;
}

body.dark-mode .entregas-wrapper .entrega-row:hover {
    filter: brightness(1.08) !important;
}

/* Entrega destacada */
body.dark-mode .entregas-wrapper .entrega-row.entrega-enfocada {
    border-color: #a78bfa !important;
    border-left-color: #8b5cf6 !important;
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, .18),
        0 12px 30px rgba(0, 0, 0, .38) !important;
}

/* Títulos */
body.dark-mode .entregas-wrapper .entrega-title {
    color: #f8fafc !important;
}

body.dark-mode .entregas-wrapper .entrega-sub {
    color: #aebacd !important;
}

/* Información */
body.dark-mode .entregas-wrapper .info-pill {
    background: rgba(17, 28, 46, .92) !important;
    color: #d5deeb !important;
    border-color: #405069 !important;
}

body.dark-mode .entregas-wrapper .comentario-box {
    background: #111c2e !important;
    color: #c5d0df !important;
    border-color: #344258 !important;
}

/* Nota */
body.dark-mode .entregas-wrapper .nota-box {
    background: #111c2e !important;
    color: #f8fafc !important;
    border-color: #405069 !important;
}

body.dark-mode .entregas-wrapper .nota-box .valor {
    color: #ffffff !important;
}

body.dark-mode .entregas-wrapper .nota-box.pendiente {
    background: #573b13 !important;
    color: #fde68a !important;
    border-color: #8a5c1b !important;
}

/* Badges */
body.dark-mode .entregas-wrapper .badge-recibida {
    background: #193a57 !important;
    color: #7dd3fc !important;
}

body.dark-mode .entregas-wrapper .badge-calificada {
    background: #173d32 !important;
    color: #6ee7b7 !important;
}

body.dark-mode .entregas-wrapper .badge-pendiente {
    background: #4a3418 !important;
    color: #fcd34d !important;
}

body.dark-mode .entregas-wrapper .badge-sin {
    background: #48232c !important;
    color: #fda4af !important;
}

/* Botones */
body.dark-mode .entregas-wrapper .btn-docente-primary {
    background: #2458a6 !important;
    color: #ffffff !important;
}

body.dark-mode .entregas-wrapper .btn-docente-primary:hover {
    background: #3475c9 !important;
}

/* Estado vacío */
body.dark-mode .entregas-wrapper .empty-box {
    background: #182235 !important;
    color: #aebacd !important;
    border-color: #465a73 !important;
}

body.dark-mode .entregas-wrapper .empty-box h5 {
    color: #f1f5f9 !important;
}

/* ==========================================================
   DARK MODE - ENTREGAS DE PRÁCTICAS DOCENTE
   ========================================================== */

/* Badge Práctica */
body.dark-mode .entregas-wrapper .badge-practica {
    background: #173d32 !important;
    color: #6ee7b7 !important;
    border: 1px solid #256b56 !important;
}

/* Badge tipo de competencia */
body.dark-mode .entregas-wrapper .badge-tipo {
    background: #173a52 !important;
    color: #7dd3fc !important;
    border: 1px solid #285b7d !important;
}

/* Miniatura del archivo */
body.dark-mode .entregas-wrapper .mini-entrega {
    background: #111c2e !important;
    border-color: #405069 !important;
}

/* En caso de que la imagen sea transparente */
body.dark-mode .entregas-wrapper .mini-entrega:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .30) !important;
}

/* ==========================================================
   COMPLEMENTO GENERAL - VISTAS DOCENTE
   ========================================================== */

body.dark-mode .detalle-wrap input,
body.dark-mode .detalle-wrap select,
body.dark-mode .detalle-wrap textarea,
body.dark-mode .entregas-wrapper input,
body.dark-mode .entregas-wrapper select,
body.dark-mode .entregas-wrapper textarea {
    background: #111c2e !important;
    color: #f1f5f9 !important;
    border-color: #405069 !important;
}

body.dark-mode .detalle-wrap input::placeholder,
body.dark-mode .detalle-wrap textarea::placeholder,
body.dark-mode .entregas-wrapper input::placeholder,
body.dark-mode .entregas-wrapper textarea::placeholder {
    color: #93a4b9 !important;
}

body.dark-mode .detalle-wrap .btn-light,
body.dark-mode .entregas-wrapper .btn-light {
    background: #202c40 !important;
    color: #f1f5f9 !important;
    border-color: #405069 !important;
}

body.dark-mode .detalle-wrap .btn-light:hover,
body.dark-mode .entregas-wrapper .btn-light:hover {
    background: #29384e !important;
}

/* ==========================================================
   DARK MODE - VER EVALUACIONES DOCENTE
   ========================================================== */

body.dark-mode .evaluaciones-wrapper {
    color: var(--doc-text, #f1f5f9) !important;
}

/* Botón volver */
body.dark-mode .evaluaciones-wrapper .btn-outline-secondary {
    background: #182235 !important;
    color: #dbe7f5 !important;
    border-color: #40526a !important;
}

body.dark-mode .evaluaciones-wrapper .btn-outline-secondary:hover {
    background: #25344a !important;
    color: #ffffff !important;
    border-color: #5c7697 !important;
}

/* Hero */
body.dark-mode .evaluaciones-wrapper .evaluaciones-hero {
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
}

body.dark-mode .evaluaciones-wrapper .evaluaciones-hero h2,
body.dark-mode .evaluaciones-wrapper .evaluaciones-hero p {
    color: #ffffff !important;
}

/* Badge Gestión docente */
body.dark-mode .evaluaciones-wrapper .evaluaciones-hero .badge.bg-light {
    background: rgba(255, 255, 255, .94) !important;
    color: #0d1e3c !important;
}

/* Botón Nueva evaluación */
body.dark-mode .evaluaciones-wrapper .evaluaciones-hero .btn-light {
    background: #f8fafc !important;
    color: #0d1e3c !important;
    border-color: rgba(255, 255, 255, .7) !important;
}

body.dark-mode .evaluaciones-wrapper .evaluaciones-hero .btn-light:hover {
    background: #dbeafe !important;
    color: #0d1e3c !important;
}

/* Tarjetas */
body.dark-mode .evaluaciones-wrapper .evaluacion-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28) !important;
}

body.dark-mode .evaluaciones-wrapper .evaluacion-card:hover {
    background: #202c40 !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .36) !important;
}

/* Evaluación enfocada */
body.dark-mode .evaluaciones-wrapper .evaluacion-card.evaluacion-enfocada {
    border-color: #a78bfa !important;
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, .20),
        0 12px 30px rgba(0, 0, 0, .40) !important;
}

/* Título y descripción */
body.dark-mode .evaluaciones-wrapper .evaluacion-title {
    color: #f8fafc !important;
}

body.dark-mode .evaluaciones-wrapper .evaluacion-desc {
    color: #aebacd !important;
}

/* Información */
body.dark-mode .evaluaciones-wrapper .info-pill {
    background: #111c2e !important;
    color: #d5deeb !important;
    border-color: #344258 !important;
}

/* Badges */
body.dark-mode .evaluaciones-wrapper .badge-evaluacion {
    background: #3b254f !important;
    color: #d8b4fe !important;
    border: 1px solid #674186 !important;
}

body.dark-mode .evaluaciones-wrapper .badge-activo {
    background: #173d32 !important;
    color: #6ee7b7 !important;
    border: 1px solid #256b56 !important;
}

body.dark-mode .evaluaciones-wrapper .badge-inactivo {
    background: #48232c !important;
    color: #fda4af !important;
    border: 1px solid #7f3443 !important;
}

/* Separación de acciones */
body.dark-mode .evaluaciones-wrapper .evaluacion-actions {
    border-top-color: #405069 !important;
}

/* Botones principales */
body.dark-mode .evaluaciones-wrapper .btn-docente-primary {
    background: #2458a6 !important;
    color: #ffffff !important;
}

body.dark-mode .evaluaciones-wrapper .btn-docente-primary:hover {
    background: #3475c9 !important;
}

/* Botón editar */
body.dark-mode .evaluaciones-wrapper .btn-outline-primary {
    color: #7dd3fc !important;
    border-color: #3b82b8 !important;
}

body.dark-mode .evaluaciones-wrapper .btn-outline-primary:hover {
    background: #193a57 !important;
    color: #ffffff !important;
}

/* Botón desactivar */
body.dark-mode .evaluaciones-wrapper .btn-outline-danger {
    color: #fda4af !important;
    border-color: #9f3d50 !important;
}

body.dark-mode .evaluaciones-wrapper .btn-outline-danger:hover {
    background: #48232c !important;
    color: #ffffff !important;
}

/* Botón activar */
body.dark-mode .evaluaciones-wrapper .btn-outline-success {
    color: #6ee7b7 !important;
    border-color: #28705a !important;
}

body.dark-mode .evaluaciones-wrapper .btn-outline-success:hover {
    background: #173d32 !important;
    color: #ffffff !important;
}

/* Tarjetas resumen, por si aparecen */
body.dark-mode .evaluaciones-wrapper .resumen-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28) !important;
}

body.dark-mode .evaluaciones-wrapper .resumen-card h4 {
    color: #ffffff !important;
}

body.dark-mode .evaluaciones-wrapper .resumen-card span {
    color: #aebacd !important;
}

body.dark-mode .evaluaciones-wrapper .resumen-icon {
    background: #3b254f !important;
    color: #d8b4fe !important;
}

/* Estado vacío */
body.dark-mode .evaluaciones-wrapper .empty-box {
    background: #182235 !important;
    color: #aebacd !important;
    border-color: #465a73 !important;
}

body.dark-mode .evaluaciones-wrapper .empty-box h5 {
    color: #f1f5f9 !important;
}

/* ==========================================================
   DARK MODE - VER NOTAS DOCENTE
   ========================================================== */

body.dark-mode .notas-wrapper {
    color: var(--doc-text, #f1f5f9) !important;
}

/* Botón volver */
body.dark-mode .notas-wrapper .btn-outline-secondary {
    background: #182235 !important;
    color: #dbe7f5 !important;
    border-color: #40526a !important;
}

body.dark-mode .notas-wrapper .btn-outline-secondary:hover {
    background: #25344a !important;
    color: #ffffff !important;
    border-color: #5c7697 !important;
}

/* Hero */
body.dark-mode .notas-wrapper .notas-hero {
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
}

body.dark-mode .notas-wrapper .notas-hero h2,
body.dark-mode .notas-wrapper .notas-hero p {
    color: #ffffff !important;
}

/* Badge Gestión docente */
body.dark-mode .notas-wrapper .notas-hero .badge.bg-light {
    background: rgba(255, 255, 255, .94) !important;
    color: #0d1e3c !important;
}

/* Contador hero */
body.dark-mode .notas-wrapper .hero-stat {
    background: #182235 !important;
    color: #f8fafc !important;
    border: 1px solid #40526a !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .30) !important;
}

body.dark-mode .notas-wrapper .hero-stat h3 {
    color: #ffffff !important;
}

body.dark-mode .notas-wrapper .hero-stat small {
    color: #aebacd !important;
}

/* Tarjetas estadísticas */
body.dark-mode .notas-wrapper .stat-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28) !important;
}

body.dark-mode .notas-wrapper .stat-card h4 {
    color: #ffffff !important;
}

body.dark-mode .notas-wrapper .stat-card small {
    color: #aebacd !important;
}

body.dark-mode .notas-wrapper .stat-icon {
    background: #203653 !important;
    color: #7dd3fc !important;
    border: 1px solid #344258 !important;
}

/* Tarjeta de tabla */
body.dark-mode .notas-wrapper .tabla-notas-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .30) !important;
}

body.dark-mode .notas-wrapper .tabla-notas-header {
    background: #202c40 !important;
    color: #f1f5f9 !important;
    border-bottom-color: #405069 !important;
}

/* Tabla */
body.dark-mode .notas-wrapper .tabla-notas-card table {
    color: #f1f5f9 !important;
    border-color: #405069 !important;
}

body.dark-mode .notas-wrapper .tabla-notas-card thead th {
    background: #111c2e !important;
    color: #ffffff !important;
    border-color: #405069 !important;
}

body.dark-mode .notas-wrapper .tabla-notas-card tbody td {
    background: #182235 !important;
    color: #e8eef6 !important;
    border-color: #344258 !important;
}

body.dark-mode .notas-wrapper .tabla-notas-card tbody tr:hover td {
    background: #202c40 !important;
}

/* Nombre del alumno */
body.dark-mode .notas-wrapper .tabla-notas-card tbody strong {
    color: #f8fafc !important;
}

/* Promedio */
body.dark-mode .notas-wrapper .nota-promedio {
    color: #7dd3fc !important;
}

/* Sin nota */
body.dark-mode .notas-wrapper .nota-vacia {
    color: #77889d !important;
}

body.dark-mode .notas-wrapper .nota-mini {
    color: #93a4b9 !important;
}

/* Fila enfocada */
body.dark-mode .notas-wrapper .fila-alumno.alumno-enfocado > td {
    background: #203653 !important;
    border-top-color: #60a5fa !important;
    border-bottom-color: #60a5fa !important;
}

body.dark-mode .notas-wrapper .fila-alumno.alumno-enfocado > td:first-child {
    border-left-color: #60a5fa !important;
}

body.dark-mode .notas-wrapper .fila-alumno.alumno-enfocado > td:last-child {
    border-right-color: #60a5fa !important;
}

/* Botón ver detalle */
body.dark-mode .notas-wrapper .btn-docente-primary {
    background: #2458a6 !important;
    color: #ffffff !important;
}

body.dark-mode .notas-wrapper .btn-docente-primary:hover {
    background: #3475c9 !important;
}

/* Botón exportar */
body.dark-mode .notas-wrapper .btn-success {
    background: #15803d !important;
    color: #ffffff !important;
    border-color: #15803d !important;
}

body.dark-mode .notas-wrapper .btn-success:hover {
    background: #16a34a !important;
}

/* Estado vacío */
body.dark-mode .notas-wrapper .empty-box {
    background: #182235 !important;
    color: #aebacd !important;
    border-color: #465a73 !important;
}

body.dark-mode .notas-wrapper .empty-box h5 {
    color: #f1f5f9 !important;
}

body.dark-mode .notas-wrapper .table-responsive,
body.dark-mode .detalle-wrap .table-responsive {
    background: #182235 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .notas-wrapper .table {
    --bs-table-color: #e8eef6;
    --bs-table-bg: #182235;
    --bs-table-border-color: #344258;
    --bs-table-hover-color: #ffffff;
    --bs-table-hover-bg: #202c40;
}

/* ==========================================================
   DARK MODE - VER PRÁCTICAS DOCENTE
   ========================================================== */

body.dark-mode .practicas-wrapper {
    color: var(--doc-text, #f1f5f9) !important;
}

body.dark-mode .practicas-wrapper .btn-outline-secondary {
    background: #182235 !important;
    color: #dbe7f5 !important;
    border-color: #40526a !important;
}

body.dark-mode .practicas-wrapper .btn-outline-secondary:hover {
    background: #25344a !important;
    color: #fff !important;
}

/* Hero */
body.dark-mode .practicas-wrapper .practicas-hero,
body.dark-mode .practicas-wrapper .practicas-hero h2,
body.dark-mode .practicas-wrapper .practicas-hero p {
    color: #fff !important;
}

body.dark-mode .practicas-wrapper .practicas-hero .badge.bg-light {
    background: rgba(255,255,255,.94) !important;
    color: #0d1e3c !important;
}

body.dark-mode .practicas-wrapper .practicas-hero .btn-light {
    background: #f8fafc !important;
    color: #0d1e3c !important;
}

/* Grupos */
body.dark-mode .practicas-wrapper .tipo-group {
    background: #182235 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.3) !important;
}

body.dark-mode .practicas-wrapper .tipo-group-header {
    background: linear-gradient(135deg,#202c40,#25364e) !important;
    border-bottom-color: #405069 !important;
}

body.dark-mode .practicas-wrapper .tipo-group-header:hover {
    background: linear-gradient(135deg,#25364e,#2d4260) !important;
}

body.dark-mode .practicas-wrapper .tipo-group-title {
    color: #f8fafc !important;
}

body.dark-mode .practicas-wrapper .tipo-subtitle {
    color: #aebacd !important;
}

body.dark-mode .practicas-wrapper .tipo-abrev,
body.dark-mode .practicas-wrapper .accordion-arrow {
    background: #2458a6 !important;
    color: #fff !important;
}

body.dark-mode .practicas-wrapper .tipo-count {
    background: #203653 !important;
    color: #7dd3fc !important;
}

/* Tarjetas */
body.dark-mode .practicas-wrapper .practica-card {
    background: #111c2e !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
}

body.dark-mode .practicas-wrapper .practica-card:hover {
    background: #202c40 !important;
}

body.dark-mode .practicas-wrapper .practica-card.practica-destacada {
    border-color: #60a5fa !important;
    box-shadow:
        0 0 0 4px rgba(96,165,250,.18),
        0 12px 28px rgba(0,0,0,.38) !important;
}

body.dark-mode .practicas-wrapper .practica-title {
    color: #f8fafc !important;
}

body.dark-mode .practicas-wrapper .practica-desc {
    color: #aebacd !important;
}

body.dark-mode .practicas-wrapper .practica-actions {
    border-top-color: #405069 !important;
}

body.dark-mode .practicas-wrapper .info-pill {
    background: #182235 !important;
    color: #d5deeb !important;
    border-color: #405069 !important;
}

/* Badges */
body.dark-mode .practicas-wrapper .badge-practica,
body.dark-mode .practicas-wrapper .badge-activo {
    background: #173d32 !important;
    color: #6ee7b7 !important;
}

body.dark-mode .practicas-wrapper .badge-tipo {
    background: #173a52 !important;
    color: #7dd3fc !important;
}

body.dark-mode .practicas-wrapper .badge-inactivo {
    background: #48232c !important;
    color: #fda4af !important;
}

/* Botones */
body.dark-mode .practicas-wrapper .btn-docente-primary {
    background: #2458a6 !important;
    color: #fff !important;
}

body.dark-mode .practicas-wrapper .btn-outline-primary {
    color: #7dd3fc !important;
    border-color: #3b82b8 !important;
}

body.dark-mode .practicas-wrapper .btn-outline-primary:hover {
    background: #193a57 !important;
    color: #fff !important;
}

body.dark-mode .practicas-wrapper .btn-outline-danger {
    color: #fda4af !important;
    border-color: #9f3d50 !important;
}

body.dark-mode .practicas-wrapper .btn-outline-success {
    color: #6ee7b7 !important;
    border-color: #28705a !important;
}

body.dark-mode .practicas-wrapper .empty-box {
    background: #182235 !important;
    color: #aebacd !important;
    border-color: #465a73 !important;
}

/* ==========================================================
   DARK MODE - VER TAREAS DOCENTE
   ========================================================== */

body.dark-mode .tareas-wrapper {
    color: var(--doc-text, #f1f5f9) !important;
}

body.dark-mode .tareas-wrapper .btn-outline-secondary {
    background: #182235 !important;
    color: #dbe7f5 !important;
    border-color: #40526a !important;
}

/* Hero */
body.dark-mode .tareas-wrapper .tareas-hero,
body.dark-mode .tareas-wrapper .tareas-hero h2,
body.dark-mode .tareas-wrapper .tareas-hero p {
    color: #fff !important;
}

body.dark-mode .tareas-wrapper .tareas-hero .badge.bg-light {
    background: rgba(255,255,255,.94) !important;
    color: #0d1e3c !important;
}

body.dark-mode .tareas-wrapper .tareas-hero .btn-light {
    background: #f8fafc !important;
    color: #0d1e3c !important;
}

/* Grupos */
body.dark-mode .tareas-wrapper .tipo-group {
    background: #182235 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.3) !important;
}

body.dark-mode .tareas-wrapper .tipo-group-header {
    background: linear-gradient(135deg,#202c40,#25364e) !important;
    border-bottom-color: #405069 !important;
}

body.dark-mode .tareas-wrapper .tipo-group-header:hover {
    background: linear-gradient(135deg,#25364e,#2d4260) !important;
}

body.dark-mode .tareas-wrapper .tipo-group-title {
    color: #f8fafc !important;
}

body.dark-mode .tareas-wrapper .tipo-subtitle {
    color: #aebacd !important;
}

body.dark-mode .tareas-wrapper .tipo-abrev,
body.dark-mode .tareas-wrapper .accordion-arrow {
    background: #2458a6 !important;
    color: #fff !important;
}

body.dark-mode .tareas-wrapper .tipo-count {
    background: #203653 !important;
    color: #7dd3fc !important;
}

/* Tarjetas */
body.dark-mode .tareas-wrapper .tarea-card {
    background: #111c2e !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
}

body.dark-mode .tareas-wrapper .tarea-card:hover {
    background: #202c40 !important;
}

body.dark-mode .tareas-wrapper .tarea-card.tarea-enfocada {
    border-color: #60a5fa !important;
    box-shadow:
        0 0 0 4px rgba(96,165,250,.18),
        0 12px 28px rgba(0,0,0,.38) !important;
}

body.dark-mode .tareas-wrapper .tarea-title {
    color: #f8fafc !important;
}

body.dark-mode .tareas-wrapper .tarea-desc {
    color: #aebacd !important;
}

body.dark-mode .tareas-wrapper .tarea-actions {
    border-top-color: #405069 !important;
}

body.dark-mode .tareas-wrapper .info-pill {
    background: #182235 !important;
    color: #d5deeb !important;
    border-color: #405069 !important;
}

/* Badges */
body.dark-mode .tareas-wrapper .badge-tarea {
    background: #4a3418 !important;
    color: #fcd34d !important;
}

body.dark-mode .tareas-wrapper .badge-activo {
    background: #173d32 !important;
    color: #6ee7b7 !important;
}

body.dark-mode .tareas-wrapper .badge-inactivo {
    background: #48232c !important;
    color: #fda4af !important;
}

/* Botones */
body.dark-mode .tareas-wrapper .btn-docente-primary {
    background: #2458a6 !important;
    color: #fff !important;
}

body.dark-mode .tareas-wrapper .btn-outline-primary {
    color: #7dd3fc !important;
    border-color: #3b82b8 !important;
}

body.dark-mode .tareas-wrapper .btn-outline-primary:hover {
    background: #193a57 !important;
    color: #fff !important;
}

body.dark-mode .tareas-wrapper .btn-outline-danger {
    color: #fda4af !important;
    border-color: #9f3d50 !important;
}

body.dark-mode .tareas-wrapper .btn-outline-success {
    color: #6ee7b7 !important;
    border-color: #28705a !important;
}

body.dark-mode .tareas-wrapper .empty-box {
    background: #182235 !important;
    color: #aebacd !important;
    border-color: #465a73 !important;
}

/* ==========================================================
   DARK MODE - VER MATERIALES DOCENTE
   ========================================================== */

body.dark-mode .materiales-wrapper {
    color: var(--doc-text, #f1f5f9) !important;
}

body.dark-mode .materiales-wrapper .btn-outline-secondary {
    background: #182235 !important;
    color: #dbe7f5 !important;
    border-color: #40526a !important;
}

/* Hero */
body.dark-mode .materiales-wrapper .materiales-hero,
body.dark-mode .materiales-wrapper .materiales-hero h2,
body.dark-mode .materiales-wrapper .materiales-hero p {
    color: #fff !important;
}

body.dark-mode .materiales-wrapper .materiales-hero .badge.bg-light {
    background: rgba(255,255,255,.94) !important;
    color: #0d1e3c !important;
}

body.dark-mode .materiales-wrapper .materiales-hero .btn-light {
    background: #f8fafc !important;
    color: #0d1e3c !important;
}

/* Tarjetas */
body.dark-mode .materiales-wrapper .material-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.28) !important;
}

body.dark-mode .materiales-wrapper .material-card:hover {
    background: #202c40 !important;
}

body.dark-mode .materiales-wrapper .material-card.material-enfocado {
    border-color: #60a5fa !important;
    box-shadow:
        0 0 0 4px rgba(96,165,250,.18),
        0 12px 28px rgba(0,0,0,.38) !important;
}

body.dark-mode .materiales-wrapper .material-title {
    color: #f8fafc !important;
}

body.dark-mode .materiales-wrapper .material-desc {
    color: #aebacd !important;
}

body.dark-mode .materiales-wrapper .material-actions {
    border-top-color: #405069 !important;
}

/* Información */
body.dark-mode .materiales-wrapper .info-pill {
    background: #111c2e !important;
    color: #d5deeb !important;
    border-color: #344258 !important;
}

/* Badges */
body.dark-mode .materiales-wrapper .badge-material {
    background: #193a57 !important;
    color: #7dd3fc !important;
}

body.dark-mode .materiales-wrapper .badge-activo {
    background: #173d32 !important;
    color: #6ee7b7 !important;
}

body.dark-mode .materiales-wrapper .badge-inactivo {
    background: #48232c !important;
    color: #fda4af !important;
}

/* Resumen */
body.dark-mode .materiales-wrapper .resumen-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
}

body.dark-mode .materiales-wrapper .resumen-icon {
    background: #203653 !important;
    color: #7dd3fc !important;
}

/* Botones */
body.dark-mode .materiales-wrapper .btn-docente-primary {
    background: #2458a6 !important;
    color: #fff !important;
}

body.dark-mode .materiales-wrapper .btn-outline-primary {
    color: #7dd3fc !important;
    border-color: #3b82b8 !important;
}

body.dark-mode .materiales-wrapper .btn-outline-primary:hover {
    background: #193a57 !important;
    color: #fff !important;
}

body.dark-mode .materiales-wrapper .btn-outline-danger {
    color: #fda4af !important;
    border-color: #9f3d50 !important;
}

body.dark-mode .materiales-wrapper .btn-outline-success {
    color: #6ee7b7 !important;
    border-color: #28705a !important;
}

body.dark-mode .materiales-wrapper .empty-box {
    background: #182235 !important;
    color: #aebacd !important;
    border-color: #465a73 !important;
}

body.dark-mode .materiales-wrapper .empty-box h5 {
    color: #f1f5f9 !important;
}
/* ==========================================================
   DARK MODE - FORMULARIOS DE CREACIÓN DOCENTE
   Material, tarea, práctica y evaluación
   ========================================================== */

body.dark-mode .material-wrapper,
body.dark-mode .tarea-wrapper,
body.dark-mode .practica-wrapper,
body.dark-mode .evaluacion-wrapper {
    color: var(--doc-text, #f1f5f9) !important;
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */

body.dark-mode .material-wrapper .material-hero,
body.dark-mode .tarea-wrapper .tarea-hero,
body.dark-mode .practica-wrapper .practica-hero,
body.dark-mode .evaluacion-wrapper .evaluacion-hero {
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
}

body.dark-mode .material-wrapper .material-hero h2,
body.dark-mode .material-wrapper .material-hero p,
body.dark-mode .tarea-wrapper .tarea-hero h2,
body.dark-mode .tarea-wrapper .tarea-hero p,
body.dark-mode .practica-wrapper .practica-hero h2,
body.dark-mode .practica-wrapper .practica-hero p,
body.dark-mode .evaluacion-wrapper .evaluacion-hero h2,
body.dark-mode .evaluacion-wrapper .evaluacion-hero p {
    color: #ffffff !important;
}

body.dark-mode .material-wrapper .material-hero .badge.bg-light,
body.dark-mode .tarea-wrapper .tarea-hero .badge.bg-light,
body.dark-mode .practica-wrapper .practica-hero .badge.bg-light,
body.dark-mode .evaluacion-wrapper .evaluacion-hero .badge.bg-light {
    background: rgba(255, 255, 255, .94) !important;
    color: #0d1e3c !important;
}

/* ----------------------------------------------------------
   TARJETAS PRINCIPALES
   ---------------------------------------------------------- */

body.dark-mode .material-wrapper .form-card,
body.dark-mode .tarea-wrapper .tarea-card,
body.dark-mode .practica-wrapper .practica-card,
body.dark-mode .evaluacion-wrapper .evaluacion-card {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .32) !important;
}

/* ----------------------------------------------------------
   CAJAS DE SECCIÓN
   ---------------------------------------------------------- */

body.dark-mode .material-wrapper .section-box,
body.dark-mode .tarea-wrapper .section-box,
body.dark-mode .practica-wrapper .section-box,
body.dark-mode .evaluacion-wrapper .section-box {
    background: #111c2e !important;
    color: #f1f5f9 !important;
    border-color: #344258 !important;
}

/* Títulos internos */
body.dark-mode .material-wrapper .section-box h5,
body.dark-mode .tarea-wrapper .section-box h5,
body.dark-mode .practica-wrapper .section-box h5,
body.dark-mode .evaluacion-wrapper .section-box h5 {
    color: #f8fafc !important;
}

/* ----------------------------------------------------------
   ETIQUETAS Y TEXTOS DE AYUDA
   ---------------------------------------------------------- */

body.dark-mode .material-wrapper .form-label,
body.dark-mode .tarea-wrapper .form-label,
body.dark-mode .practica-wrapper .form-label,
body.dark-mode .evaluacion-wrapper .form-label {
    color: #e8eef6 !important;
}

body.dark-mode .material-wrapper .tipo-help,
body.dark-mode .tarea-wrapper .tipo-help,
body.dark-mode .practica-wrapper .tipo-help,
body.dark-mode .evaluacion-wrapper .tipo-help {
    color: #9eacc0 !important;
}

body.dark-mode .material-wrapper .text-muted,
body.dark-mode .tarea-wrapper .text-muted,
body.dark-mode .practica-wrapper .text-muted,
body.dark-mode .evaluacion-wrapper .text-muted {
    color: #9eacc0 !important;
}

/* ----------------------------------------------------------
   INPUTS, SELECTS Y TEXTAREAS
   ---------------------------------------------------------- */

body.dark-mode .material-wrapper .form-control,
body.dark-mode .material-wrapper .form-select,
body.dark-mode .tarea-wrapper .form-control,
body.dark-mode .tarea-wrapper .form-select,
body.dark-mode .practica-wrapper .form-control,
body.dark-mode .practica-wrapper .form-select,
body.dark-mode .evaluacion-wrapper .form-control,
body.dark-mode .evaluacion-wrapper .form-select {
    background-color: #0f192a !important;
    color: #f1f5f9 !important;
    border-color: #405069 !important;
}

/* Placeholder */
body.dark-mode .material-wrapper .form-control::placeholder,
body.dark-mode .tarea-wrapper .form-control::placeholder,
body.dark-mode .practica-wrapper .form-control::placeholder,
body.dark-mode .evaluacion-wrapper .form-control::placeholder {
    color: #7f90a7 !important;
    opacity: 1;
}

/* Enfoque */
body.dark-mode .material-wrapper .form-control:focus,
body.dark-mode .material-wrapper .form-select:focus,
body.dark-mode .tarea-wrapper .form-control:focus,
body.dark-mode .tarea-wrapper .form-select:focus,
body.dark-mode .practica-wrapper .form-control:focus,
body.dark-mode .practica-wrapper .form-select:focus,
body.dark-mode .evaluacion-wrapper .form-control:focus,
body.dark-mode .evaluacion-wrapper .form-select:focus {
    background-color: #111c2e !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 .18rem rgba(96, 165, 250, .16) !important;
}

/* Opciones del select */
body.dark-mode .material-wrapper .form-select option,
body.dark-mode .tarea-wrapper .form-select option,
body.dark-mode .practica-wrapper .form-select option,
body.dark-mode .evaluacion-wrapper .form-select option {
    background: #182235 !important;
    color: #f1f5f9 !important;
}

/* Controles readonly */
body.dark-mode .material-wrapper .form-control[readonly],
body.dark-mode .tarea-wrapper .form-control[readonly],
body.dark-mode .practica-wrapper .form-control[readonly],
body.dark-mode .evaluacion-wrapper .form-control[readonly] {
    background: #202c40 !important;
    color: #c3cfdd !important;
    border-color: #405069 !important;
}

/* Controles deshabilitados */
body.dark-mode .material-wrapper .form-control:disabled,
body.dark-mode .material-wrapper .form-select:disabled,
body.dark-mode .tarea-wrapper .form-control:disabled,
body.dark-mode .tarea-wrapper .form-select:disabled,
body.dark-mode .practica-wrapper .form-control:disabled,
body.dark-mode .practica-wrapper .form-select:disabled,
body.dark-mode .evaluacion-wrapper .form-control:disabled,
body.dark-mode .evaluacion-wrapper .form-select:disabled {
    background: #202c40 !important;
    color: #8697ad !important;
    opacity: .85;
}

/* Selector de archivos */
body.dark-mode .material-wrapper input[type="file"]::file-selector-button,
body.dark-mode .tarea-wrapper input[type="file"]::file-selector-button,
body.dark-mode .practica-wrapper input[type="file"]::file-selector-button,
body.dark-mode .evaluacion-wrapper input[type="file"]::file-selector-button {
    background: #25364e !important;
    color: #f1f5f9 !important;
    border: 0 !important;
    border-right: 1px solid #405069 !important;
}

/* ----------------------------------------------------------
   BOTONES
   ---------------------------------------------------------- */

body.dark-mode .material-wrapper .btn-docente-primary,
body.dark-mode .tarea-wrapper .btn-docente-primary,
body.dark-mode .practica-wrapper .btn-docente-primary,
body.dark-mode .evaluacion-wrapper .btn-docente-primary {
    background: #2458a6 !important;
    color: #ffffff !important;
    border-color: #2458a6 !important;
}

body.dark-mode .material-wrapper .btn-docente-primary:hover,
body.dark-mode .tarea-wrapper .btn-docente-primary:hover,
body.dark-mode .practica-wrapper .btn-docente-primary:hover,
body.dark-mode .evaluacion-wrapper .btn-docente-primary:hover {
    background: #3475c9 !important;
    color: #ffffff !important;
}

/* Botón volver y cancelar */
body.dark-mode .material-wrapper .btn-outline-secondary,
body.dark-mode .tarea-wrapper .btn-outline-secondary,
body.dark-mode .practica-wrapper .btn-outline-secondary,
body.dark-mode .evaluacion-wrapper .btn-outline-secondary {
    background: #182235 !important;
    color: #dbe7f5 !important;
    border-color: #40526a !important;
}

body.dark-mode .material-wrapper .btn-outline-secondary:hover,
body.dark-mode .tarea-wrapper .btn-outline-secondary:hover,
body.dark-mode .practica-wrapper .btn-outline-secondary:hover,
body.dark-mode .evaluacion-wrapper .btn-outline-secondary:hover {
    background: #25344a !important;
    color: #ffffff !important;
    border-color: #5c7697 !important;
}

/* ==========================================================
   DARK MODE - REGISTRAR MATERIAL
   ========================================================== */

body.dark-mode .material-wrapper .dynamic-box {
    background: #101d30 !important;
    color: #f1f5f9 !important;
    border-color: #46658c !important;
}

body.dark-mode .material-wrapper .dynamic-box .form-label {
    color: #e8eef6 !important;
}

body.dark-mode .material-wrapper .dynamic-box .tipo-help {
    color: #9eacc0 !important;
}

/* Evita líneas claras en los bloques que se muestran dinámicamente */
body.dark-mode .material-wrapper #doc-pdf,
body.dark-mode .material-wrapper #doc-link,
body.dark-mode .material-wrapper #doc-video,
body.dark-mode .material-wrapper #doc-archivo {
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .04);
}

/* ==========================================================
   DARK MODE - REGISTRAR TAREA Y PRÁCTICA
   ========================================================== */

body.dark-mode .tarea-wrapper .tipo-mode-info,
body.dark-mode .practica-wrapper .tipo-mode-info {
    background: #173a52 !important;
    color: #cbeafe !important;
    border-color: #285b7d !important;
}

body.dark-mode .tarea-wrapper .tipo-mode-info strong,
body.dark-mode .practica-wrapper .tipo-mode-info strong {
    color: #ffffff !important;
}

/* Caja de número personalizado */
body.dark-mode .tarea-wrapper #numeroTareaOtroBox,
body.dark-mode .practica-wrapper #numeroPracticaOtroBox {
    background: transparent !important;
    color: #f1f5f9 !important;
}

/* ==========================================================
   DARK MODE - REGISTRAR EVALUACIÓN
   ========================================================== */

/* Fila de competencia agregada */
body.dark-mode .evaluacion-wrapper .tipo-eval-row {
    background: #182235 !important;
    color: #f1f5f9 !important;
    border-color: #405069 !important;
}

/* Nombre de la competencia */
body.dark-mode .evaluacion-wrapper .tipo-eval-row strong,
body.dark-mode .evaluacion-wrapper .tipo-eval-row span:not(.tipo-eval-badge) {
    color: #e8eef6 !important;
}

/* Badge */
body.dark-mode .evaluacion-wrapper .tipo-eval-badge {
    background: #2458a6 !important;
    color: #ffffff !important;
}

/* Estado vacío */
body.dark-mode .evaluacion-wrapper .tipo-eval-empty {
    background: #111c2e !important;
    color: #9eacc0 !important;
    border-color: #53647a !important;
}

/* Lista con scroll */
body.dark-mode .evaluacion-wrapper .tipos-agregados-lista {
    scrollbar-color: #52657e #111c2e;
}

/* Botones generados por JS dentro de cada tipo */
body.dark-mode .evaluacion-wrapper .tipo-eval-row .btn-outline-danger {
    color: #fda4af !important;
    border-color: #9f3d50 !important;
}

body.dark-mode .evaluacion-wrapper .tipo-eval-row .btn-outline-danger:hover {
    background: #48232c !important;
    color: #ffffff !important;
}

/* Caja para escribir otro número */
body.dark-mode .evaluacion-wrapper #numeroEvaluacionOtroBox {
    background: transparent !important;
    color: #f1f5f9 !important;
}

body.dark-mode .tarea-wrapper input[type="datetime-local"],
body.dark-mode .practica-wrapper input[type="datetime-local"],
body.dark-mode .evaluacion-wrapper input[type="datetime-local"] {
    color-scheme: dark;
}