/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* 本檔原為 .NET Blazor 模板預設 scaffold 樣式(.page / .sidebar / .top-row 等),
   與專案實際採用的 Nifty 版型衝突,故清空。如需 layout 樣式請改用 Nifty 既有 class
   或寫在 wwwroot/css/*.css。 */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* 本檔原為 .NET Blazor 模板預設 scaffold 樣式(.navbar-toggler / .nav-item / .top-row 等),
   與專案實際採用的 Nifty 版型選單(.mainnav / .nav-link 等)衝突,故清空。 */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-9awv26ftpo],
.components-reconnect-repeated-attempt-visible[b-9awv26ftpo],
.components-reconnect-failed-visible[b-9awv26ftpo],
.components-pause-visible[b-9awv26ftpo],
.components-resume-failed-visible[b-9awv26ftpo],
.components-rejoining-animation[b-9awv26ftpo] {
    display: none;
}

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


#components-reconnect-modal[b-9awv26ftpo] {
    background-color: white;
    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-9awv26ftpo 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-9awv26ftpo 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-9awv26ftpo 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-9awv26ftpo]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-9awv26ftpo 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-9awv26ftpo {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-9awv26ftpo {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-9awv26ftpo {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

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

#components-reconnect-modal p[b-9awv26ftpo] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-9awv26ftpo] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-9awv26ftpo] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-9awv26ftpo] {
        background-color: #6b9ed2;
    }

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

    .components-rejoining-animation div[b-9awv26ftpo] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-9awv26ftpo 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

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

@keyframes components-rejoining-animation-b-9awv26ftpo {
    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: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/BulletinView.razor.rz.scp.css */
/* ============================================================
   BulletinView 專屬樣式
   - 只針對自定 class .bulletin-modal__content,不影響 Bootstrap 標準 modal
   - 透過 Blazor CSS isolation 自動加上 [b-XXXX] scope
   ============================================================ */

/* 字型大小 / 字型 family — 對齊 App.razor 根層設定,避免 Bootstrap reboot 蓋掉 */
.bulletin-modal__content[b-h1nc0i6d1s] {
    font-size: 1.125rem;
    font-family: '微軟正黑體', 'Microsoft JhengHei', sans-serif;
}

.bulletin-modal__content .modal-title[b-h1nc0i6d1s] {
    font-family: '微軟正黑體', 'Microsoft JhengHei', sans-serif;
}

.bulletin-modal__content .btn[b-h1nc0i6d1s] {
    font-size: 1rem;
    font-family: '微軟正黑體', 'Microsoft JhengHei', sans-serif;
}

/* ------------------------------------------------------------
   Modal 高度設定(要調整就改這幾個 rem 數值)
   modal-body 加 overflow-y: auto,讓內容過長時 body 內捲動,
   不會把 footer 推下去或撐破 modal 整體高度。
   ------------------------------------------------------------ */
.bulletin-modal__content[b-h1nc0i6d1s] {
    height: 40rem;
    font-size: 1.125rem !important;
}

.bulletin-modal__content .modal-body[b-h1nc0i6d1s] {
    overflow-y: scroll;
}

/* RWD:平板(< lg / 992px)*/
@media (max-width: 991.98px) {
    .bulletin-modal__content[b-h1nc0i6d1s] {
        height: 32rem;
    }
}

/* RWD:手機(< sm / 576px)— 改為自適應,最高 90vh */
@media (max-width: 575.98px) {
    .bulletin-modal__content[b-h1nc0i6d1s] {
        height: auto;
        max-height: 90vh;
    }
}
