/* leave_portal_kiosk_historial_styles.css */

/* Variables globales */
:root {
    --color-principal: #020432;
    --color-principal-transparente: #02043236;
    --color-secundario: #ffffff;
    --color-exito: #28a745;
    --color-rechazo: #6c757d;
    --color-pendiente: #ffdd2d;
    --color-pendiente2: #f39c12;
    --color-cancelado: #dc3545;
    --color-azul-icono: #007bff;
    --fondo-claro: #ffffff80;
    --fondo-input-focus: #e8daff36;
    --fondo-respaldo: #f4f6f9;
    --sombra-suave: rgba(0, 0, 0, 0.1);
    --sombra-hover: rgba(0, 0, 0, 0.15);
    --fuente-principal: 'Poppins', 'sans-serif';
}

/* General */
body {
    text-align: center;
    font-family: var(--fuente-principal);
    background-image: url('/Leave_Portal_Kiosk/static/src/img/background-light.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    background-color: var(--fondo-respaldo);
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Encabezado */
.leave_portal_kiosk-header {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-radius: 20px;
    width: 95%;
}

/* Botones */
.leave_portal_kiosk-back-button {
    background-color: var(--color-secundario);
    color: var(--color-principal);
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 30px;
    border: solid 2px var(--color-principal-transparente);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--color-principal-transparente);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: 30px;
}

.btn-doc {
    background-color: #ffffff80;
    border: solid 2px var(--fondo-input-focus);
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2px 15px; 
    font-size: 12px;
    height: 51px;      
}

.leave_portal_kiosk-button,
.leave_portal_kiosk-ver-historial-button {
    background-color: var(--color-secundario);
    color: var(--color-principal);
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 30px;
    border: solid 2px var(--color-principal-transparente);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--color-principal-transparente);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 1rem auto;
}

.btn-doc:hover,
.leave_portal_kiosk-back-button:hover,
.leave_portal_kiosk-button:hover,
.leave_portal_kiosk-ver-historial-button:hover {
    background-color: var(--color-principal);
    color: var(--color-secundario);
    transform: scale(1.05);
    box-shadow: 0 6px 14px var(--color-principal-transparente);
}

/* Logo fijo en esquina superior derecha */
.leave_portal_kiosk-logo {
    position: absolute;
    top: 5px;
    right: 20px;
    width: 180px;
    height: auto;
    z-index: 10;
}

/* Información del empleado */
.leave_portal_kiosk-empleado-info {
    text-align: center;
    margin-top: 8%;
}

.leave_portal_kiosk-empleado-info img.mi-clase-img {
    width: 180px;
    height: 160px;
    border-radius: 50%;
    border: solid 3px var(--color-principal-transparente);
    object-fit: cover;
    margin: 1.5rem 0 50px;
}

.leave_portal_kiosk-nombre-empleado {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-principal);
}

/* Tabla historial */
.leave_portal_kiosk-historial-table {
    width: 100%;
}

.leave_portal_kiosk-historial-table th,
.leave_portal_kiosk-historial-table td {
    text-align: center;
    vertical-align: middle;
}

.leave_portal_kiosk-historial-table thead {
    background-color: #f1f1f1;
}

.leave_portal_kiosk-historial-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Estados */
.leave_portal_kiosk-estado-aprobado,
.leave_portal_kiosk-estado-por-aprobar,
.leave_portal_kiosk-estado-segunda-aprobacion,
.leave_portal_kiosk-estado-rechazado,
.leave_portal_kiosk-estado-cancelado {
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    display: inline-block;
    color: white;
}

.leave_portal_kiosk-estado-aprobado {
    background-color: var(--color-exito);
}

.leave_portal_kiosk-estado-por-aprobar {
    background-color: var(--color-pendiente);
    color: black;
}

.leave_portal_kiosk-estado-segunda-aprobacion{
    background-color: var(--color-pendiente2);
    color: black;
}

.leave_portal_kiosk-estado-rechazado {
    background-color: var(--color-rechazo);
}

.leave_portal_kiosk-estado-cancelado {
    background-color: var(--color-cancelado);
}

/* Formulario */
.leave_portal_kiosk-form-container {
    width: 100%;
    max-width: 900px;
    background-color: transparent;
    padding: 4rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px var(--sombra-suave);
    text-align: left;
    border: 1px solid var(--color-principal-transparente);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.leave_portal_kiosk-form-container:hover {
    box-shadow: 0 12px 24px var(--sombra-hover);
    border-color: #ddd;
}

.leave_portal_kiosk-form-container input,
.leave_portal_kiosk-form-container select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e8daff;
    border-radius: 0.5rem;
    background-color: var(--fondo-claro);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.leave_portal_kiosk-form-container input:focus,
.leave_portal_kiosk-form-container select:focus {
    border-color: var(--color-principal);
    background-color: var(--fondo-input-focus);
}

.leave_portal_kiosk-fechas-flex {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.leave_portal_kiosk-fecha-item {
    flex: 1;
}

/* Modal */
.leave_portal_kiosk-modal-content {
    border-radius: 1rem;
    padding: 1rem;
}

/* Saldo disponible */
.leave_portal_kiosk-saldo-disponible {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #020423;
}

.leave_portal_kiosk-saldo-disponible ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style-type: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.leave_portal_kiosk-saldo-disponible li {
    padding: 1rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 260px;
    text-align: center;
}

.leave_portal_kiosk-saldo-disponible li .fa-umbrella-beach {
    font-size: 1.5rem;
    color: var(--color-azul-icono);
    margin-bottom: 0.5rem;
}

.leave_portal_kiosk-saldo-disponible li .dias-disponibles {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-principal);
}

.leave_portal_kiosk-saldo-disponible li strong {
    color: var(--color-principal);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

