/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-eoni0wsl1y],
.components-reconnect-repeated-attempt-visible[b-eoni0wsl1y],
.components-reconnect-failed-visible[b-eoni0wsl1y],
.components-pause-visible[b-eoni0wsl1y],
.components-resume-failed-visible[b-eoni0wsl1y],
.components-rejoining-animation[b-eoni0wsl1y] {
    display: none;
}

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


/* Hinweis oben statt Dialog (#195); bei „failed“/„paused“ blockierend in der Mitte (Klasse „blocking“). */
#components-reconnect-modal[b-eoni0wsl1y] {
    position: fixed;
    inset: calc(env(safe-area-inset-top, 0px) + 12px) 12px auto 12px;
    margin: 0 auto;
    max-width: 26rem;
    width: auto;
    padding: 10px 14px;
    border: 1px solid var(--line, #d8e0dc);
    border-radius: 14px;
    background: var(--panel, #fff);
    color: var(--ink, #17221d);
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

#components-reconnect-modal.blocking[b-eoni0wsl1y] {
    inset: 0;
    margin: 20vh auto auto;
    max-width: 20rem;
    padding: 1.5rem;
    text-align: center;
}

#components-reconnect-modal[b-eoni0wsl1y]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-eoni0wsl1y 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-eoni0wsl1y {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-eoni0wsl1y {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-eoni0wsl1y {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-eoni0wsl1y] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

#components-reconnect-modal button[b-eoni0wsl1y] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-eoni0wsl1y] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-eoni0wsl1y] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-eoni0wsl1y] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-eoni0wsl1y] {
        position: absolute;
        border: 3px solid var(--green, #17654c);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-eoni0wsl1y 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-eoni0wsl1y] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-eoni0wsl1y {
    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;
    }
}

/* Hinweis-Modus: eine Zeile mit kleinem Ladekreis. */
#components-reconnect-modal:not(.blocking) .components-reconnect-container[b-eoni0wsl1y] {
    flex-direction: row;
    gap: 10px;
}

#components-reconnect-modal:not(.blocking) .components-rejoining-animation[b-eoni0wsl1y] {
    zoom: 0.25;
    flex: none;
}

#components-reconnect-modal:not(.blocking) p[b-eoni0wsl1y] {
    text-align: left;
}

/* Während der Wiederholungen nur den Countdown zeigen; keine Fokus-Umrandung am Hinweis. */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-eoni0wsl1y] {
    display: none;
}

#components-reconnect-modal:focus[b-eoni0wsl1y],
#components-reconnect-modal:focus-visible[b-eoni0wsl1y] {
    outline: none;
}
