/* ============================================
   MODAL DE INACTIVIDAD PARA ADMINISTRADORES
   ============================================ */

.modal-inactividad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-inactividad-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    padding: 1.5rem 1.2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.6);
    border: 2px solid #3b82f6;
    animation: slideDown 0.4s ease-out, borderGlow 2s ease-in-out infinite;
}

.modal-inactividad-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.modal-inactividad-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-inactividad-content p {
    color: #e0e7ff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.countdown-display {
    background: #ffffff;
    border: 3px solid #ef4444;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    animation: countdownShake 0.5s ease-in-out infinite;
}

#countdown-seconds {
    font-size: 3.5rem;
    font-weight: 900;
    color: #dc2626;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 3px;
    text-shadow: 
        0 0 5px rgba(220, 38, 38, 0.3),
        0 0 10px rgba(220, 38, 38, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: 
        countdownPulse 1s ease-in-out infinite, 
        colorChange 2s ease-in-out infinite,
        glowPulse 1.5s ease-in-out infinite;
}

.countdown-label {
    font-size: 1rem;
    color: #991b1b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.inactividad-hint {
    font-size: 0.85rem !important;
    color: #bfdbfe !important;
    font-style: italic;
    margin-top: 0.8rem !important;
}

.btn-continuar-sesion {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    margin-top: 0.8rem;
    animation: buttonFloat 2s ease-in-out infinite;
}

.btn-continuar-sesion:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.btn-continuar-sesion:active {
    transform: translateY(0) scale(1);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(37, 99, 235, 0.6), 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 20px 60px rgba(37, 99, 235, 0.8), 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

@keyframes countdownShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

@keyframes colorChange {
    0%, 100% {
        color: #dc2626;
    }
    50% {
        color: #ef4444;
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(220, 38, 38, 0.3),
            0 0 10px rgba(220, 38, 38, 0.2),
            2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 0 8px rgba(220, 38, 38, 0.4),
            0 0 15px rgba(220, 38, 38, 0.3),
            2px 2px 4px rgba(0, 0, 0, 0.3);
    }
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-inactividad-content {
        padding: 1.2rem 1rem;
    }
    
    .modal-inactividad-content h2 {
        font-size: 1.3rem;
    }
    
    #countdown-seconds {
        font-size: 3rem;
    }
    
    .countdown-display {
        padding: 1.2rem;
    }
}
