/* تعریف فونت Vazir */
@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazir.eot");
    /* IE9 Compat Modes */
    src: url("../fonts/Vazir.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Vazir.woff2") format("woff2"),
        url("../fonts/Vazir.woff") format("woff"),
        url("../fonts/Vazir.ttf") format("truetype");
    /* Safari, Android, iOS */
    font-weight: normal;
    font-style: normal;
}

/* اعمال فونت Vazir به تمام عناصر صفحه */
body {
    font-family: "Vazir", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f1f1;
    margin: 0;
    padding: 0;
}

/* منوی اصلی */
.main-menu {
    width: 250px;
    height: 100vh;
    background-color: #2f4153;
    color: #fff;
    position: fixed;
    top: 0;
    right: 0;
    padding-top: 20px;
    overflow-y: auto;
    scrollbar-width: none;
    transition: transform 0.3s ease-in-out;
    z-index: 1002;
}

.main-menu::-webkit-scrollbar {
    display: none;
}

/* عکس کاربر */
.user-avatar {
    text-align: center;
    margin-bottom: 15px;
}

.user-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #3c434a;
    object-fit: cover;
}

.main-menu .logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #b9c9d9;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.main-menu a:hover {
    background-color: #3c637e;
}

.main-menuahover {
    background-color: #3c637e;
}

.main-menu .menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.main-menu .menu-item {
    position: relative;
}

.main-menu .menu-item .sub-menu {
    list-style-type: none;
    padding-right: 20px;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
    scrollbar-width: none;
    background-color: #3f5163;
}

.main-menu .menu-item .sub-menu::-webkit-scrollbar {
    display: none;
}

.main-menu .menu-item.active .sub-menu {
    height: auto;
    overflow-y: auto;
}

/* استایل‌های فلش‌های جدید */
.main-menu .menu-item .arrow {
    position: absolute;
    left: 10px;
    top: 12px;
    transition: transform 0.3s;
}

.main-menu .menu-item.active .arrow {
    transform: rotate(180deg);
    /* چرخش فلش به سمت بالا */
}

/* تاپ بار */
.topbar {
    width: calc(100% - 250px);
    background-color: #2f4153;
    color: #fff;
    padding: 0px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.custom-header {
    background-color: #6f42c1;
    color: white;
}

.topbar .menu {
    list-style-type: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
}

.topbar .menu li {
    display: inline-block;
    border-radius: 0;

}

.topbar .menu a {
    color: #fff;
    text-decoration: none;
    padding: 5px 15px;
    transition: background-color 0.3s;
    border-radius: 0;
}

.topbar .menu a:hover {
    background-color: #88a4b8;
    border-radius: 0;
}

/* محتوای اصلی */
.main-content {
    margin-right: 250px;
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    min-height: 95vh;
}

/* لایه overlay برای موبایل */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: opacity 0.3s ease-in-out;
}

/* منوی همبرگری برای موبایل */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1003;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .main-menu {
        transform: translateX(100%);
    }

    .main-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-content {
        margin-right: 0;
    }

    .topbar {
        width: 100%;
    }

    .overlay.active {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }

    .main-menu.active {
        overflow-y: auto;
    }
}

.gradient-card-1 {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.gradient-card-2 {
    background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.gradient-card-3 {
    background: linear-gradient(135deg, #f8961e 0%, #f3722c 100%);
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.gradient-card-4 {
    background: linear-gradient(135deg, #43aa8b 0%, #4d908e 100%);
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.hover-zoom {
    transition: all 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-50 {
    opacity: 0.5;
}