/**
 * RIVA Security Patches — Stili UI per componenti di sicurezza
 * Idle timeout warning banner
 */

/* ─── IDLE SESSION WARNING BANNER ──────────────────────────────────────────── */
#riva-idle-warning {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(90deg, #b45309, #92400e);
    color: #fff;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    animation: riva-slide-up 0.3s ease-out;
}

.riva-idle-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

#riva-idle-warning span {
    letter-spacing: 0.02em;
}

#riva-idle-extend {
    background: #fff;
    color: #92400e;
    border: none;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    white-space: nowrap;
}

#riva-idle-extend:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

#riva-idle-extend:active {
    transform: translateY(0);
}

@keyframes riva-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .riva-idle-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
