/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-2s65i2fymi] {
    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-2s65i2fymi] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Blazor reconnect state visibility ── */
.components-reconnect-first-attempt-visible[b-fxdqr17urq],
.components-reconnect-repeated-attempt-visible[b-fxdqr17urq],
.components-reconnect-failed-visible[b-fxdqr17urq],
.components-pause-visible[b-fxdqr17urq],
.components-resume-failed-visible[b-fxdqr17urq],
.components-rejoining-animation[b-fxdqr17urq] {
    display: none;
}

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

/* ── Dialog shell ── */
#components-reconnect-modal[b-fxdqr17urq] {
    width: 26rem;
    max-width: calc(100vw - 2rem);
    padding: 0;
    border: none;
    border-radius: 1.5rem;
    background: transparent;
    overflow: visible;
    margin: 18vh auto;
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: rc-fadeOut-b-fxdqr17urq 0.35s both;

    &[open] {
        animation: rc-slideUp-b-fxdqr17urq 0.5s cubic-bezier(.05, .89, .25, 1.02) 0.1s,
                   rc-fadeIn-b-fxdqr17urq 0.35s ease 0.1s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-fxdqr17urq]::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: rc-fadeIn-b-fxdqr17urq 0.35s ease;
}

/* ── Inner card ── */
.components-reconnect-container[b-fxdqr17urq] {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem 2rem 1.75rem;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 20px 60px rgba(15,23,42,0.18),
        0 0 0 1px rgba(37,99,235,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ── Logo row ── */
.pc-reconnect-logo[b-fxdqr17urq] {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.pc-reconnect-logo svg[b-fxdqr17urq] {
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(37,99,235,0.3));
}

.pc-reconnect-brand[b-fxdqr17urq] {
    display: flex;
    flex-direction: column;
}

.pc-brand-name[b-fxdqr17urq] {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1E3A5F;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.pc-brand-tag[b-fxdqr17urq] {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #94A3B8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

/* ── Divider ── */
.components-reconnect-container[b-fxdqr17urq]::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E2E8F0, transparent);
    margin: -0.5rem 0;
}

/* ── Spinner ── */
.components-rejoining-animation[b-fxdqr17urq] {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.pc-spin-ring[b-fxdqr17urq] {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.pc-spin-outer[b-fxdqr17urq] {
    inset: 0;
    border-top-color: #2563EB;
    border-right-color: #2563EB;
    animation: rc-spin-b-fxdqr17urq 0.9s linear infinite;
}

.pc-spin-inner[b-fxdqr17urq] {
    inset: 10px;
    border-bottom-color: #6366F1;
    border-left-color: #6366F1;
    animation: rc-spin-b-fxdqr17urq 1.3s linear infinite reverse;
}

.pc-spin-pulse[b-fxdqr17urq] {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #6366F1);
    animation: rc-pulse-b-fxdqr17urq 1.8s ease-in-out infinite;
}

/* ── Status text ── */
.pc-reconnect-status[b-fxdqr17urq] {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pc-status-text[b-fxdqr17urq] {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    line-height: 1.5;
}

.pc-status-icon[b-fxdqr17urq] {
    font-size: 1rem;
    color: #2563EB;
    font-weight: 700;
    animation: rc-spin-b-fxdqr17urq 2s linear infinite;
}

.pc-status-warn .pc-status-icon[b-fxdqr17urq] {
    animation: none;
    color: #E76F51;
}

.pc-status-error .pc-status-icon[b-fxdqr17urq] {
    animation: none;
    color: #EF4444;
}

.pc-status-warn[b-fxdqr17urq] { color: #92400E; }
.pc-status-error[b-fxdqr17urq] { color: #991B1B; }

.pc-status-text strong[b-fxdqr17urq] {
    font-weight: 700;
    color: #1E3A5F;
}

/* ── Action buttons ── */
.pc-reconnect-actions[b-fxdqr17urq] {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
}

.pc-btn[b-fxdqr17urq] {
    width: 100%;
    border: none;
    border-radius: 0.75rem;
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pc-btn-primary[b-fxdqr17urq] {
    background: linear-gradient(135deg, #2563EB 0%, #1E3A5F 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.pc-btn-primary:hover[b-fxdqr17urq] {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.pc-btn-primary:active[b-fxdqr17urq] {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.pc-btn-secondary[b-fxdqr17urq] {
    background: #F1F5F9;
    color: #475569;
    box-shadow: none;
}

.pc-btn-secondary:hover[b-fxdqr17urq] {
    background: #E2E8F0;
    color: #1E293B;
}

/* ── Animations ── */
@keyframes rc-slideUp-b-fxdqr17urq {
    from { transform: translateY(24px) scale(0.97); }
    to   { transform: translateY(0) scale(1); }
}

@keyframes rc-fadeIn-b-fxdqr17urq {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes rc-fadeOut-b-fxdqr17urq {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes rc-spin-b-fxdqr17urq {
    to { transform: rotate(360deg); }
}

@keyframes rc-pulse-b-fxdqr17urq {
    0%, 100% { transform: scale(0.8); opacity: 0.6; }
    50%       { transform: scale(1.1); opacity: 1; }
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
    .components-reconnect-container[b-fxdqr17urq] {
        background: #1E293B;
        box-shadow:
            0 4px 6px rgba(0,0,0,0.2),
            0 20px 60px rgba(0,0,0,0.5),
            0 0 0 1px rgba(96,165,250,0.1);
    }

    .components-reconnect-container[b-fxdqr17urq]::before {
        background: linear-gradient(90deg, transparent, #334155, transparent);
    }

    .pc-brand-name[b-fxdqr17urq] { color: #E2E8F0; }
    .pc-brand-tag[b-fxdqr17urq]  { color: #64748B; }

    .pc-status-text[b-fxdqr17urq] { color: #94A3B8; }
    .pc-status-warn[b-fxdqr17urq]  { color: #FED7AA; }
    .pc-status-error[b-fxdqr17urq] { color: #FECACA; }

    .pc-status-text strong[b-fxdqr17urq] { color: #E2E8F0; }

    .pc-btn-secondary[b-fxdqr17urq] {
        background: #334155;
        color: #94A3B8;
    }
    .pc-btn-secondary:hover[b-fxdqr17urq] {
        background: #475569;
        color: #E2E8F0;
    }
}
