/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Återanslutningsrutan: samma mörka stil som resten, svävar (får skugga). Klasserna styrs av Blazor. */

.components-reconnect-first-attempt-visible[b-o6liu9glev],
.components-reconnect-repeated-attempt-visible[b-o6liu9glev],
.components-reconnect-failed-visible[b-o6liu9glev],
.components-pause-visible[b-o6liu9glev],
.components-resume-failed-visible[b-o6liu9glev],
.components-rejoining-animation[b-o6liu9glev] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-o6liu9glev],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-o6liu9glev],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-o6liu9glev],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-o6liu9glev],
#components-reconnect-modal.components-reconnect-retrying[b-o6liu9glev],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-o6liu9glev],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-o6liu9glev],
#components-reconnect-modal.components-reconnect-failed[b-o6liu9glev],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-o6liu9glev] {
    display: block;
}

#components-reconnect-modal[b-o6liu9glev] {
    background: #111111;
    color: #ffffff;
    width: 20rem;
    max-width: calc(100vw - 32px);
    margin: 20vh auto;
    padding: 28px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    font: 14px/20px "Inter", system-ui, sans-serif;
}

#components-reconnect-modal[b-o6liu9glev]::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.components-reconnect-container[b-o6liu9glev] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#components-reconnect-modal p[b-o6liu9glev] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-o6liu9glev] {
    height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

#components-reconnect-modal button:hover[b-o6liu9glev] {
    background: #e6e6e6;
}

.components-rejoining-animation[b-o6liu9glev] {
    position: relative;
    width: 64px;
    height: 64px;
}

.components-rejoining-animation div[b-o6liu9glev] {
    position: absolute;
    border: 2px solid #c6f24e;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-o6liu9glev 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-o6liu9glev] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-o6liu9glev {
    0% { top: 32px; left: 32px; width: 0; height: 0; opacity: 0; }
    4.9% { top: 32px; left: 32px; width: 0; height: 0; opacity: 0; }
    5% { top: 32px; left: 32px; width: 0; height: 0; opacity: 1; }
    100% { top: 0; left: 0; width: 64px; height: 64px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .components-rejoining-animation div[b-o6liu9glev] { animation: none; }
}
