/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-j4ogz0hk9u] {
    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-j4ogz0hk9u] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Synlighetsstyrningen: Blazor sätter tillståndsklasser på dialogen. */
.components-reconnect-first-attempt-visible[b-czs8lly0ly],
.components-reconnect-repeated-attempt-visible[b-czs8lly0ly],
.components-reconnect-failed-visible[b-czs8lly0ly],
.components-pause-visible[b-czs8lly0ly],
.components-resume-failed-visible[b-czs8lly0ly] {
    display: none;
}

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

/* Knappraden är flex när dess tillstånd är aktivt. */
#components-reconnect-modal.components-reconnect-failed .rc-buttons.components-reconnect-failed-visible[b-czs8lly0ly],
#components-reconnect-modal.components-reconnect-paused .rc-buttons.components-pause-visible[b-czs8lly0ly],
#components-reconnect-modal.components-reconnect-resume-failed .rc-buttons.components-resume-failed-visible[b-czs8lly0ly] {
    display: flex;
}

/* Pulsringarna snurrar bara medan vi återansluter. */
#components-reconnect-modal.components-reconnect-failed .rc-rings[b-czs8lly0ly],
#components-reconnect-modal.components-reconnect-paused .rc-rings[b-czs8lly0ly],
#components-reconnect-modal.components-reconnect-resume-failed .rc-rings[b-czs8lly0ly] {
    display: none;
}

#components-reconnect-modal[b-czs8lly0ly] {
    background: var(--surface, #fff);
    width: min(400px, calc(100vw - 48px));
    margin: 22vh auto;
    padding: 30px 28px 26px;
    border: 1px solid var(--line, #E8E9F2);
    border-radius: 18px;
    box-shadow: 0 24px 60px -12px rgba(23, 23, 70, 0.35);
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: rc-fade-out-b-czs8lly0ly 0.4s both;
}

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

#components-reconnect-modal[b-czs8lly0ly]::backdrop {
    background: rgba(23, 23, 70, 0.45);
    backdrop-filter: blur(3px);
    animation: rc-fade-in-b-czs8lly0ly 0.4s ease-in-out;
    opacity: 1;
}

@keyframes rc-slide-up-b-czs8lly0ly {
    0% { transform: translateY(26px) scale(0.97); }
    100% { transform: translateY(0); }
}

@keyframes rc-fade-in-b-czs8lly0ly {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes rc-fade-out-b-czs8lly0ly {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.components-reconnect-container[b-czs8lly0ly] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Loggan med pulsringar runt navy-plattan. */
.rc-logo[b-czs8lly0ly] {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.rc-tile[b-czs8lly0ly] {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--navy, #171746);
    /* Märket ärver textfärgen — vitt L mot den mörka plattan. */
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.rc-rings span[b-czs8lly0ly] {
    position: absolute;
    inset: 0;
    margin: auto;
    border: 2px solid var(--magenta, #E52D6F);
    border-radius: 50%;
    animation: rc-ring-b-czs8lly0ly 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.rc-rings span:nth-child(2)[b-czs8lly0ly] {
    animation-delay: -0.9s;
}

@keyframes rc-ring-b-czs8lly0ly {
    0% { width: 44px; height: 44px; opacity: 0; }
    10% { opacity: 0.7; }
    100% { width: 84px; height: 84px; opacity: 0; }
}

#components-reconnect-modal p[b-czs8lly0ly] {
    margin: 0;
    text-align: center;
}

.rc-title[b-czs8lly0ly] {
    font-family: var(--display, inherit);
    font-weight: 700;
    font-size: 16.5px;
    color: var(--ink, #171746);
    line-height: 1.4;
}

.rc-sub[b-czs8lly0ly] {
    font-family: var(--ui, inherit);
    font-size: 13px;
    color: var(--text-sec, #565A7A);
    line-height: 1.55;
}

.rc-buttons[b-czs8lly0ly] {
    display: none;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
