/* ==========================================================================
   Estilos Generales
   ========================================================================== */

/* Configuración base del body */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #020617;
    color: #F8FAFC;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* ==========================================================================
   Contenedor Principal de Login
   ========================================================================== */

/* Contenedor que alinea la tarjeta de login y el botón */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Tarjeta de login */
.login-card {
    background: linear-gradient(145deg, #1E293B, #0F172A);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 220px;
    animation: fadeIn 0.5s ease-out;
}

/* ==========================================================================
   Elementos de Texto
   ========================================================================== */

/* Títulos principales */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #F8FAFC;
}

/* Etiquetas de formularios */
label {
    margin-bottom: 5px;
    font-size: 12px;
    text-align: left;
    color: #A1A1AA;
    display: block;
}

/* ==========================================================================
   Campos de Entrada y Botones
   ========================================================================== */

/* Estilos generales para inputs */
input {
    width: 100%;
    height: 44px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #64748B;
    border-radius: 5px;
    background: #0F172A;
    color: #F8FAFC;
    font-size: 14px;
    box-sizing: border-box;
}

/* Estilos generales para botones (fuera de la tarjeta de inactividad) */
button {
    width: 144px;
    height: 44px;
    padding: 10px;
    background: #4F46E5;
    border: none;
    border-radius: 5px;
    color: #F8FAFC;
    font-size: 14px;
    cursor: pointer;
    animation: fadeIn 0.5s ease-out;
}

/* ==========================================================================
   Overlay y Loader
   ========================================================================== */

/* Overlay de fondo oscuro */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

/* Loader circular */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

/* ==========================================================================
   Tarjeta de Inactividad
   ========================================================================== */

/* Contenedor principal de la tarjeta de inactividad */
#inactivityCard {
    background: linear-gradient(145deg, #1E293B, #0F172A);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 260px;
    height: 400px;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

/* Estado visible de la tarjeta */
#inactivityCard.show {
    visibility: visible;
    opacity: 1;
}

/* Animación de salida */
#inactivityCard.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Título dentro de la tarjeta */
#inactivityCard h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #F8FAFC;
}

/* Párrafo descriptivo */
#inactivityCard p {
    font-size: 14px;
    color: #A1A1AA;
    margin-bottom: 10px;
}

/* Input de búsqueda dentro de la tarjeta */
#searchInactivity {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #64748B;
    border-radius: 5px;
    background: #0F172A;
    color: #F8FAFC;
    font-size: 14px;
    box-sizing: border-box;
}

/* Estilos base para botones dentro de la tarjeta */
#inactivityCard button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    color: #F8FAFC;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Botón Confirmar */
#confirmInactivityBtn {
    background: #4F46E5;
}

/* Estado deshabilitado del botón Confirmar */
#confirmInactivityBtn:disabled {
    background: #64748B;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botón Cancelar */
#cancelInactivityBtn {
    background: #EF4444;
}

/* Lista de conceptos */
.concept-list-inactivity {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #64748B;
    border-radius: 5px;
    background: #0F172A;
    color: #F8FAFC;
    font-size: 12px;
    flex-grow: 1;
    margin-bottom: 10px;
}

/* Elementos de la lista */
.concept-list-inactivity div {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

/* Filas impares */
.concept-list-inactivity div.odd {
    background-color: #1E293B;
}

/* Filas pares */
.concept-list-inactivity div.even {
    background-color: #253044;
}

/* Elemento seleccionado */
.concept-list-inactivity div.selected {
    background: linear-gradient(90deg, #14B8A6, #25dfc0, #14B8A6);
    color: #F8FAFC;
}

/* Concepto deshabilitado */
.concept-list-inactivity div.disabled {
    color: #77777c;
    cursor: not-allowed;
}

/* Mensaje de "sin resultados" */
.concept-list-inactivity .no-results {
    padding: 12px 15px;
    color: #A1A1AA;
    text-align: center;
    font-style: italic;
}

/* ==========================================================================
   Animaciones
   ========================================================================== */

/* Animación de entrada para elementos */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de rotación para el loader */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}