/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* State-driven visibility (from the Blazor template — do not change) */
.components-reconnect-first-attempt-visible[b-tov2wb3jv5],
.components-reconnect-repeated-attempt-visible[b-tov2wb3jv5],
.components-reconnect-failed-visible[b-tov2wb3jv5],
.components-pause-visible[b-tov2wb3jv5],
.components-resume-failed-visible[b-tov2wb3jv5],
.components-rejoining-animation[b-tov2wb3jv5] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-tov2wb3jv5],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-tov2wb3jv5],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-tov2wb3jv5],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-tov2wb3jv5],
#components-reconnect-modal.components-reconnect-retrying[b-tov2wb3jv5],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-tov2wb3jv5],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-tov2wb3jv5],
#components-reconnect-modal.components-reconnect-failed[b-tov2wb3jv5],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-tov2wb3jv5] {
    display: block;
}

/* ---- POLARIS HUD styling ---- */

#components-reconnect-modal[b-tov2wb3jv5] {
    margin: 20vh auto;
    padding: 0;
    border: 1px solid #1b4563;
    border-radius: 4px;
    background: linear-gradient(160deg, rgba(11, 28, 46, 0.94), rgba(6, 15, 26, 0.98));
    box-shadow: 0 0 34px 2px rgba(95, 212, 255, 0.16);
    color: #d7e9f2;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

#components-reconnect-modal[b-tov2wb3jv5]::backdrop {
    background: rgba(2, 7, 12, 0.78);
    backdrop-filter: blur(4px);
}

.components-reconnect-container[b-tov2wb3jv5] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 42px 26px;
    min-width: 320px;
}

/* HUD corner brackets */
.components-reconnect-container[b-tov2wb3jv5]::before,
.components-reconnect-container[b-tov2wb3jv5]::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
}
.components-reconnect-container[b-tov2wb3jv5]::before {
    top: 3px; left: 3px;
    border-top: 1px solid #3aa6d4;
    border-left: 1px solid #3aa6d4;
}
.components-reconnect-container[b-tov2wb3jv5]::after {
    bottom: 3px; right: 3px;
    border-bottom: 1px solid #3aa6d4;
    border-right: 1px solid #3aa6d4;
}

.jr-label[b-tov2wb3jv5] {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #557a90;
}

.components-reconnect-container p[b-tov2wb3jv5] {
    margin: 0;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #c9f1ff;
    line-height: 1.7;
}

.components-reconnect-container button[b-tov2wb3jv5] {
    padding: 10px 30px;
    background: rgba(13, 44, 64, 0.9);
    border: 1px solid #1b4563;
    border-radius: 4px;
    color: #5fd4ff;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
}

.components-reconnect-container button:hover[b-tov2wb3jv5] {
    background: rgba(95, 212, 255, 0.16);
    box-shadow: 0 0 14px 0 rgba(95, 212, 255, 0.22);
}

/* Rejoining animation: concentric arc-reactor rings */
.components-rejoining-animation[b-tov2wb3jv5] {
    position: relative;
    width: 82px;
    height: 82px;
}

.components-rejoining-animation div[b-tov2wb3jv5] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.components-rejoining-animation div:nth-child(1)[b-tov2wb3jv5] {
    border-top-color: #5fd4ff;
    border-right-color: #5fd4ff;
    animation: jr-spin-b-tov2wb3jv5 1.6s linear infinite;
    filter: drop-shadow(0 0 6px rgba(95, 212, 255, 0.7));
}

.components-rejoining-animation div:nth-child(2)[b-tov2wb3jv5] {
    inset: 14px;
    border-bottom-color: #ffb454;
    animation: jr-spin-rev-b-tov2wb3jv5 2.4s linear infinite;
}

@keyframes jr-spin-b-tov2wb3jv5 { to { transform: rotate(360deg); } }
@keyframes jr-spin-rev-b-tov2wb3jv5 { to { transform: rotate(-360deg); } }
