/*
 * The one-minute warning before an idle session ends (نشست-۰۹).
 *
 * It is deliberately a small card in the corner rather than a modal across the
 * screen: an operator who is reading something should be told, not interrupted,
 * and a dialog that steals focus would itself be the thing that made them lose
 * their place. It never appears while a genuine long operation is running
 * (نشست-۱۰) — that is decided in the script, not here.
 */

.fi-idle-warning {
    position: fixed;
    inset-inline-end: 1.25rem;
    inset-block-end: 1.25rem;
    z-index: 60;
    display: none;
}

.fi-idle-warning-visible {
    display: block;
}

.fi-idle-warning-box {
    max-width: 22rem;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.5);
    background: #1f2937;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.fi-idle-warning-text {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    line-height: 1.9;
    color: #f8fafc;
}

.fi-idle-warning-countdown {
    margin: 0 0 0.7rem;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #fcd34d;
}

.fi-idle-warning-button {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 0;
    border-radius: 0.5rem;
    background: #f59e0b;
    color: #1f2937;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.fi-idle-warning-button:hover {
    background: #d97706;
    color: #f8fafc;
}

@media (max-width: 640px) {
    .fi-idle-warning {
        inset-inline: 0.75rem;
        inset-block-end: 0.75rem;
    }

    .fi-idle-warning-box {
        max-width: 100%;
    }
}
