/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://example.com/
Author: Tu Nombre
Author URI: https://example.com/
Description: Child theme básico para Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/


/* Elementos recurrentes */

hr {
    border-top: 1px;
}

.espaciador {
    height: 2rem;
}

.avatar-participante.pequena {
    max-width: 50px;
    border-radius: 999px;
}

/* Login Page */

.login-form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}
#loginform {
    display: flex;
    flex-direction: column;
    
}
#loginform p {
    margin: 0;
}

#loginform br {
    display: none;
}
#loginform label {
    display: block;
    
}
#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}
#loginform input[type="submit"] {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 999px;
    background-color: var(--wp--preset--color--accent-2);
    color: var(--wp--preset--color--contrast);
    cursor: pointer;
}
#loginform input[type="submit"]:hover {
    opacity: 0.9;
    background-color: #e3985b;
}
.login-remember {
    display: flex;
    align-items: center;
    gap: 5px;
}

.boton-logout {
    margin-left: 2rem;
}


/* PAGINA USUARIO */

.user-header {
    display: flex;
    gap: 2rem;
    padding-top: 0px;
    padding-bottom: 100px;
    align-items: center;
}

.user-header img {
    border-radius: 999px;
}

.user-header h1 {
    margin-bottom: 0;
}

.user-header p {
    margin-top: 0;
}

.user-subheader p{
    margin-bottom: 0;
    color: var(--wp--preset--color--accent-3);
    font-family: var(--wp--preset--font-family--literata);
}

.tarjeta-challenge {
    /* border: 1px solid gray; */
    background-color: white;
    border-radius: 10px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;

    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    margin-bottom: 1rem;
    gap: 1rem;
}

@media screen and (max-width: 500px) {
    .tarjeta-challenge {
        flex-direction: column;
        
    }
    
}

.tarjeta-challenge .challenge-boton a{
    display: flex;
    background-color: #7bd15c;
    width: 100%;
    min-width: 200px;
    height: 100%;
    border-radius: 5px;
    font-family: var(--wp--preset--font-family--literata);
    color: var(--wp--preset--color--accent-3);
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    box-sizing: border-box; /* Add this line */
    text-decoration: none;
    transition: all 0.2s ease;
}

.tarjeta-challenge .challenge-boton.challenge-boton-verde a{
    border-radius: 5px;
    background-color: #7bd15c;
    color: var(--wp--preset--color--accent-3);
}

.tarjeta-challenge .challenge-boton.challenge-boton-verde a:hover {
    background-color: #5cad3e;
}

.tarjeta-challenge .challenge-boton.challenge-boton-naranja a{
    border-radius: 5px;
    background-color: #f5b684;
    color: var(--wp--preset--color--accent-3);
}

.tarjeta-challenge .challenge-boton.challenge-boton-naranja a:hover {
    background-color: #e39d66;
}

.tarjeta-challenge .challenge-boton.challenge-boton-gris a{
    border-radius: 5px;
    background-color: #bdbdbd;
    color: var(--wp--preset--color--accent-3);
}

.tarjeta-challenge .challenge-boton.challenge-boton-gris a:hover {
    background-color: #969696;
}

.tarjeta-challenge .challenge-boton.challenge-boton-aqua a{
    border-radius: 5px;
    background-color: #9de3bc;
    color: var(--wp--preset--color--accent-3);
}

.tarjeta-challenge .challenge-boton.challenge-boton-aqua a:hover {
    background-color: #6fc496;
}

.tarjeta-challenge h4 {
    margin: 0;
    margin-bottom: 1rem;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 400;
}

.tarjeta-challenge p {
    margin: 0;
    margin-left: 1rem;
    font-size: 0.9rem;
}



/* PAGINA DE CHALLENGE */

.challenge-header {
    display: flex;
    gap: 2rem;
    padding-top: 0px;
    padding-bottom: 100px;
    
}

@media screen and (max-width: 750px) {
    .challenge-header {
        flex-direction: column;
    }
    
}
.challenge-header .challenge-titulo {
    padding-right: 2rem;
}
.challenge-header .challenge-titulo h4 {
   font-family:  var(--wp--preset--font-family--fira-sans);
   /* font-weight: 400; */
   letter-spacing: 0.2rem;
   margin: 0;
}

.challenge-header .challenge-titulo h1 {
    font-weight: 400;
    margin: 0;
} 

.challenge-header .challenge-titulo p {
    font-family: var(--wp--preset--font-family--literata);
    color: var(--wp--preset--color--contrast);
    font-weight: 400;
    font-size: 1.5rem;
}

.challenge-header .challenge-detalles p {
    margin: 0;

    font-size: 0.9rem;
}


.challenge-header ul.header-lista-participantes {
display: flex;
gap: 0.5rem;
padding: 0;
}

.challenge-header ul.header-lista-participantes li::marker {
    content: '';
}

/* Tooltip */
.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.nombre-participante-tooltip {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    bottom: 110%; /* arriba del avatar */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-wrapper:hover .nombre-participante-tooltip {
    visibility: visible;
    opacity: 1;
}
/* fin de tooltip */

.challenge-section-boton {
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    padding: 3rem;
    text-align: center;
}

#challenge-section-boton button {
    background-color: #7bd15c;
    border: none;
    outline: none;
    padding: 1rem 2rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    cursor: pointer;
}

#challenge-section-boton button:hover {
    background-color: #5cad3e;
}


/* TABLA ESTRELLITAS */

.challenge-section-estrellitas {
    overflow-x: auto;
    padding-bottom: 2rem;
    padding-top: 2rem;
}

.tabla-estrellitas {
    border-collapse: separate;
  border-spacing: 0;
} 

.tabla-estrellitas .estrella {
    background-color: white;
    padding: 0.5rem;
    border-radius: 999px;
    font-size: 1.5rem;
} 

.tabla-estrellitas .estrella-vacia {
    color: #bdbdbd;
}

.fixed-column {
    position: sticky;
    left: 0;    
    background-color: #f5b684;
    border-right: 4px solid white;
    z-index: 1; /* Asegura que la columna fija esté por encima del resto */
}
.fixed-column-data {
     position: sticky;
     left: 0;
     background-color: #f8f7f5;
     border-right: 2px solid white;
     z-index: 1; /* Asegura que la columna fija esté por encima del resto */
     max-width: 200px;
     padding: 1rem;
}



.tabla-estrellitas .dia-estrellitas{
    font-weight: 800;
    text-transform: uppercase;
}

.tabla-estrellitas .titulo-partners {
    font-weight: 800;;
}

.tabla-estrellitas thead{   
    background-color: var(--wp--preset--color--accent-2);
    color: var(--wp--preset--color--contrast);
    

}

.tabla-estrellitas thead th {
    font-family: var(--wp--preset--font-family--fira-sans);
    font-weight: 300;
    text-align: center;
    padding: 1rem;
    min-width: 100px;
}

.tabla-estrellitas thead th:first-child {
    text-align: left;
    min-width: 200px;
}


.tabla-estrellitas .avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabla-estrellitas .avatar-wrapper span {
    display: inline;
}

.tabla-estrellitas .celda-estrellitas {
    text-align: center;
    border-bottom: 1px solid grey;
}



.tabla-estrellitas th.fin-de-semana {
    background-color: #cadbe3;
}

.tabla-estrellitas .paloma {
    font-size: 1rem;
    opacity: 0.6;
}

@media screen and (max-width: 750px){


    .tabla-estrellitas thead th {
        min-width: 50px;
    } 

    .tabla-estrellitas .dia-estrellitas{
        font-size: 0.8rem;
    }
    .tabla-estrellitas .titulo-partners {
        font-size: 0.8rem;
    }
    .tabla-estrellitas thead th {
        font-size: 0.8rem;
    }

    .tabla-estrellitas thead th:first-child {
        min-width: 100px;
    }

    .tabla-estrellitas .apellido {
        display: none !important;
    }


}

@media screen and (max-width: 450px)
{
    .tabla-estrellitas .nombre{
        display: none !important;
    }
    .tabla-estrellitas thead th:first-child {
        min-width: 50px;
    }
}



/* GRAFICO DE BARRAS */

.challenge-section-barras-superior {
    max-width: 100%;
    overflow-x: auto; /* Permite el desplazamiento horizontal si el contenido es más ancho que el contenedor */
}

.challenge-section-barras {
    display: flex; /* Asegura que los elementos dentro se alineen en fila */
    justify-content: flex-start;
    position: relative; /* Para que los elementos dentro sean posicionados de manera controlada */
    min-width: max-content; /* Asegura que el contenido interno (el gráfico) no se deforme */
}

#myChart {
    position: relative;
    min-width: 800px; /* Establece un ancho mínimo para el gráfico */
}





/******
PAGINA EDIT PROFILE
******/

.edit-profile input[type="submit"], button[type="submit"] {
    background-color: #f5b684;
    border: none;
    outline: none;
    padding: 1rem 2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-profile input[type="submit"]:hover, button[type="submit"]:hover {
    background-color: #e39d66;
}

.edit-profile input[type="text"], .edit-profile input[type="password"] {
    padding: 1rem 2rem 1rem 1rem;
}