
:root{
    --color1: #3e6082; 
    --color2: #bdff22; 
    --color3: #e2eefb; 
    --color4: #1b2d40; 
    --color5: #f4f4f4; 
}

*{
    font-family: "Mona Sans", sans-serif;
    padding: 0;
    margin:0;
    box-sizing: border-box;
}

/* login-page */
.login-page{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--color3);
}

.login-page form{
    padding: 40px;
    max-width: 400px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-page form img{
    max-width: 160px;
    margin: 0 0 30px 0;
}

.login-page form input[type="email"],
.login-page form input[type="password"]{
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-page form button[type="submit"]{
    width: 60%;
    padding: 14px;
    background-color: var(--color1);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* header */
header{
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    z-index: 10;
}

header .wrap{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 10px 10px 300px;
}

@media(max-width:800px){
    header .wrap{
        padding: 10px 10px;
    }
}

header .logout a{
    color: var(--color1);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 16px;
    gap:5px;
}

header .logout a span{
    font-size: 16px;
}

/*sidebar */
.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    padding: 10px 30px 30px 30px;
    z-index: 11;
    height: 100%;
    background-color: var(--color1);
    color: #fff;
    text-align: center;
}

.sidebar .logo{
    max-width: 140px;
    margin:0 auto 20px auto;
    pointer-events: none;
}

.sidebar .logo img{
    width: 100%;
    max-width: 200px;
    margin-bottom: 20px;
}

@media(max-width:800px){
    .sidebar{
        display: none;
    }
}

.sidebar .user-info{
    margin-bottom: 20px;
}

.sidebar nav ul li{
    list-style-type: none;
    text-align: left;
    font-size: 14px;
}

.sidebar nav ul li a{
    color: #ffffff;
    text-decoration: none;
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.sidebar nav ul li:last-child a{
    border:none;
}


.sidebar nav ul li a i{
    margin:0 10px 0 0;
    opacity: .7;
    font-size: 13px;
    transition: color .3s ease;
}

.sidebar nav ul li a:hover i{
    color: var(--color2);
    opacity: 1;
}

/* content */
.content{
    padding: 80px 30px 30px 300px;
}

@media(max-width:800px){
    .content{
        padding: 80px 30px 30px 30px;
    }
}

.section--2{
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap:2%;
    align-items: start;
}


.estadisticas {
    width: 40%;
    display: flex;
    justify-content: space-around;
    background-color: var(--color3);
    padding: 30px;
    border-radius: 10px;
    flex-wrap: wrap;
}

@media screen and (max-width: 800px) {
    .estadisticas {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    
}

.estadisticas .title{
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    color: var(--color4);
    margin-bottom: 40px;
}

.estadisticas article{
    width: 200px;
}

.estadisticas__svg {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto;
}

.estadisticas__progreso {
    fill: none;
    stroke: var(--color1);
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.6s ease-in-out;
}


.estadisticas__fondo {
    fill: none;
    stroke: #ffffff;
    stroke-width: 10;
}

.estadisticas__numero {
    font-size: 1.1rem;
    fill: #333;
    font-weight: bold;
    dominant-baseline: middle;
    text-anchor: middle;
}

.estadisticas__titulo {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
    text-align: center;
    font-weight: 500;
}


.estadisticas__titulo span{
    display: block;
    font-size: 12px;
    color: var(--color1);
}

/* list-chat */
.list-chat{
    width: 58%;
}

.list-chat .not-box{
    height: 100%;
    display: flex;
    align-items: center;
    aspect-ratio: 5/2;
    justify-content: center;
    color: var(--color1);
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
}

.list-chat article{
    background-color: var(--color5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.list-chat article h3{
    font-size: 16px;
    color: var(--color4);
    margin-bottom: 10px;
}

.list-chat article p{
    font-size: 14px;
    color: var(--color1);
    margin-bottom: 10px;
}

.ver-mas-btn{
    background-color: var(--color1);
    color: var(--color3);
    border:none;
    cursor: pointer;
    padding: 10px 20px;
}

.ver-mas-btn:hover{
    background-color: var(--color2);
    color: var(--color4);
}

.modal-chat {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-chat__contenido {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    position: relative;
}

.chat__titulo{
    font-size: 30px;
    padding: 40px 0;
}

.modal-chat__cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.modal-chat__cerrar:hover {
    color: #000;
}

#modalChatTexto {
    white-space: pre-wrap;
    font-size: 0.95rem;
    color: #333;
    max-height: 400px;
    overflow-y: auto;
}


.chat-transcripcion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 50px 30px;
    max-height: 400px;
    overflow-y: auto;
}



.chat-mensaje .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-mensaje.usuario .avatar {
    background-color: #1976d2;
}

.chat-mensaje.asistente .avatar {
    background-color: #4caf50;
}

.chat-mensaje .mensaje {
    background-color: #f1f1f1;
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 75%;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.chat-mensaje.usuario .mensaje {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.chat-mensaje.asistente .mensaje {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.chat-mensaje {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.chat-mensaje.usuario {
    flex-direction: row-reverse;
    justify-content: flex-start;
    margin-left: auto;
}

.chat-mensaje.asistente {
    flex-direction: row;
    justify-content: flex-start;
    margin-right: auto;
}


.code-box {
    color: #888888;
    background-color: #d4d4d4; /* color base de texto */
    padding: 1.5em;
    white-space: pre-wrap;
    font-family: Consolas, Menlo, Monaco, 'Courier New', monospace;
    font-size: 14px;
    border-radius: 8px;
    overflow-x: auto;
    line-height: 1.5;
    opacity: .6;
    user-select: text;
    cursor: default;
    position: relative;
    max-height: 50vh;
    overflow: scroll;
}

.title-section-1{
    font-size: 18px;
}