/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Modal de reconexao do circuito Blazor. Renderizado pelo framework, fora do
   alcance dos componentes MudBlazor — por isso o estilo e proprio.
   Consome apenas variaveis do tema ativo. Ver docs/adr/ADR-0012-tema-mudblazor.md. */

.components-reconnect-first-attempt-visible[b-6rofulvrrd],
.components-reconnect-repeated-attempt-visible[b-6rofulvrrd],
.components-reconnect-failed-visible[b-6rofulvrrd],
.components-pause-visible[b-6rofulvrrd],
.components-resume-failed-visible[b-6rofulvrrd],
.components-rejoining-animation[b-6rofulvrrd] {
    display: none;
}

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

#components-reconnect-modal[b-6rofulvrrd] {
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    box-shadow: var(--mud-elevation-8);
    font-family: var(--mud-typography-body1-family);
    opacity: 0;
    animation: components-reconnect-modal-fade-out-b-6rofulvrrd 0.5s both;
}

#components-reconnect-modal[open][b-6rofulvrrd] {
    animation: components-reconnect-modal-fade-in-b-6rofulvrrd 0.5s ease-in-out 0.3s both;
}

#components-reconnect-modal[b-6rofulvrrd]::backdrop {
    background-color: var(--mud-palette-overlay-dark);
}

#components-reconnect-modal p[b-6rofulvrrd] {
    margin: 0;
    text-align: center;
    font-size: var(--mud-typography-body2-size);
    color: var(--mud-palette-text-secondary);
}

#components-reconnect-modal button[b-6rofulvrrd] {
    padding: 0.5rem 1.5rem;
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border: 0;
    border-radius: var(--mud-default-borderradius);
    font: inherit;
    cursor: pointer;
}

#components-reconnect-modal button:hover[b-6rofulvrrd] {
    background-color: var(--mud-palette-primary-darken);
}

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

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

.components-rejoining-animation div[b-6rofulvrrd] {
    position: absolute;
    border: 3px solid var(--mud-palette-primary);
    border-radius: 50%;
    opacity: 1;
    animation: components-rejoining-animation-b-6rofulvrrd 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

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

@keyframes components-reconnect-modal-fade-in-b-6rofulvrrd {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes components-reconnect-modal-fade-out-b-6rofulvrrd {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes components-rejoining-animation-b-6rofulvrrd {
    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: 0; left: 0; width: 80px; height: 80px; opacity: 0; }
}
