html,
body{

    min-height:100%;
}

body{

    margin:0;
    padding:0;

    background:#f5f5f5;

    font-family:Arial, Helvetica, sans-serif;

    display:flex;
    flex-direction:column;

    min-height:100vh;
}
/* =========================
   LOGIN
========================= */
.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f4f6f8 55%, #e9ecef 100%);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.login-card {
    width: 100%;
    max-width: 460px;

    border-radius: 22px;
    overflow: hidden;
}

.login-logo {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-title {
    font-size: 34px;
    font-weight: 800;
    color: #222222;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 15px;
    color: #777777;
    margin-bottom: 0;
}

.btn-academy {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    font-weight: 600;
}

.btn-academy:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #ffffff;
}
#togglePassword i {
    font-size: 1.1rem;
    color: #666666;
}

#togglePassword:hover i {
    color: #333333;
}
/* =========================
   ENLACES
========================= */

a{

    color:#ff6600;
    text-decoration:none;
}

a:hover{

    color:#cc5200;
}

/* =========================
   HEADER
========================= */

.top-header{

    background:#ffffff;

    padding:14px 30px;

    border-bottom:1px solid #dddddd;

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

    z-index:1050;
}

.logo-pixelblack{

    height:50px;
    width:auto;
}

.header-title{

    font-size:30px;
    font-weight:700;
    color:#222222;
}

.header-subtitle{

    font-size:14px;
    color:#777777;
}

.usuario-activo{

    font-weight:600;
    color:#222222;
}

/* =========================
   MENU
========================= */

.navbar-academy{

    background:#212529;

    z-index:1040;
}

.navbar-academy .nav-link{

    color:#ffffff !important;

    padding:14px 18px;

    font-weight:500;
}

.navbar-academy .nav-link:hover{

    background:#0d6efd;

    color:#ffffff !important;
}

/* =========================
   CONTENIDO
========================= */

.contenido-principal{

    flex:1;

    padding:30px;
}

/* =========================
   FOOTER
========================= */

.footer-pixelblack{

    background:#333333;

    color:#ffffff;

    padding:22px 30px;

    margin-top:auto;
}

.footer-logo{

    height:34px;
    width:auto;
}

.footer-text{

    color:#dddddd;

    font-size:15px;
}

/* =========================
   BOTON SUBIR
========================= */

.btn-top{

    width:42px;
    height:42px;

    border-radius:50%;

    border:1px solid #ffffff;

    display:inline-flex;

    align-items:center;
    justify-content:center;

    color:#ffffff;

    font-size:22px;

    transition:0.3s;
}

.btn-top:hover{

    background:#ffffff;

    color:#333333;
}
/* =========================================
   DASHBOARD ERP
========================================= */

.dashboard-card {

    min-height: 220px;

    border-radius: 20px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    transition: all 0.25s ease;

    color: #ffffff;

    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.dashboard-card:hover {

    transform: translateY(-6px);

    box-shadow: 0 18px 35px rgba(0,0,0,0.20);

    color: #ffffff;
}

.dashboard-icon {

    font-size: 68px;

    margin-bottom: 18px;

    line-height: 1;
}

.dashboard-title {

    font-size: 26px;

    font-weight: 700;

    text-align: center;
}

/* COLORES */

.dashboard-blue {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

.dashboard-green {
    background: linear-gradient(135deg, #198754, #157347);
}

.dashboard-yellow {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #222222;
}

.dashboard-yellow:hover {
    color: #222222;
}

.dashboard-red {
    background: linear-gradient(135deg, #dc3545, #bb2d3b);
}

.dashboard-lila {
    background: linear-gradient(135deg, #f603e5, #660397);
    color: #ffffff;
}
.dashboard-yellow {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #ffffff;
}
.dashboard-ayuda {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #ffffff;
}
/* CABECERAS DE TABLAS POR MÓDULO */

.thead-alumnos th {
    background: #0d6efd !important;
    color: #ffffff !important;
}

.thead-cursos th {
    background: #198754 !important;
    color: #ffffff !important;
}

.thead-profesores th {
    background: #ffc107 !important;
    color: #222222 !important;
}

.thead-admin th {
    background: #dc3545 !important;
    color: #ffffff !important;
}

.thead-matriculas th {
    background: #6f42c1 !important;
    color: #ffffff !important;
}

/* ==========================================
   BOTÓN IMPORTAR CSV
========================================== */

.btn-importar {

    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);

    color: #ffffff;

    border: none;

    font-weight: 600;

    transition: all 0.25s ease;
}

.btn-importar:hover {
    background: linear-gradient(135deg, #0aa2c0, #087990);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dashboard-turquesa {

    background: linear-gradient(
        135deg,
        #20c997,
        #0dcaf0
    );

    color: #ffffff;
}
.thead-plantillas th {
    background: #20c997 !important;
    color: #ffffff !important;
}
/* ==========================================
PLANTILLAS
========================================== */
.thead-plantillas th {
    background: #20c997 !important;
    color: #ffffff !important;
}
/* ==========================================
   DASHBOARD IA
========================================== */

.dashboard-ia {

    background: linear-gradient(
        135deg,
        #6610f2,
        #0dcaf0
    );

    color: #ffffff;
}
/* CKEditor */

.ck-editor__editable {
    min-height: 400px !important;
}

/* MÓDULO AYUDA */
.contenido-ayuda {
    font-size: 16px;
    line-height: 1.7;
}

.contenido-ayuda img {
    max-width: 100%;
    height: auto;
}

.contenido-ayuda table {
    width: 100%;
    border-collapse: collapse;
}

.contenido-ayuda table,
.contenido-ayuda th,
.contenido-ayuda td {
    border: 1px solid #dddddd;
    padding: 8px;
}

/* KPIs DASHBOARD */

/* KPIs Dashboard */

.kpi-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    height: 100%;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transition: .2s;
}

.kpi-card:hover {
    transform: translateY(-3px);
}

.kpi-icon {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.kpi-numero {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.kpi-titulo {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}