:root {
    --blue: #0d669e;
    --blue-opacity: rgb(13, 102, 158, 0.1);
    --green: #2c7c24;
    --green-opacity: rgb(44, 124, 36, 0.1);
    --present: #28a745;
    --present-opacity: rgb(40, 167, 69, 0.1);
    --absent: #dc3545;
    --absent-opacity: rgb(220, 53, 69, 0.1);
}

body {
    /* background: rgba(0, 0, 0, 0.05); */
    background-color: var(--blue-opacity);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: var(--blue) !important;
}

.bg-blue {
    background-color: var(--blue);
    color: #fff;
}

.bg-blue-op {
    background-color: var(--blue-opacity) !important;
    /* color: #7f7f7f; */
    color: var(--blue) !important;
}

.fc-blue {
    color: var(--blue);
}

.bg-green {
    background-color: var(--green);
    color: #fff;
}

.bg-green-op {
    background-color: var(--green-opacity) !important;
    /* color: #7f7f7f; */
    color: var(--green) !important;
}

.fc-green {
    color: var(--green);
}

.bg-present {
    background-color: var(--present);
    color: #fff;
}

.bg-present-op {
    background-color: var(--present-opacity) !important;
    /* color: #7f7f7f; */
    color: var(--present) !important;
}

.bg-absent {
    background-color: var(--absent);
    color: #fff;
}

.bg-absent-op {
    background-color: var(--absent-opacity) !important;
    /* color: #7f7f7f; */
    color: var(--absent) !important;
}

.fc-present {
    color: var(--present);
}

.fc-absent {
    color: var(--absent);
}

button.bg-blue:hover {
    background-color: var(--blue);
    transform: scale(0.95);
    opacity: 0.75;
    color: #fff;
}

button.bg-blue:disabled {
    color: #fff !important;
    background-color: var(--blue);
    border-color: unset !important;
}

button.bg-green:hover {
    background-color: var(--green);
    transform: scale(0.95);
    opacity: 0.75;
    color: #fff;
}

button.bg-green:disabled {
    color: #fff !important;
    background-color: var(--green);
    border-color: unset !important;
}

.clickable {
    cursor: pointer;
}

.box-container {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.1);
}

.login-container {
    width: 300px;
    height: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    width: 45px;
    height: 45px;
}

.main-content-container {
    height: calc(100vh - 154px);
}
.input-content-container {
    height: calc(100% - 80px);
}

.table-container {
    max-height: 100%;
    overflow-y: auto;
    /* Estilo de la barra de desplazamiento en Firefox
    scrollbar-width: thin; 
    scrollbar-color: var(--green) #f1f1f1; */
}

.tr-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

/* Estilo de la barra de desplazamiento en WebKit (Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--green);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--blue);
    cursor: grab;
}

::-webkit-scrollbar-thumb:active {
    cursor: grabbing;
}

.alert[role="alert"] {
    position: absolute;
    left: 15px;
    bottom: 0;
}

.main-hour {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 16px;
}

.students-list {
    max-height: 410px;
    overflow-y: auto;
    font-size: 12px;
}

.students-list button.has_ws {
    cursor: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes slideInOut {
    0% {
        transform: translateX(
            -100%
        ); /* Empieza fuera de la pantalla, a la izquierda */
        opacity: 0;
    }
    20% {
        transform: translateX(0); /* Llega al centro de la pantalla */
        opacity: 1;
    }
    80% {
        transform: translateX(0); /* Se mantiene en el centro */
        opacity: 1;
    }
    100% {
        transform: translateX(
            -100%
        ); /* Se va hacia la izquierda, fuera de la pantalla */
        opacity: 0;
    }
}

.alert-slide {
    animation: slideInOut 4s ease-in-out forwards;
}

.go-home {
    position: absolute;
    left: 8px;
    bottom: 4px;
    font-size: 24px;
}

.go-home:hover {
    cursor: pointer;
}

.go-home a {
    color: #fff;
}

@keyframes vibrate {
    0% {
        transform: translateX(-2px);
    }
    25% {
        transform: translateX(2px);
    }
    50% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
    }
}

.go-home:hover,
.hover-l2r:hover {
    animation: vibrate 0.3s ease-in-out;
    display: inline-block;
}

/* #region ENTRADA y SALIDA de talleres */
.qr_input_container {
    width: 100%;
    height: 100%;
    background-image: url(../img/logo_white.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f0f0f0;
    background-size: contain;
}

.qr_input {
    width: 100%;
    height: 100%;
    text-align: center;
    filter: opacity(0.5);
    font-size: 100px !important;
    color: rgba(0, 0, 0, 0.1) !important;
}

/* Estilo para el placeholder en todos los navegadores */
.qr_input_container input::placeholder {
    color: rgba(0, 0, 0, 0.1) !important;
    /* Color del placeholder */
}

/* Para compatibilidad con navegadores basados en WebKit (Chrome, Safari) */
.qr_input_container input::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.1) !important;
}

/* Para Firefox */
.qr_input_container input::-moz-placeholder {
    color: rgba(0, 0, 0, 0.1) !important;
}

/* Para Internet Explorer 10+ */
.qr_input_container input:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.1) !important;
}

/* Para Microsoft Edge */
.qr_input_container input::-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.1) !important;
}

.qr_input,
.qr_input:focus,
.qr_input:focus-visible {
    border: none !important;
    outline: none !important;
}

.truncate-three-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.5;
}

.tutor_card {
    padding: 10px;
    border: 2px solid rgba(128, 128, 128, 0.25);
    box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px 0px;
    border-radius: 10px;
    min-height: 222px;
}

.card-photo {
    border-radius: 50%;
    overflow: hidden;
    height: 110px;
    width: 110px;
    margin: 0px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid rgba(128, 128, 128, 0.5);
}

/* #endregion ENTRADA y SALIDA de talleres */

/* #region SWEET ALERT */
.swal-modal {
    width: 500px;
}

.swal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.swal-footer {
    padding: 4px;
}
/* #endregion SWEET ALERT */

/* #region BARRAS DE PROGRESO */
.progress-stacked {
    height: 40px;
}

.progress-stacked .progress {
    height: 100%;
}

.progress-stacked .progress-bar {
    font-size: 16px;
}
/* #endregion BARRAS DE PROGRESO */

/* #region GRAFICAS */
.charts-container {
    max-height: calc(100% - 142px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(190px, 1fr)
    ); /* Ancho fijo de 265px para cada celda */
    gap: 10px; /* Espacio entre las celdas */
}

.chart-card {
    border: 1px solid #2c7c24;
    border-radius: 15px;
    padding: 10px;
}

.chart.container {
    width: 100%;
    height: 200px;
}

.clickable-span {
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
}
/* #endregion GRAFICAS */

.no-results {
    height: calc(100% - 10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    border-color: transparent !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px 5px rgba(255, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Aplica el pulso mientras NO está marcado */
.confirmation-check:not(:checked) {
    animation: pulse 1s infinite ease-in-out;
}

/* Cuando está marcado, eliminamos la animación */
.confirmation-check:checked {
    animation: none;
}

#statusModal textarea {
    height: 140px;
}

.cards-list {
    list-style-type: circle;
    margin: 0;
    padding: 0;
}

.cards-list li::marker {
    color: var(--green);
}

.disabled:hover {
    cursor: not-allowed;
}
