/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-6d726p33og] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-6d726p33og] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-x9muxo943d],
.components-reconnect-repeated-attempt-visible[b-x9muxo943d],
.components-reconnect-failed-visible[b-x9muxo943d],
.components-pause-visible[b-x9muxo943d],
.components-resume-failed-visible[b-x9muxo943d],
.components-rejoining-animation[b-x9muxo943d] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-x9muxo943d],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-x9muxo943d],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-x9muxo943d],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-x9muxo943d],
#components-reconnect-modal.components-reconnect-retrying[b-x9muxo943d],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-x9muxo943d],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-x9muxo943d],
#components-reconnect-modal.components-reconnect-failed[b-x9muxo943d],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-x9muxo943d] {
    display: block;
}


#components-reconnect-modal[b-x9muxo943d] {
    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-x9muxo943d 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-x9muxo943d 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-x9muxo943d 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-x9muxo943d]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-x9muxo943d 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-x9muxo943d {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-x9muxo943d {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-x9muxo943d {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-x9muxo943d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-x9muxo943d] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-x9muxo943d] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-x9muxo943d] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-x9muxo943d] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-x9muxo943d] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-x9muxo943d] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-x9muxo943d 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-x9muxo943d] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-x9muxo943d {
    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/Share/MessageBox.razor.rz.scp.css */
.message-box[b-brm7l8gs5m] {
    --accent: #2563a8;
    --bg: #eef4fb;
    --fg: #17324f;

    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-block: 0.5rem;
    background: var(--bg);
    color: var(--fg);
    border-radius: 6px;
    /* logical property: در راست‌به‌چپ خودکار سمت راست می‌شود */
    border-inline-start: 4px solid var(--accent);
    line-height: 1.6;
}

.message-box.success[b-brm7l8gs5m] { --accent: #1f7a4d; --bg: #ecf7f0; --fg: #14402a; }
.message-box.warning[b-brm7l8gs5m] { --accent: #b36b00; --bg: #fff6e5; --fg: #503000; }
.message-box.error[b-brm7l8gs5m]   { --accent: #b3261e; --bg: #fdeceb; --fg: #581410; }

.message-icon[b-brm7l8gs5m] {
    flex: none;
    inline-size: 1.5rem;
    block-size: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-block-start: 0.1rem;
}

.message-body[b-brm7l8gs5m] {
    flex: 1;
    min-inline-size: 0;
}

.message-title[b-brm7l8gs5m] {
    display: block;
    font-weight: 700;
}

.message-text[b-brm7l8gs5m] {
    margin: 0;
}

.message-close[b-brm7l8gs5m] {
    flex: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
}

.message-close:hover[b-brm7l8gs5m] { opacity: 1; }

.message-close:focus-visible[b-brm7l8gs5m] {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    opacity: 1;
}
/* /Components/Pages/Share/MessageHost.razor.rz.scp.css */
.message-host[b-adgwciajs4] {
    position: fixed;
    inset-block-end: 1rem;
    /* در راست‌به‌چپ این سمت چپ صفحه است. برای گوشه مقابل، inset-inline-start بگذارید. */
    inset-inline-start: 1rem;
    z-index: 2000;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    inline-size: min(24rem, calc(100vw - 2rem));
    /* فضای خالی کانتینر نباید کلیک‌های صفحه را بگیرد */
    pointer-events: none;
}

.message-host[b-adgwciajs4]  .message-box {
    pointer-events: auto;
    margin: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    animation: message-enter-b-adgwciajs4 0.2s ease-out;
}

@keyframes message-enter-b-adgwciajs4 {
    from { opacity: 0; transform: translateY(0.5rem); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .message-host[b-adgwciajs4]  .message-box {
        animation: none;
    }
}
