#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(6px);
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

#components-reconnect-modal .components-reconnect-show,
#components-reconnect-modal .components-reconnect-failed,
#components-reconnect-modal .components-reconnect-rejected {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected .components-reconnect-rejected {
    display: block;
}

.blazor-message-card {
    display: flex;
    gap: 1rem;
    width: min(100%, 32rem);
    border-radius: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
    color: #0f172a;
}

.blazor-message-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.blazor-message-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.blazor-message-card button {
    margin-top: 1rem;
    border: 0;
    border-radius: 999px;
    background: #0ea5e9;
    color: #ffffff;
    padding: 0.65rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.blazor-message-icon {
    display: flex;
    height: 3rem;
    width: 3rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1001;
    max-width: min(32rem, calc(100vw - 2rem));
    border-radius: 1rem;
    background: #111827;
    color: #ffffff;
    padding: 0.85rem 1rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
    font-size: 0.92rem;
}

#blazor-error-ui .reload {
    margin-left: 0.75rem;
    color: #38bdf8;
    font-weight: 800;
}

#blazor-error-ui .dismiss {
    margin-left: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}
