/* ================================================================================================
   Variables Globales
================================================================================================== */
:root {
    --font-family: 'Poppins', 'sans-serif';
    --color-primary: #020432;
    --color-primary-transparent: #02043236;
    --color-white: #ffffff;
    --color-white-transparent: #ffffff80;
    --shadow-default: 1px 7px 15px var(--color-primary-transparent);
    --shadow-hover: 0 6px 14px var(--color-primary-transparent);
    --shadow-light: 0 2px 5px var(--color-primary-transparent);
    --font-size-base: 16px;
    --font-size-title: 30px;
    --border-radius: 25px;
    --transition-default: 0.3s ease;
    --padding-card: 20px;
}

/* ================================================================================================
   Estilos para el fondo y body
================================================================================================== */
body {
    font-family: var(--font-family);
    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;
    margin: 0;
    min-height: 100vh;
    overflow-y: auto;
}

/* ================================================================================================
   Grid de Empleados
================================================================================================== */
.leave_portal_kiosk-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 50px;
    justify-items: center;
    padding: 10px;
    margin: 15px 5px 5px;
    width: 95%;
}

.leave_portal_kiosk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 250px;
    background-color: var(--color-white-transparent);
    border: 2px solid var(--color-primary-transparent);
    border-radius: var(--border-radius);
    padding: var(--padding-card);
    text-align: center;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color var(--transition-default), color var(--transition-default);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-default);
}

.leave_portal_kiosk-card:hover {
    transform: scale(1.05);
    background-color: var(--color-primary);
    color: var(--color-white);
}

.leave_portal_kiosk-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-transparent);
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
}

.leave_portal_kiosk-name {
    font-size: var(--font-size-base);
    font-weight: bold;
    color: inherit;
}

/* ================================================================================================
   Centrado de Título "Selecciona un empleado"
================================================================================================== */
.leave_portal_kiosk-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 140px; /* Espacio para el header fijo */
}

.leave_portal_kiosk-main h2 {
    text-align: center;
    font-size: var(--font-size-title);
    color: var(--color-primary);
    margin-top: 0;
}

/* ================================================================================================
   Header: Regresar + Búsqueda + Logo
================================================================================================== */
.leave_portal_kiosk-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px 40px;
    border: 1px solid #02043236;
    width: 95%;
    z-index: 1000;
    margin: 15px
}

.leave_portal_kiosk-header-left {
    margin-right: 40px;
}

.leave_portal_kiosk-back-button {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 30px;
    border: 2px solid var(--color-primary-transparent);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--color-primary-transparent);
    transition: background-color var(--transition-default), transform var(--transition-default), box-shadow var(--transition-default);
}

.leave_portal_kiosk-back-button:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.leave_portal_kiosk-header-center {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 2;
    gap: 50px;
}

.leave_portal_kiosk-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1350px;
}

.leave_portal_kiosk-search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 18px;
    pointer-events: none;
}

.leave_portal_kiosk-search-input {
    padding: 10px 20px 10px 55px;
    width: 100%;
    border: 2px solid var(--color-primary-transparent);
    border-radius: 20px;
    font-size: var(--font-size-base);
    outline: none;
    transition: border-color var(--transition-default);
}

.leave_portal_kiosk-search-input:focus {
    border-color: var(--color-primary);
}

.leave_portal_kiosk-logo {
    width: 150px;
    height: auto;
}

/* ================================================================================================
   Media Queries para Responsividad
================================================================================================== */
@media (max-width: 1200px) {
    .leave_portal_kiosk-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .leave_portal_kiosk-card {
        width: 140px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .leave_portal_kiosk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leave_portal_kiosk-card {
        width: 120px;
        height: 200px;
    }

    .leave_portal_kiosk-header {
        flex-direction: column;
        align-items: center;
    }

    .leave_portal_kiosk-header-left {
        margin-right: 0;
    }

    .leave_portal_kiosk-search-wrapper {
        max-width: 100%;
    }

    .leave_portal_kiosk-search-input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .leave_portal_kiosk-grid {
        grid-template-columns: 1fr;
    }

    .leave_portal_kiosk-card {
        width: 100%;
        height: 180px;
    }

    .leave_portal_kiosk-main h2 {
        font-size: 24px;
    }

    .leave_portal_kiosk-logo {
        width: 120px;
    }

    .leave_portal_kiosk-search-input {
        padding: 10px 15px;
    }
}
