/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-t8t6kemtek] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-t8t6kemtek] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Visibility helpers (driven by Blazor's CSS class on the <dialog>) ─────── */
.components-reconnect-first-attempt-visible[b-9tlvmd7p65],
.components-reconnect-repeated-attempt-visible[b-9tlvmd7p65],
.components-reconnect-failed-visible[b-9tlvmd7p65],
.components-pause-visible[b-9tlvmd7p65],
.components-resume-failed-visible[b-9tlvmd7p65] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-9tlvmd7p65],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-9tlvmd7p65],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-9tlvmd7p65],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-9tlvmd7p65],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-9tlvmd7p65] {
    display: block;
}

/* Keep the pulse visible during both show and retrying */
#components-reconnect-modal.components-reconnect-show .reconnect-pulse[b-9tlvmd7p65],
#components-reconnect-modal.components-reconnect-retrying .reconnect-pulse[b-9tlvmd7p65] {
    display: block;
}

/* ── Dialog backdrop ────────────────────────────────────────────────────────── */
#components-reconnect-modal[b-9tlvmd7p65] {
    border: 0 !important;
    background: transparent;
    padding: 0;
    margin: 15vh auto;
    max-width: 360px;
    width: 90vw;
    outline: none;
    box-shadow: none;
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: reconnect-fade-out-b-9tlvmd7p65 0.4s both;
}

#components-reconnect-modal[open][b-9tlvmd7p65] {
    animation: reconnect-slide-up-b-9tlvmd7p65 0.5s cubic-bezier(.05, .89, .25, 1.02) 0.2s,
               reconnect-fade-in-b-9tlvmd7p65  0.4s ease-in-out 0.2s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-9tlvmd7p65]::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: reconnect-fade-in-b-9tlvmd7p65 0.4s ease-in-out;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.reconnect-card[b-9tlvmd7p65] {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Icon ───────────────────────────────────────────────────────────────────── */
.reconnect-icon-wrap[b-9tlvmd7p65] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.reconnect-icon[b-9tlvmd7p65] {
    width: 52px;
    height: 52px;
    color: #14B8A6;
    animation: reconnect-icon-pulse-b-9tlvmd7p65 2s ease-in-out infinite;
}

.reconnect-pulse[b-9tlvmd7p65] {
    display: none;
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #14B8A6;
    animation: reconnect-ring-b-9tlvmd7p65 2s ease-out infinite;
    opacity: 0;
}

/* ── Text ───────────────────────────────────────────────────────────────────── */
.reconnect-title[b-9tlvmd7p65] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #F1F5F9;
    line-height: 1.4;
}

.reconnect-title.reconnect-error[b-9tlvmd7p65] {
    color: #EF4444;
}

.reconnect-sub[b-9tlvmd7p65] {
    margin: 0;
    font-size: 0.8125rem;
    color: #94A3B8;
    line-height: 1.5;
    max-width: 260px;
}

.reconnect-countdown[b-9tlvmd7p65] {
    font-weight: 700;
    color: #14B8A6;
}

/* ── Button ─────────────────────────────────────────────────────────────────── */
.reconnect-btn[b-9tlvmd7p65] {
    margin-top: 6px;
    padding: 8px 28px;
    border: none;
    border-radius: 8px;
    background: #14B8A6;
    color: #042F2E;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.reconnect-btn:hover[b-9tlvmd7p65]  { background: #0D9488; }
.reconnect-btn:active[b-9tlvmd7p65] { transform: scale(0.97); }

/* ── Keyframes ──────────────────────────────────────────────────────────────── */
@keyframes reconnect-slide-up-b-9tlvmd7p65 {
    from { transform: translateY(24px) scale(0.97); }
    to   { transform: translateY(0)    scale(1); }
}

@keyframes reconnect-fade-in-b-9tlvmd7p65 {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes reconnect-fade-out-b-9tlvmd7p65 {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes reconnect-ring-b-9tlvmd7p65 {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes reconnect-icon-pulse-b-9tlvmd7p65 {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
