/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-p923769975],
.components-reconnect-repeated-attempt-visible[b-p923769975],
.components-reconnect-failed-visible[b-p923769975],
.components-pause-visible[b-p923769975],
.components-resume-failed-visible[b-p923769975],
.components-rejoining-animation[b-p923769975] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-p923769975],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-p923769975],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-p923769975],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-p923769975],
#components-reconnect-modal.components-reconnect-retrying[b-p923769975],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-p923769975],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-p923769975],
#components-reconnect-modal.components-reconnect-failed[b-p923769975],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-p923769975] {
    display: block;
}


#components-reconnect-modal[b-p923769975] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-p923769975 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-p923769975 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-p923769975 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-p923769975]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-p923769975 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-p923769975 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-p923769975 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-p923769975 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-p923769975] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-p923769975] {
    margin: 0;
    text-align: center;
}

/* White on the old #6b9ed2 measured 2.82:1, against WCAG 1.4.3's 4.5:1 for normal text. The colours
   came from Blazor's stock reconnect modal, and the resting state was the one that failed while its own
   hover state (#3b6ea2, 5.33:1) already passed - so the fix is to rest on the darker blue and darken the
   hover further, rather than to invent a colour.

   This is the one control that matters on a bad connection. D-119: a learner on a train loses signal
   mid-assessment, the circuit dies, this dialog opens and blocks every click, and "Retry" is the only
   way forward. Asking someone with low vision, or anyone in sunlight on a phone, to find a white label
   at 2.82:1 is exactly the wrong place to be saving contrast.

   Nothing in the build could see it: ColourContrastTests covers app.css tokens only, and axe cannot
   measure a <dialog> that is not open, which is why the WCAG pass returned zero violations. */
#components-reconnect-modal button[b-p923769975] {
    border: 0;
    background-color: #3b6ea2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-p923769975] {
        background-color: #2f5880;
    }

    #components-reconnect-modal button:active[b-p923769975] {
        background-color: #3b6ea2;
    }

.components-rejoining-animation[b-p923769975] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-p923769975] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-p923769975 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-p923769975] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-p923769975 {
    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;
    }
}

/* Respect a reduced-motion preference (WCAG 2.2.2, and the operating system setting behind it).

   Everything above this line is Blazor's stock reconnect modal, kept as shipped. The rejoining
   indicator animates INFINITELY, and it is on screen for exactly as long as the circuit takes to come
   back - which on a poor connection is well past the five seconds 2.2.2 allows moving content to run
   without a way to stop it. It is also the one thing a learner sees at the worst moment of their
   session, part-way through a long form, which is not when to show somebody a pulsing ring they have
   asked their machine not to show them.

   The ring is kept, static, rather than hidden: it still marks where the message is. The reconnect
   modal's own slide and fade are dropped to an instant, so the dialog appears rather than moves.
   Added by the accessibility review of 6 August 2026. */
@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-p923769975],
    #components-reconnect-modal.components-reconnect-hide[b-p923769975],
    #components-reconnect-modal.components-reconnect-show[b-p923769975],
    .components-rejoining-animation div[b-p923769975],
    .components-rejoining-animation div:nth-child(2)[b-p923769975] {
        animation: none;
        transition: none;
    }

    .components-rejoining-animation div[b-p923769975] {
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 1;
    }
}
