/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* --- General Layout Styles --- */
.layout-wrapper[b-omfvjood7y] {
    display: flex;
    height: 100vh;
    overflow: hidden; /* جلوگیری از اسکرول کلی صفحه */
}

.right-sidebar[b-omfvjood7y] {
    width: 250px; /* عرض پیش‌فرض سایدبار در دسکتاپ */
    flex-shrink: 0;
    background-color: #f8f9fa; /* رنگ پس‌زمینه دلخواه */
    overflow-y: auto; /* اسکرول داخلی سایدبار */
    transition: width 0.3s ease-in-out, visibility 0.3s ease-in-out; /* انیمیشن مخفی/نمایان شدن */
    visibility: visible; /* پیش‌فرض قابل مشاهده */
    display: block; /* پیش‌فرض نمایش */
    padding-top: 35px;
}

.main-section[b-omfvjood7y] {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* بخش محتوا باید زیر هدر قرار گیرد */
    min-width: 0; /* برای جلوگیری از مشکلات flexbox */
    overflow: hidden; /* جلوگیری از اسکرول بخش اصلی */

    padding-top: 85px;
}

.main-content-area[b-omfvjood7y] {
    flex-grow: 1;
    padding-left: 20px; /* پدینگ چپ */
    padding-right: 20px; /* پدینگ راست */
    padding-bottom: 20px; /* پدینگ پایین */
    overflow-y: auto; /* اسکرول محتوا */
    min-height: 0; /* برای جلوگیری از مشکلات flexbox */
    /* padding-top به صورت پویا در پایین تنظیم می‌شود */
}

.mobile-bottom-nav[b-omfvjood7y] {
    display: none;
}

/* --- استایل‌های مخصوص موبایل --- */
@media (max-width: 991.98px) { /* برای سایزهای کوچکتر از Medium */
    .layout-wrapper[b-omfvjood7y] {
        flex-direction: column; /* چیدمان ستونی */
    }

    .right-sidebar[b-omfvjood7y] {
        width: 0; /* عرض صفر */
        visibility: hidden; /* مخفی کردن */
        display: none; /* حذف از چیدمان */
        overflow: hidden; /* اطمینان از حذف شدن */
    }

    .main-section[b-omfvjood7y] {
        order: 1; /* بخش اصلی بالاتر قرار گیرد (اختیاری) */
    }

    /* تنظیمات padding-top برای موبایل */
    .main-content-area[b-omfvjood7y] {
        padding-top: 70px; /* ← ارتفاع هدر در موبایل (مثال) */
        padding-bottom: 66px;
        /* padding: 15px; */ /* اگر می خواهید پدینگ کلی موبایل فرق کند */
    }

    .mobile-bottom-nav[b-omfvjood7y] {
        position: fixed;
        z-index: 1200;
        right: 12px;
        bottom: 10px;
        left: 12px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: end;
        min-height: 58px;
        padding: 3px 6px calc(3px + env(safe-area-inset-bottom));
        background: #fff;
        border: 1px solid #f1d36a;
        border-radius: 22px;
        box-shadow: 0 6px 20px rgba(66, 53, 36, .15);
        direction: rtl;
        overflow: visible;
    }

    .mobile-bottom-nav[b-omfvjood7y]::before {
        display: none;
    }

    .mobile-nav-item[b-omfvjood7y] {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        color: #1f1f1d;
        font-size: .64rem;
        font-weight: 600;
        line-height: 1.1;
        text-decoration: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item.mobile-nav-active[b-omfvjood7y],
    .mobile-nav-call:active[b-omfvjood7y] {
        font-weight: 700;
        transform: translateY(-22px);
    }

    .mobile-bottom-nav.mobile-nav-locked[b-omfvjood7y] {
        pointer-events: none;
    }
}
}

/* --- تنظیمات هدر (MudAppBar) --- */
/* فرض می‌کنیم هدر شما از MudAppBar استفاده می‌کند */
/* اگر ارتفاع هدر ثابت نیست، این بخش را با توجه به هدر خودتان تنظیم کنید */

/* این استایل برای تنظیم padding-top عمومی (دسکتاپ) است */
/* اگر از متغیر CSS استفاده نمی‌کنید، مقدار --appbar-h-desktop را اینجا بگذارید */
.layout-wrapper > .main-section > .main-content-area[b-omfvjood7y] {
    /* padding-top: 64px;  <-- این خط را در صورت عدم استفاده از متغیر CSS فعال کنید */
}

/* --- کد زیر را در فایل MainLayout.razor یا یک فایل CSS سراسری قرار دهید --- */
/*
:root {
    --appbar-h-desktop: 64px; // ارتفاع هدر دسکتاپ - مقدار دقیق را بگذارید
    --appbar-h-mobile: 70px;  // ارتفاع هدر موبایل - اگر فرق می کند، مقدار دقیق را بگذارید
}

.main-content-area {
    padding-top: var(--appbar-h-desktop); 
}

@media (max-width: 991.98px) {
    .main-content-area {
        padding-top: var(--appbar-h-mobile); 
    }
}
*/

/* Mobile header offset: avoid the duplicated desktop + mobile top spacing. */
@media (max-width: 991.98px) {
    .main-section[b-omfvjood7y] { padding-top: 0 !important; }
    .main-content-area[b-omfvjood7y] { padding-top: 58px !important; }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.layout-wrapper[b-5mk14sussg] {
    display: flex;
    flex-direction: row-reverse;
    height: 100vh;
    overflow: hidden;
}

.sidebar[b-5mk14sussg] {
    flex: 0 0 250px;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.main-section[b-5mk14sussg] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content-area[b-5mk14sussg] {
    flex: 1 1 auto;
    overflow: auto;
}

.content[b-5mk14sussg] {
    padding-top: 1rem;
}

/* موبایل */
@media (max-width: 768px) {
    .sidebar[b-5mk14sussg] {
        display: none;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-3ypwkr6b4j],
.components-reconnect-repeated-attempt-visible[b-3ypwkr6b4j],
.components-reconnect-failed-visible[b-3ypwkr6b4j],
.components-pause-visible[b-3ypwkr6b4j],
.components-resume-failed-visible[b-3ypwkr6b4j],
.components-rejoining-animation[b-3ypwkr6b4j] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-3ypwkr6b4j],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-3ypwkr6b4j],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-3ypwkr6b4j],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-3ypwkr6b4j],
#components-reconnect-modal.components-reconnect-retrying[b-3ypwkr6b4j],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-3ypwkr6b4j],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-3ypwkr6b4j],
#components-reconnect-modal.components-reconnect-failed[b-3ypwkr6b4j],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-3ypwkr6b4j] {
    display: block;
}


#components-reconnect-modal[b-3ypwkr6b4j] {
    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-3ypwkr6b4j 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-3ypwkr6b4j 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-3ypwkr6b4j 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-3ypwkr6b4j]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-3ypwkr6b4j 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-3ypwkr6b4j {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-3ypwkr6b4j {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-3ypwkr6b4j {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-3ypwkr6b4j] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-3ypwkr6b4j] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-3ypwkr6b4j] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-3ypwkr6b4j] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-3ypwkr6b4j] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-3ypwkr6b4j] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-3ypwkr6b4j] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-3ypwkr6b4j 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-3ypwkr6b4j] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-3ypwkr6b4j {
    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;
    }
}
