/*==============================================
    VARIABLES CORPORATIVAS
    =============================================*/
:root {
    --azul-corp: #1a365d;
    --guindo-corp: #801538;
    --verde-confirmacion: #2d5a27;
    --fondo: #f0f2f5;
}

/*==============================================
    ESTILOS GLOBALES
    =============================================*/
body { 
    background: var(--fondo); 
    font-family: 'Segoe UI', sans-serif; 
    margin: 0; 
}

body.login-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
}

body.login-page .login-panel-v2 {
    margin: auto auto 0;
}

body.login-page .footer {
    margin-top: auto;
    width: 100%;
}

/*==============================================
    UTILIDADES GENERALES
    =============================================*/
.oculto { 
    display: none; 
}

/*==============================================
    ESTILOS DE LOGIN Y AUTENTICACIÓN
    =============================================*/
.login-panel {
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 20px; 
    border-top: 5px solid var(--guindo-corp);
}

.login-panel-v2 {
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 20px; 
    border-top: 5px solid var(--guindo-corp);
    max-width: 400px; 
    margin: 0 auto;
}

.system-title { 
    color: var(--azul-corp); 
    font-weight: 700; 
    text-align: center; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    font-size: 1.6em;
}

.icon-input-container { 
    position: relative; 
}

.icon-input-container i.input-icon { 
    position: absolute; 
    left: 12px; 
    top: 13px; 
    color: #999; 
    z-index: 4; 
    font-size: 18px; 
}

.icon-input-container .form-control { 
    padding-left: 40px !important; 
    height: 45px; 
    border-radius: 8px; 
}

.btn-ingresar {
    background: var(--azul-corp) !important;
    color: #fff !important;
    height: 50px;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-ingresar:disabled { 
    opacity: 0.4; 
    cursor: not-allowed; 
}

.alert-danger { 
    border-radius: 8px; 
    border: none; 
    border-left: 5px solid #a94442;
    background-color: #f2dede;
    color: #a94442;
}

.modal-header-success { 
    background: var(--verde-confirmacion); 
    color: white; 
    border-radius: 12px 12px 0 0; 
}

.student-highlight { 
    display: block;
    font-size: 1.25em;
    color: #2d5a27;
    font-weight: 800;
    margin: 5px 0 0 0;
    padding: 10px;
    background: #f0fff4;
    border-radius: 5px;
    line-height: 1.2;
}

.success-icon-circle {
    font-size: 35px;
    color: #48bb78;
}

#btnContinuar {
    background: #48bb78 !important;
    border: none;
    width: 100%;
    height: 50px;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/*==============================================
    FOOTER STYLES     
    =============================================*/
.footer {
    background-color:#214761;
    width:100%;
    color:#fff;
    padding: 6px 20px;
    font-size: 0.85em;
    line-height: 1.2;
}


    .footer > a, .footer>a:hover {
       
        color:#fff;
    }

/*==============================================
    ESTILOS DEL DASHBOARD
    =============================================*/
.div-square {
    padding: 5px;
    border: 3px double #e1e1e1;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    margin: 5px;
}

.div-square> a, .div-square> a:hover {
    color: #808080;
    text-decoration: none;
}

table.dataTable tbody tr.selected {
    background-color: #B0BED9;
}

.rude {
    line-height: 24px !important;
    height: 24px;
    padding: 0px 6px;
}

#error-container div {
    line-height: 140%;
}

#error-container div:last-child {
    padding-bottom: 10px;
}

.frm_hfp {
    min-width: 0px;
}

.error-notice {
    margin: 5px 5px;
}

.oaerror {
    width: 90%;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

/*==============================================
    CLASES DE ESTADO Y ALERTAS
    =============================================*/
.danger {
    border-left-color: #d9534f;
    background-color: rgba(217, 83, 79, 0.1);
}

.danger strong {
    color: #d9534f;
}

.warning {
    border-left-color: #f0ad4e;
    background-color: rgba(240, 173, 78, 0.1);
}

.warning strong {
    color: #f0ad4e;
}

.info {
    border-left-color: #5bc0de;
    background-color: rgba(91, 192, 222, 0.1);
}

.info strong {
    color: #5bc0de;
}

.success {
    border-left-color: #2b542c;
    background-color: rgba(43, 84, 44, 0.1);
}

.success strong {
    color: #2b542c;
}

/*==============================================
    LISTAS NUMERADAS
    =============================================*/
ol {
    counter-reset: item;
}

ol li {
    display: block;
}

ol li:before {
    content: counter(item) ". "; 
    counter-increment: item; 
    font-weight: bold;
}

/*==============================================
    ESTILOS DE SWITCHES Y CHECKBOXES
    =============================================*/
.form-check {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
    background-color: #ccc;
    border-radius: 17px;
    cursor: pointer;
    transition: background-color 0.4s;
}

.form-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch label {
    display: flex;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 17px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    border-radius: 50%;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
}

input:checked + label .slider {
    background-color: #4CAF50;
}

input:checked + label .slider:before {
    transform: translateX(13px);
}

/*==============================================
    VALIDACIÓN DE FORMULARIOS
    =============================================*/
.is-invalid {
    border: 2px solid red;
}

.invalid-feedback {
    color: red;
    font-size: 0.875em;
    margin-top: 5px;
}

/*==============================================
    ESTILOS PARA TABLA DE CALENDARIO
    =============================================*/
.schedule-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
}

.schedule-table,
.schedule-table th,
.schedule-table td {
    border: 1px solid #a1b4c7 !important;
}

.schedule-table thead th {
    background-color: #d2deea;
    color: #212529;
    font-weight: 700; 
    text-transform: uppercase;
    text-align: center; 
    vertical-align: middle;
}

.schedule-table th,
.schedule-table td {
    padding: 0.75rem;
}

.schedule-table tbody td:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease-in-out;
}

.schedule-table thead th:first-child {
    border-top-left-radius: 6px;
}

.schedule-table thead th:last-child {
    border-top-right-radius: 6px;
}

.fw-custom {
    font-weight: 700 !important;
}

.text-nuevos {
    color: #1b5e20;
    font-weight: 700;
}

.text-feriado {
    color: #800020 !important;
    font-weight: 700 !important;
}

/*==============================================
    MEDIA QUERIES - RESPONSIVE
    =============================================*/
@media all and (max-width: 550px) {
    .Rtable--collapse {
        display: block;
    }
    .Rtable--collapse > .Rtable-cell { 
        width: 100% !important; 
    }
    .Rtable--collapse > .Rtable-cell--foot { 
        margin-bottom: 1em; 
    }
}

@media (max-width: 576px) {
    .schedule-table th {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .mar {
        margin: 5px;
    }
    
    .frm_hfp {
        min-width: 300px;
    }
    
    .frm_hfp_80 {
        min-width: 80px;
    }
    
    .frm_hfp_120 {
        min-width: 120px;
    }
    
    .frm_hfp_197 {
        min-width: 197px;
    }
    
    .frm_hfp_263 {
        min-width: 263px;
    }
    
    .frm_hfp_340 {
        min-width: 340px;
    }
    
    .frm_hfp_350 {
        min-width: 350px;
    }
    
    .frm_hfp_375 {
        min-width: 375px;
    }
    
    .frm_hfp_390 {
        min-width: 390px;
    }
    
    .frm_hfp_400 {
        min-width: 400px;
    }
    
    .frm_hfp_430 {
        min-width: 430px;
    }
}
