/* ============================================================
   Wolvex — Idle sign-out warning modal (frontend + admin)
   ============================================================ */

.idle-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.idle-modal.is-open {
    display: flex;
}

.idle-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.7);
    backdrop-filter: blur(2px);
}

.idle-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    margin: var(--space-4);
    background: var(--paper, #fff);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-md, 0 20px 50px -20px rgba(0, 0, 0, 0.5));
    padding: var(--space-6, 32px) var(--space-6, 32px) var(--space-5, 24px);
    text-align: center;
    animation: idle-modal-in 0.25s ease;
}

@keyframes idle-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.idle-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fdecec;
    color: var(--red, #C12025);
    margin-bottom: var(--space-4, 16px);
}

.idle-modal-card h2 {
    font-family: var(--font-display);
    font-size: 1.3em;
    color: var(--navy, #253455);
    margin: 0 0 var(--space-2, 8px);
}

.idle-modal-card p {
    color: var(--ink-soft, #5a6072);
    margin: 0 0 var(--space-3, 12px);
    line-height: 1.5;
}

.idle-modal-countdown {
    font-family: var(--font-display);
    font-size: 1.6em;
    font-weight: 700;
    color: var(--red, #C12025);
    margin-bottom: var(--space-5, 20px) !important;
}

.idle-modal-card .btn {
    width: 100%;
}
