/*======================================================
 CEET CyberLab v3.0
 Autor: Ing. Carlos Julio Peñaranda Herrera
 Diseño UI: OpenAI ChatGPT
======================================================*/

:root{

    --bg:#0b1220;
    --panel:#161f2e;
    --panel2:#1d293a;

    --primary:#00d4ff;
    --secondary:#3b82f6;

    --success:#16a34a;
    --warning:#f59e0b;
    --danger:#dc2626;

    --text:#f3f4f6;
    --gray:#94a3b8;

    --border:#2d3748;

    --radius:12px;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    background:linear-gradient(180deg,#08101d,#101827);

    color:var(--text);

    font-family:"Segoe UI",Tahoma,Arial,sans-serif;

}

a{

    color:white;
    text-decoration:none;

}

.topbar{

    height:65px;

    display:flex;

    justify-content:space-between;
    
    width:100%;

    align-items:center;

    padding:0 25px;

    background:#111827;

    border-bottom:1px solid var(--border);

    position:sticky;

    top:0;

    z-index:999;

}

.logo{

    font-size:28px;

    font-weight:bold;

    color:var(--primary);

}

.version{

    color:var(--gray);

    font-size:14px;

}

.container{

    display:grid;

    grid-template-columns:240px 1fr;

    min-height:calc(100vh - 65px);

}

aside{

    background:#111827;

    border-right:1px solid var(--border);

    padding:25px;

}

aside h2{

    margin-bottom:20px;

    color:var(--primary);

}

aside ul{

    list-style:none;

}

aside li{

    margin-bottom:8px;

}

aside a{

    display:block;

    padding:12px;

    border-radius:10px;

    transition:.25s;

}

aside a:hover{

    background:#1d4ed8;

    transform:translateX(5px);

}

main{

    padding:25px;

}

.banner{

    background:linear-gradient(135deg,#0f172a,#1e293b);

    border:1px solid var(--border);

    border-radius:15px;

    padding:30px;

    margin-bottom:25px;

}

.banner h1{

    color:var(--primary);

    margin-bottom:15px;

}

.banner p{

    color:#cbd5e1;

    line-height:1.7;

}

.status{
    display:flex;
    gap:10px;
    flex-wrap:nowrap;
    justify-content:space-between;
    width:100%;
    margin-bottom:25px;
}

.service{
    flex:1;
    text-align:center;
    padding:9px 12px;
    border-radius:10px;
    font-weight:bold;
    font-size:14px;
    white-space:nowrap;
}

.ok{

    background:var(--success);

}

.warning{

    background:var(--warning);

}

.off{

    background:var(--danger);

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:20px;

    margin-top:20px;

}

.card{

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:15px;

    padding:25px;

    transition:.3s;

}

.card:hover{

    transform:translateY(-6px);

    border-color:var(--primary);

    box-shadow:0 0 20px rgba(0,212,255,.25);

}

.card h2{

    color:var(--primary);

    margin-bottom:15px;

}

.card p{

    color:#d1d5db;

    line-height:1.6;

    min-height:130px;

}
/*======================================================
    BOTONES
======================================================*/

.button{

    display:inline-block;

    width:100%;

    padding:12px;

    margin-top:15px;

    text-align:center;

    background:linear-gradient(90deg,#0ea5e9,#2563eb);

    border-radius:10px;

    color:white;

    font-weight:bold;

    transition:.30s;

    cursor:pointer;

}

.button:hover{

    background:linear-gradient(90deg,#38bdf8,#3b82f6);

    box-shadow:0 0 18px rgba(0,212,255,.45);

    transform:translateY(-2px);

}

.button.disabled{

    background:#374151;

    color:#9ca3af;

    cursor:not-allowed;

}

.button.disabled:hover{

    box-shadow:none;

    transform:none;

}


/*======================================================
    TABLA
======================================================*/

.info{

    margin-top:40px;

    background:var(--panel);

    border-radius:15px;

    border:1px solid var(--border);

    padding:25px;

}

.info h2{

    margin-bottom:20px;

    color:var(--primary);

}

table{

    width:100%;

    border-collapse:collapse;

}

table td{

    padding:14px;

    border-bottom:1px solid #263445;

}

table tr:hover{

    background:#1b2737;

}


/*======================================================
    FOOTER
======================================================*/

footer{

    margin-top:40px;

    background:#111827;

    border-top:1px solid var(--border);

    text-align:center;

    padding:25px;

    color:#94a3b8;

}

footer strong{

    color:var(--primary);

}


/*======================================================
    SCROLL PERSONALIZADO
======================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#111827;

}

::-webkit-scrollbar-thumb{

    background:#334155;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#0ea5e9;

}


/*======================================================
    EFECTO GLASS
======================================================*/

.card,
.banner,
.info{

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);

}


/*======================================================
    ANIMACIONES
======================================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.banner{

    animation:fadeUp .8s ease;

}

.card{

    animation:fadeUp .8s ease;

}


/*======================================================
    EFECTO SOBRE SERVICIOS
======================================================*/

.service{

    transition:.30s;

}

.service:hover{

    transform:scale(1.05);

}


/*======================================================
    TARJETAS
======================================================*/

.card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:4px;

    height:100%;

    background:#00d4ff;

    opacity:.80;

}

.card{

    position:relative;

    overflow:hidden;

}


/*======================================================
    SOMBRA GENERAL
======================================================*/

.card,
.banner,
.info{

    box-shadow:

    0 5px 20px rgba(0,0,0,.35);

}
/*======================================================
    RESPONSIVE
======================================================*/

@media (max-width:1400px){

    .cards{

        grid-template-columns:repeat(2,1fr);

    }

}


@media (max-width:1000px){

    .container{

        grid-template-columns:1fr;

    }

    aside{

        display:none;

    }

    .cards{

        grid-template-columns:1fr;

    }

}


@media (max-width:700px){

    .topbar{

        flex-direction:column;

        justify-content:center;

        height:90px;

        text-align:center;

    }

    .logo{

        font-size:22px;

    }

    .version{

        font-size:12px;

    }

    main{

        padding:15px;

    }

}



/*======================================================
    TITULOS
======================================================*/

h1,h2,h3{

    font-weight:600;

}

h2{

    letter-spacing:.5px;

}



/*======================================================
    EFECTO MENU
======================================================*/

aside a{

    border-left:4px solid transparent;

}

aside a:hover{

    border-left:4px solid #00d4ff;

}



/*======================================================
    BADGES
======================================================*/

.badge{

    display:inline-block;

    padding:4px 10px;

    border-radius:20px;

    font-size:12px;

    font-weight:bold;

    margin-left:8px;

}

.badge.online{

    background:#15803d;

}

.badge.install{

    background:#ca8a04;

}

.badge.offline{

    background:#b91c1c;

}



/*======================================================
    GLOW
======================================================*/

.logo{

    text-shadow:

        0 0 5px #00d4ff,

        0 0 15px #00d4ff,

        0 0 25px #00d4ff;

}



/*======================================================
    TARJETAS
======================================================*/

.card:hover h2{

    color:white;

}

.card:hover{

    background:#1c2737;

}



/*======================================================
    TABLAS
======================================================*/

table td:first-child{

    color:#38bdf8;

    width:260px;

    font-weight:bold;

}



/*======================================================
    BANNER
======================================================*/

.banner{

    background:

    linear-gradient(

        135deg,

        rgba(0,212,255,.08),

        rgba(59,130,246,.08)

    );

}



/*======================================================
    TRANSICIONES
======================================================*/

*{

    transition:

        background .25s,

        color .25s,

        border .25s,

        transform .25s;

}



/*======================================================
    SELECCION
======================================================*/

::selection{

    background:#0ea5e9;

    color:white;

}



/*======================================================
    EFECTO HOVER TABLA
======================================================*/

table tr{

    transition:.25s;

}



/*======================================================
    ICONOS
======================================================*/

.card h2{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

}



/*======================================================
    SOMBRA DEL MENU
======================================================*/

aside{

    box-shadow:

    4px 0 15px rgba(0,0,0,.35);

}



/*======================================================
    PANEL PRINCIPAL
======================================================*/

main{

    animation:fadeUp .6s ease;

}

/*======================================================
    ALINEACION DE BOTONES EN TARJETAS
======================================================*/

.card{
    display:flex;
    flex-direction:column;
}

.card .button{
    margin-top:auto;
}

/*======================================================
    AJUSTE FILA DE ESTADOS
======================================================*/

.status{
    flex-wrap:nowrap;
    gap:8px;
}

.service{
    padding:9px 14px;
    font-size:14px;
    white-space:nowrap;
}

@media (max-width:1200px){
    .status{
        flex-wrap:wrap;
    }
}

/*======================================================
    RECURSOS DE APRENDIZAJE
======================================================*/

.recursos{
    margin-top:30px;
    margin-bottom:30px;
}

.recursos h2{
    color:var(--primary);
    margin-bottom:15px;
}

.recurso-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;

    background:var(--panel);

    border:1px solid var(--border);
    border-left:4px solid var(--primary);

    border-radius:15px;

    padding:22px 25px;

    box-shadow:0 5px 20px rgba(0,0,0,.35);
}

.recurso-info h3{
    color:var(--primary);
    margin-bottom:8px;
}

.recurso-info p{
    color:#d1d5db;
    line-height:1.6;
}

.recurso-button{
    width:220px;
    flex-shrink:0;
    margin-top:0;
}

@media (max-width:800px){

    .recurso-card{
        flex-direction:column;
        align-items:stretch;
    }

    .recurso-button{
        width:100%;
    }
}

/*======================================================
    AJUSTES FINALES DE ESPACIADO Y TITULOS
======================================================*/

/* Menos espacio entre laboratorios y recursos */
.recursos{
    margin-top:18px;
    margin-bottom:30px;
}

/* TÃ­tulo de recursos con jerarquÃ­a similar a Estado del Servidor */
.recursos h2{
    color:var(--primary);
    font-size:24px;
    font-weight:600;
    letter-spacing:.5px;
    margin-bottom:16px;
}
/*======================================================
    SESION DE USUARIO
======================================================*/

.user-session{
    display:flex;
    align-items:center;
    gap:12px;
    margin-left:auto;
    padding-left:20px;
}

.user-name{
    color:var(--text);
    font-weight:600;
    white-space:nowrap;
}

.user-name::before{
    content:"ðŸ‘¤ ";
}

.user-role{
    background:rgba(14,165,233,.15);
    border:1px solid rgba(56,189,248,.35);
    color:#38bdf8;
    padding:5px 11px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    white-space:nowrap;
}

.logout-link{
    padding:7px 12px;
    border-radius:8px;
    background:#374151;
    color:#f3f4f6;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
}

.logout-link:hover{
    background:var(--danger);
    color:white;
}

/*======================================================
    FIN
======================================================*/
