/*
 * Refresh-required modal — drawn from JS by refreshDetector.js, so the
 * styles need to live in a regular global stylesheet (not a scoped
 * .razor.css). Uses --pg-* tokens so it tracks the design system without
 * extra wiring.
 */

#refresh-required-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483600; /* well above MudBlazor (1300) and any in-page dialogs */
    background: rgba(20, 20, 28, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: refresh-required-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.refresh-required-dialog {
    background: var(--pg-surface, #ffffff);
    color: var(--pg-text, #1a1a1f);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    padding: 32px 28px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    animation: refresh-required-rise 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.refresh-required-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(45deg, #52509E, #924E8C);
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 16px;
}

.refresh-required-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 20px;
    color: var(--pg-text, #1a1a1f);
}

.refresh-required-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
}

.refresh-required-btn:disabled {
    opacity: 0.7;
    cursor: progress;
}

.refresh-required-error {
    margin-top: 12px;
    font-size: 13px;
    color: var(--pg-error, #c0392b);
}

@keyframes refresh-required-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes refresh-required-rise {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
