/*
 * Ruta: /s-internos/estadistica/assets/css/poeh_styles.css
 * Archivo: poeh_styles.css
 * Descripción: Estilos institucionales base, sobreescritura de AdminLTE y diseño de Toasts.
 * Bitácora: 
 * - [2026-09-17] Creación de variables de color institucionales y clases Toast.
 */

:root {
    /* Colores Institucionales POEH */
    --poeh-guinda: #691b31;
    --poeh-rojo: #A02142;
    --poeh-dorado-oscuro: #BC955B;
    --poeh-dorado-claro: #DDC9A3;
    --poeh-gris-claro: #98989A;
    --poeh-gris-oscuro: #6F7271;
    
    /* Fondo muy claro solicitado */
    --poeh-bg: #f4f6f9; 
}

body {
    background-color: var(--poeh-bg) !important;
    font-family: 'Source Sans Pro', sans-serif;
}

/* Botones Institucionales */
.btn-institucional {
    background-color: var(--poeh-guinda);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}
.btn-institucional:hover {
    background-color: var(--poeh-rojo);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secundario {
    background-color: var(--poeh-dorado-oscuro);
    color: #ffffff;
    border: none;
}
.btn-secundario:hover {
    background-color: var(--poeh-dorado-claro);
    color: #333333;
}

/* Tarjeta de Login (Efecto Elevación) */
.login-card-body {
    border-top: 4px solid var(--poeh-dorado-oscuro);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

/* Sistema de Notificaciones Toast (15 Segundos) */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.poeh-toast {
    min-width: 300px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.poeh-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.poeh-toast.success { background-color: #28a745; border-left: 6px solid #1e7e34; }
.poeh-toast.error { background-color: var(--poeh-guinda); border-left: 6px solid var(--poeh-rojo); }
.poeh-toast.warning { background-color: var(--poeh-dorado-oscuro); border-left: 6px solid var(--poeh-dorado-claro); }

/* Animación de carga (Loading) */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.spinner {
    border: 6px solid var(--poeh-dorado-claro);
    border-top: 6px solid var(--poeh-guinda);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }