﻿/* مخفی کردن نوار منو در حالت دسکتاپ */
#mobileMenu {
    display: none;
}
/* استایل برای صفحه لودینگ */
.glass-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* رنگ پس‌زمینه با شفافیت */
    backdrop-filter: blur(2px); /* ایجاد اثر مات شیشه‌ای */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    /*border-left: 8px solid #000;*/ /* رنگ نوار متحرک */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* پنهان کردن محتوای اصلی تا بارگذاری کامل */
#content {
    display: none;
}


@media only screen and (max-width: 767px) {

    .right-sidenav {
        top: 90px !important;
    }

    .header-carousel {
        height: 200px !important;
    }

    .swiper-container {
        height: 200px !important;
    }

    .swiper-wrapper {
        height: 200px !important;
    }

    .swiper-slide {
        background-size: cover !important;
        background-position: center !important;
    }

    .main-content {
        position: unset !important;
        margin-top: 20px;
    }

    .main-logo {
        text-align: right;
        margin-right: -10px;
    }

    #DivFilterComplex_Options {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

        #DivFilterComplex_Options .custom-switch {
            width: 48%;
            box-sizing: border-box;
            direction: rtl;
        }

    #mobileMenu {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffc107; /* رنگ پس‌زمینه */
        justify-content: space-between; /* فاصله یکنواخت بین آیتم‌ها */
        padding: 2px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        border-top: 2px solid #e0a800; /* حاشیه بالا */
    }

        #mobileMenu .menu-item {
            color: #ffffff; /* رنگ متن و آیکون‌ها سفید */
            text-align: center;
            text-decoration: none;
            flex: 1; /* اندازه مساوی */
            font-size: 12px;
            transition: background-color 0.3s ease;
            padding: 5px 0; /* فضای عمودی داخل آیتم */
            box-sizing: border-box; /* اضافه کردن فضای داخلی به کل اندازه */
            margin: 0 5px; /* فاصله افقی بین آیتم‌ها */
            position: relative; /* برای استفاده از pseudo-element */
        }

            #mobileMenu .menu-item i {
                font-size: 24px;
                margin-bottom: 5px;
                transition: color 0.3s ease;
            }

            #mobileMenu .menu-item::after {
                content: '';
                display: block;
                width: 0; /* خط زیرین به صورت پیش‌فرض غیرفعال است */
                height: 2px;
                background-color: #ffffff; /* رنگ خط زیرین */
                transition: width 0.3s ease; /* انیمیشن برای تغییر عرض */
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
            }

            #mobileMenu .menu-item:hover::after {
                width: 50%; /* عرض خط زیرین هنگام Hover */
                border-radius: 10px;
            }

            #mobileMenu .menu-item:hover {
                background-color: #e0a800; /* تغییر رنگ پس‌زمینه هنگام Hover */
                color: #ffffff; /* رنگ متن و آیکون‌ها سفید */
                border-radius: 10px; /* گوشه‌های گرد */
            }

                #mobileMenu .menu-item:hover i {
                    color: #ffffff; /* رنگ آیکون‌ها سفید */
                }

            /* استایل آیتم منوی فعال */
            #mobileMenu .menu-item.active {
                background-color: #e0a800; /* رنگ پس‌زمینه متمایز */
                color: #ffffff; /* رنگ متن و آیکون‌ها سفید */
                font-weight: bold; /* متن پررنگ‌تر */
                border-radius: 10px; /* گوشه‌های گرد */
            }

                #mobileMenu .menu-item.active i {
                    color: #ffffff; /* آیکون متمایز */
                }



    .sticky-wrapper-menu a.btn.btn-primary {
        width: auto !important;
        height: auto !important;
        padding: 5px !important;
        margin-left: -10px;
        border-radius: 8px;
    }

        .sticky-wrapper-menu a.btn.btn-primary::after {
            content: none !important;
        }

    .NoShowOnMobile {
        display: none !important;
    }

    .bottomMargin {
        height: 100px;
    }
}
