﻿@import url('app.css');

/* Animación de cambio de color para títulos dinámicos */
@keyframes color-change {
    0% {
        color: red;
    }

    25% {
        color: green;
    }

    50% {
        color: blue;
    }

    75% {
        color: purple;
    }

    100% {
        color: orange;
    }
}

.dynamic-heading {
    animation: color-change 5s infinite; /* Cambia de color cada 5 segundos */
}

/* Modal y backdrop */
.modal {
    z-index: 1050; /* Modal por encima del backdrop */
}

.modal-backdrop {
    z-index: 1040; /* Fondo detrás del modal */
    background-color: rgba(0, 0, 0, 0.5); /* Transparencia adecuada */
}




/* Estilo general de las tarjetas */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

    .card:hover {
        transform: scale(1.05);
    }

.card-img-top {
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.card-text {
    font-size: 0.9rem;
    color: #666;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 0.5rem 1rem;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

/* Espaciado responsivo */
.row.g-3 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Responsivo para el carrusel */
.carousel-inner {
    padding: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}


/******************************************************/

/* Contenedor principal de la barra superior */
.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

/* Título del sistema alineado a la izquierda */
.title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F7941E; /* Naranja institucional */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    flex-grow: 1;
    max-width: 50%;
}

/* Estilo para el texto del correo */
.email-highlight {
    font-size: 1rem;
    font-weight: 600;
    color: #ff8c00;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
    transition: color 0.3s ease-in-out;
}

/* Estilo para el botón de desconexión */
.btn-disconnect {
    background-color: #0033A0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease-in-out;
}

    .btn-disconnect:hover {
        background-color: #002080;
    }

/* Diseño responsivo */
@media (max-width: 768px) {
    .top-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .title {
        font-size: 1.5rem;
        max-width: 100%;
    }

    .email-highlight {
        font-size: 0.9rem;
        max-width: 100%;
        white-space: normal;
    }

    .btn-disconnect {
        margin-top: 10px;
    }
}

@media (min-width: 769px) {
    .email-highlight {
        font-size: 1rem;
        white-space: nowrap;
    }

    .top-row {
        flex-direction: row;
    }
}


/**********************************************************************/


.popover {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    position: absolute;
    background: white !important;
    color: black !important;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

    /* ✨ Transición cuando el popover aparece */
    .popover.show {
        transform: scale(1);
        opacity: 1;
    }
.popover-header {
    background: #007bff !important;
    color: white !important;
    font-weight: bold;
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 10px;
}

.popover-body {
    padding: 15px;
    font-size: 14px;
}

/* Ajustar separación de checkbox y fecha */
.session-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 0;
}

/* Ajuste de los checkboxes */
.popover-body input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 10px;
}

/* Estilos para input date */
.date-input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px;
    font-size: 14px;
    background: white;
    color: black;
}

/* Estilos de observaciones */
.observaciones-container {
    margin-top: 10px;
}

    .observaciones-container textarea {
        width: 100%;
        border-radius: 6px;
        padding: 8px;
        font-size: 14px;
        border: 1px solid #ccc;
    }



/* Botón estilizado */
.button-container {
    margin-top: 15px;
    text-align: center;
}

    .button-container button {
        padding: 8px 12px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: bold;
        cursor: pointer;
        transition: 0.3s;
    }

        .button-container button:hover {
            background-color: #0056b3;
            transform: scale(1.05);
        }

    /*Boton de la pantalla de Facilitadores llamado modo facilitador*/

.btn-curridabat {
    background-color: #F39200;
    color: #FFFFFF;
}

    .btn-curridabat:hover {
        background-color: #D97D00; /* Un tono más oscuro al pasar el mouse */
    }



/*Estilo para el contenedor del los graficos*/
#contenedorGrafico {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 490px;
    max-width: 600px;
    margin: auto;
    overflow: hidden; /* Evita que el contenedor crezca más allá de su tamaño */
}

#graficoActividades {
    max-width: 100%;
    max-height: 100%;
}

/****************************************/

/* Estilo para el DashBoard de Actividades */

/* Estilos generales */
/* Tarjetas personalizadas */
.custom-card-primary {
    background-color: #007bff; /* Azul */
}

.custom-card-info {
    background-color: #17a2b8; /* Azul claro */
}

.custom-card-warning {
    background-color: #ffc107; /* Amarillo */
}

/* Contenedor de gráficos */
.custom-charts-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.custom-chart-container {
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 20px;
}

/* Estilo para la tabla de actividades */
.custom-activity-table {
    margin-top: 30px;
}

    .custom-activity-table .table {
        border-radius: 8px;
        overflow: hidden;
    }

    .custom-activity-table .table-light {
        background-color: #f8f9fa;
    }
