@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';
@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lcdo7z9xd2.bundle.scp.css';
@import '_content/TradingSystem.ClientCore/TradingSystem.ClientCore.66mpc31him.bundle.scp.css';

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-7c1zj6i1sj],
.components-reconnect-repeated-attempt-visible[b-7c1zj6i1sj],
.components-reconnect-failed-visible[b-7c1zj6i1sj],
.components-pause-visible[b-7c1zj6i1sj],
.components-resume-failed-visible[b-7c1zj6i1sj],
.components-rejoining-animation[b-7c1zj6i1sj] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-7c1zj6i1sj],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-7c1zj6i1sj],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-7c1zj6i1sj],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-7c1zj6i1sj],
#components-reconnect-modal.components-reconnect-retrying[b-7c1zj6i1sj],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-7c1zj6i1sj],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-7c1zj6i1sj],
#components-reconnect-modal.components-reconnect-failed[b-7c1zj6i1sj],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-7c1zj6i1sj] {
    display: block;
}


/* 연결 끊김 표면 색 원칙: 회로가 죽은 상태에서도 보여야 하므로 배경/전경은 고정 팔레트,
   다크는 [data-fluent-darkmode] 속성 분기(SSR 렌더 속성이라 토큰/회로 무관 강건).
   버튼/링만 var(토큰, 기존색) 폴백형으로 브랜드 accent 연동 - 토큰은 회로가 끊겨도
   이미 :root 에 주입돼 있어 유효하고, 최초 로드 실패 등 토큰 부재 시엔 기존 파랑으로 폴백. */
#components-reconnect-modal[b-7c1zj6i1sj] {
    background-color: white;
    color: #1f2937;
    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-7c1zj6i1sj 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-7c1zj6i1sj 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-7c1zj6i1sj 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

[data-fluent-darkmode] #components-reconnect-modal[b-7c1zj6i1sj] {
    /* 다크 - 어두운 표면 + 밝은 전경 */
    background-color: #2b2b2b;
    color: #f3f4f6;
}

#components-reconnect-modal[b-7c1zj6i1sj]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-7c1zj6i1sj 0.5s ease-in-out;
    opacity: 1;
}

/* reveal-pending: 모달이 top-layer 로 떠 있어 문서를 inert 로 만들어 상호작용을 차단하지만,
   시각적으로는 완전히 투명하게 유지한다. transient blip 동안 깜빡임 없이 클릭만 차단하기 위한 상태.
   ReconnectModal.razor.js 의 REVEAL_PENDING_CLASS 와 짝. delay 경과 또는 "failed" 시 클래스 제거 ->
   기존 [open] 애니메이션으로 자연스럽게 노출된다. [open] 규칙을 이기도록 id+class+attr 로 specificity 확보. */
#components-reconnect-modal.js-reveal-pending[b-7c1zj6i1sj],
#components-reconnect-modal.js-reveal-pending[open][b-7c1zj6i1sj] {
    opacity: 0;
    animation: none;
}

#components-reconnect-modal.js-reveal-pending[b-7c1zj6i1sj]::backdrop {
    background-color: transparent;
    animation: none;
}

@keyframes components-reconnect-modal-slideUp-b-7c1zj6i1sj {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-7c1zj6i1sj {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-7c1zj6i1sj {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-7c1zj6i1sj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-7c1zj6i1sj] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-7c1zj6i1sj] {
    border: 0;
    background-color: var(--accent-fill-rest, #6b9ed2);
    color: var(--foreground-on-accent-rest, white);
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-7c1zj6i1sj] {
        background-color: var(--accent-fill-hover, #3b6ea2);
    }

    #components-reconnect-modal button:active[b-7c1zj6i1sj] {
        background-color: var(--accent-fill-active, #6b9ed2);
    }

.components-rejoining-animation[b-7c1zj6i1sj] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-7c1zj6i1sj] {
        position: absolute;
        border: 3px solid var(--accent-fill-rest, #0087ff);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-7c1zj6i1sj 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-7c1zj6i1sj] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-7c1zj6i1sj {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 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;
    }
}
