/* Configuraciones Globales */
body {
    font-family: 'Nunito', sans-serif; /* Tipografía amigable y muy legible */
    color: #334155;
}

/* Tarjetas de Estadísticas */
.stat-card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08)!important;
}

/* Cajas de Iconos */
.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablas Personalizadas */
.custom-table th {
    font-weight: 600;
    color: #64748b;
    border-bottom-width: 1px;
}

.custom-table td {
    padding: 1rem 0.5rem;
}

/* Tarjeta de Acciones Rápidas */
.action-card {
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.action-card .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* =========================================
   Tablas Responsivas Avanzadas (Móviles)
   ========================================= */

@media (max-width: 767.98px) {
    /* Ocultamos los encabezados tradicionales en móviles */
    .table-mobile-cards thead {
        display: none;
    }

    /* Cada fila se convierte en una tarjeta */
    .table-mobile-cards tr {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 0.5rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    }

    /* Ajustamos las celdas */
    .table-mobile-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid #f1f5f9;
        text-align: right; /* Alineamos el contenido a la derecha */
    }

    /* Quitamos el borde a la última celda de la tarjeta */
    .table-mobile-cards td:last-child {
        border-bottom: 0;
    }

    /* Inyectamos el título de la columna usando el atributo data-label */
    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        text-transform: uppercase;
        font-size: 0.75rem;
        text-align: left;
        margin-right: 1rem;
    }
    
    /* Ajustes visuales para botones dentro de las tarjetas móviles */
    .table-mobile-cards td .btn {
        width: auto;
        padding: 0.25rem 0.75rem;
    }
}

/*ESTILOS EXTRA PARA LOS CHECKBOXES*/
     
    
        .indicador-card { transition: all 0.2s; cursor: pointer; border: 1px solid #dee2e6; border-radius: 8px; }
        .indicador-card:hover { background-color: #f8f9fa; border-color: #0d6efd; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
        .indicador-card input[type="checkbox"] { transform: scale(1.2); cursor: pointer; }
        .indicador-card label { cursor: pointer; width: 100%; }
        
        /* Pestañas más bonitas */
        .nav-pills .nav-link { color: #495057; border-radius: 50px; margin-right: 5px; margin-bottom: 5px; }
        .nav-pills .nav-link.active { background-color: #0d6efd; color: white; box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2); }

        /* SCROLL HORIZONTAL BULLETPROOF PARA MÓVILES */
        .tabs-scrollables { 
            display: flex !important;
            flex-wrap: nowrap !important; /* Opción nuclear contra Bootstrap */
            overflow-x: auto !important; 
            overflow-y: hidden !important; 
            -webkit-overflow-scrolling: touch; /* Deslizamiento suave en móviles */
            padding-bottom: 10px; 
        }
        
        /* Evitar que las pestañas intenten aplastarse */
        .tabs-scrollables .nav-item {
            flex-shrink: 0 !important;
        }

        /* Ocultar la barra de scroll visualmente pero mantener la función */
        .tabs-scrollables::-webkit-scrollbar { display: none; } 
        .tabs-scrollables { -ms-overflow-style: none; scrollbar-width: none; } 

/* Estilo para la tarjeta de agregar indicador */
        .card-agregar-indicador { border: 2px dashed #0d6efd; background-color: #f8f9fa; color: #0d6efd; text-align: center; transition: all 0.2s; cursor: pointer; border-radius: 8px; }
        .card-agregar-indicador:hover { background-color: #e9ecef; transform: scale(1.02); }


        /* ==========================================================
   DASHBOARD DOCENTE (Agregar a assets/styles.css)
   ========================================================== */

/* Efecto hover suave para las tarjetas de KPIs */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Cajas de iconos con fondo suave (Asegurando consistencia) */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; /* Más moderno que el círculo perfecto */
}

/* Tarjeta de acciones rápidas (Right panel) */
.action-card {
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); /* Gradiente azul profesional */
}
.action-card .btn-light {
    transition: all 0.2s ease;
    border-radius: 8px;
}
.action-card .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateX(5px); /* Efecto de "flecha" al hacer hover */
}

/* Estilo para el selector de cursos en el header */
.input-group.shadow-sm.rounded-pill {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s;
}
.input-group.shadow-sm.rounded-pill:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    border-color: #86b7fe;
}

/* ==========================================================
   BOTONES DE ACCESO RÁPIDO (Dashboard)
   ========================================================== */
.btn-acceso {
    transition: all 0.2s ease;
}

.btn-acceso:hover {
    background-color: #f8f9fa; /* Un blanco más brillante */
    transform: translateX(5px); /* Efecto de flecha sutil a la derecha */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}
   

.btn-reporte { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-reporte:hover { transform: translateY(-5px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }