/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-7e4hmcqxd1],
.components-reconnect-repeated-attempt-visible[b-7e4hmcqxd1],
.components-reconnect-failed-visible[b-7e4hmcqxd1],
.components-pause-visible[b-7e4hmcqxd1],
.components-resume-failed-visible[b-7e4hmcqxd1],
.components-rejoining-animation[b-7e4hmcqxd1] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-7e4hmcqxd1],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-7e4hmcqxd1],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-7e4hmcqxd1],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-7e4hmcqxd1],
#components-reconnect-modal.components-reconnect-retrying[b-7e4hmcqxd1],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-7e4hmcqxd1],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-7e4hmcqxd1],
#components-reconnect-modal.components-reconnect-failed[b-7e4hmcqxd1],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-7e4hmcqxd1] {
    display: block;
}

/* L3 elevated dialog in the Kassebua depth recipe (modal: elevated surface +
   border + shadow-modal, 16px radius). */
#components-reconnect-modal[b-7e4hmcqxd1] {
    background-color: var(--ksb-surface-elevated);
    color: var(--ksb-text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 1px solid var(--ksb-border);
    border-radius: 16px;
    box-shadow: var(--ksb-shadow-3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-7e4hmcqxd1 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-7e4hmcqxd1 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-7e4hmcqxd1 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-7e4hmcqxd1]::backdrop {
    background-color: var(--ksb-surface-overlay);
    backdrop-filter: blur(4px);
    animation: components-reconnect-modal-fadeInOpacity-b-7e4hmcqxd1 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-7e4hmcqxd1 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-7e4hmcqxd1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-7e4hmcqxd1 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-7e4hmcqxd1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-7e4hmcqxd1] {
    margin: 0;
    text-align: center;
    color: var(--ksb-text-secondary);
}

/* Secondary-button recipe (control fill + control border, 8px radius). */
#components-reconnect-modal button[b-7e4hmcqxd1] {
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--ksb-border-control);
    background-color: var(--ksb-surface-control);
    color: var(--ksb-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 150ms;
}

    #components-reconnect-modal button:hover[b-7e4hmcqxd1] {
        background-color: var(--ksb-surface-control-hover);
    }

    #components-reconnect-modal button:focus-visible[b-7e4hmcqxd1] {
        outline: none;
        box-shadow: 0 0 0 2px var(--ksb-surface-elevated), 0 0 0 4px var(--ksb-accent-500);
    }

.components-rejoining-animation[b-7e4hmcqxd1] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-7e4hmcqxd1] {
        position: absolute;
        border: 3px solid var(--ksb-accent-500);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-7e4hmcqxd1 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-7e4hmcqxd1] {
            animation-delay: -0.5s;
        }

@media (prefers-reduced-motion: reduce) {
    .components-rejoining-animation div[b-7e4hmcqxd1] {
        animation: none;
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        opacity: 0.5;
    }
}

@keyframes components-rejoining-animation-b-7e4hmcqxd1 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
