/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* MudBlazor handles structural layout — only Blazor error UI kept here */

#blazor-error-ui[b-krnk8avqr1] {
    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-krnk8avqr1] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-uwxs9innwb],
.components-reconnect-repeated-attempt-visible[b-uwxs9innwb],
.components-reconnect-failed-visible[b-uwxs9innwb],
.components-pause-visible[b-uwxs9innwb],
.components-resume-failed-visible[b-uwxs9innwb],
.components-rejoining-animation[b-uwxs9innwb] {
    display: none;
}

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


#components-reconnect-modal[b-uwxs9innwb] {
    background-color: var(--wpc-surface-raised);
    color: var(--wpc-text-primary);
    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-uwxs9innwb 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-uwxs9innwb 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-uwxs9innwb 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

#components-reconnect-modal button[b-uwxs9innwb] {
    border: 0;
    background-color: var(--wpc-primary);
    color: var(--wpc-primary-contrast);
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-uwxs9innwb] {
        background-color: var(--wpc-primary-hover);
    }

    #components-reconnect-modal button:active[b-uwxs9innwb] {
        background-color: var(--wpc-primary);
    }

/* Autofocus viewfinder bracket animation */
.components-rejoining-animation[b-uwxs9innwb] {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-frame[b-uwxs9innwb] {
    position: absolute;
    inset: 0;
    animation: af-hunt-b-uwxs9innwb 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.af-corner[b-uwxs9innwb] {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--wpc-primary);
    border-style: solid;
}

.af-tl[b-uwxs9innwb] { top: 0; left: 0; border-width: 2px 0 0 2px; }
.af-tr[b-uwxs9innwb] { top: 0; right: 0; border-width: 2px 2px 0 0; }
.af-bl[b-uwxs9innwb] { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.af-br[b-uwxs9innwb] { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.af-dot[b-uwxs9innwb] {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--wpc-primary);
    animation: af-dot-pulse-b-uwxs9innwb 2.2s ease-in-out infinite;
}

@keyframes af-hunt-b-uwxs9innwb {
    0%, 18%       { transform: scale(1);    opacity: 0.5; }
    52%, 68%      { transform: scale(0.65); opacity: 1;   }
    88%, 100%     { transform: scale(1);    opacity: 0.5; }
}

@keyframes af-dot-pulse-b-uwxs9innwb {
    0%, 18%, 88%, 100% { transform: scale(1);   opacity: 0.3; }
    52%, 68%           { transform: scale(2.5); opacity: 1;   }
}
