/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* === Visibility Rules === */
.components-reconnect-first-attempt-visible[b-6sy3mru3uh],
.components-reconnect-repeated-attempt-visible[b-6sy3mru3uh],
.components-reconnect-failed-visible[b-6sy3mru3uh],
.components-pause-visible[b-6sy3mru3uh],
.components-resume-failed-visible[b-6sy3mru3uh] {
    display: none;
}

/* Erster Versuch — nur bei show OHNE retrying */
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-6sy3mru3uh] {
    display: flex;
}

/* Retrying überschreibt first-attempt */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-6sy3mru3uh] {
    display: none;
}
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-6sy3mru3uh] {
    display: flex;
}

/* Failed */
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-6sy3mru3uh] {
    display: flex;
}
#components-reconnect-modal.components-reconnect-failed .components-reconnect-first-attempt-visible[b-6sy3mru3uh],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-repeated-attempt-visible[b-6sy3mru3uh] {
    display: none;
}

/* Paused / Resume failed */
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-6sy3mru3uh] {
    display: flex;
}
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-6sy3mru3uh] {
    display: flex;
}

/* === Fullscreen overlay === */
#components-reconnect-modal[b-6sy3mru3uh] {
    display: none;
    pointer-events: none;
}

#components-reconnect-modal[open][b-6sy3mru3uh] {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    color: #1a1a1a;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    animation: reconnect-fadeIn-b-6sy3mru3uh 0.4s ease-in-out both;
}

.dark #components-reconnect-modal[b-6sy3mru3uh],
#components-reconnect-modal:is(.dark *)[b-6sy3mru3uh] {
    background: rgba(20, 25, 35, 0.98);
    color: #e5e5e5;
}

#components-reconnect-modal[b-6sy3mru3uh]::backdrop {
    background: transparent;
}

/* === Container === */
.components-reconnect-container[b-6sy3mru3uh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
}

/* === Logo mit Breathing Glow === */
.components-reconnect-logo-wrap[b-6sy3mru3uh] {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: reconnect-breathe-b-6sy3mru3uh 2.5s ease-in-out infinite;
}

.components-reconnect-logo[b-6sy3mru3uh] {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

/* === Text === */
.components-reconnect-text[b-6sy3mru3uh] {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.components-reconnect-text strong[b-6sy3mru3uh] {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.components-reconnect-text span[b-6sy3mru3uh] {
    font-size: 1rem;
    opacity: 0.5;
    font-weight: 400;
}

/* === Button === */
#components-reconnect-modal button[b-6sy3mru3uh] {
    border: 0;
    background: #549a38;
    color: #fff;
    padding: 0.75rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

#components-reconnect-modal button:hover[b-6sy3mru3uh] {
    background: #468230;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(84, 154, 56, 0.3);
}

#components-reconnect-modal button:active[b-6sy3mru3uh] {
    transform: translateY(0);
}

/* === Breathing Glow === */
@keyframes reconnect-breathe-b-6sy3mru3uh {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(84, 154, 56, 0),
                    0 0 0 0 rgba(84, 154, 56, 0);
    }
    50% {
        box-shadow: 0 0 30px 8px rgba(84, 154, 56, 0.15),
                    0 0 60px 20px rgba(84, 154, 56, 0.06);
    }
}

@keyframes reconnect-fadeIn-b-6sy3mru3uh {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes reconnect-fadeOut-b-6sy3mru3uh {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
