/* --------------------------------
   Session Timer - Idle Warning Modal
   Prefix: st- (session-timer)
-------------------------------- */

.st-overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, background-color 0.25s ease, visibility 0s 0.25s;
    padding: 1rem;
}

.st-overlay--visible {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease, background-color 0.25s ease, visibility 0s;
}

.st-modal {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    max-width: 26rem;
    width: 100%;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.st-overlay--visible .st-modal {
    transform: scale(1);
}

.st-modal__header {
    padding: 1.25rem 1.5rem 0;
    text-align: center;
}

.st-modal__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.875rem;
    background: rgba(240, 173, 78, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e6a033;
}

.st-modal__icon svg {
    width: 24px;
    height: 24px;
}

.st-modal__icon--expired {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.st-modal__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.st-modal__body {
    padding: 0.875rem 1.5rem;
    text-align: center;
}

.st-modal__text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #6b7280;
    margin: 0;
}

.st-modal__countdown {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #e6a033;
    margin-top: 0.625rem;
    font-variant-numeric: tabular-nums;
}

.st-modal__footer {
    padding: 0.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.st-btn-stay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: #4279bc;
    color: #fff;
    transition: background 0.15s, box-shadow 0.15s;
}

.st-btn-stay:hover {
    background: #3568a5;
    box-shadow: 0 1px 4px rgba(66, 121, 188, 0.3);
}

.st-btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 400;
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: transparent;
    color: #6b7280;
    transition: color 0.15s;
    text-decoration: none;
}

.st-btn-logout:hover {
    color: #374151;
}
