/* ============================================
   MenuSidebar.css - استایل منوی کشویی با شفافیت متعادل
   ============================================ */

.MenuSidebar {
    position: fixed;
    top: 0;
    right: -280px;
    height: 100vh;
    width: var(--menu-width, 280px);
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
    display: flex;
    transition: right var(--transition-slow, 0.4s cubic-bezier(0.4, 0, 0.2, 1));
}

.MenuSidebar .menu-content {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    border-radius: 0;
    padding-top: var(--gap-sm, 0.5rem);
    overflow-y: auto;
    border-right: var(--border-thin, 1px) solid rgba(255,255,255,0.25);
}

.MenuSidebar.show {
    right: 0;
}

.MenuSidebar .close-btn {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.05);
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    border-radius: 0;
    color: var(--text-dark, #333);
    transition: all var(--transition-md, 0.3s ease);
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.MenuSidebar .close-btn:hover {
    background: rgba(0,0,0,0.1);
}

.MenuSidebar ul {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 4.5rem;
}

.MenuSidebar li {
    width: 100%;
}

.MenuSidebar li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem var(--gap-xl, 1.5rem);
    color: var(--text-dark, #222);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-fast, 0.2s ease);
    border-bottom: var(--border-thin, 1px) solid rgba(0,0,0,0.05);
}

.MenuSidebar li a:hover {
    background: rgba(74, 144, 226, 0.15);
    padding-right: var(--gap-2xl, 2rem);
}

/* ===== دکمه منو در نوار بالا ===== */
.TopIcons .menu-icon {
    cursor: pointer;
    font-size: 1.75rem;
    padding: 0.4rem 0.7rem;
    border: none;
    background: none;
    border-radius: 0;
    transition: all var(--transition-md, 0.3s ease);
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.TopIcons .menu-icon:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* ===== پس‌زمینه تیره ===== */
.MenuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-md, 0.4s ease);
}

.MenuOverlay.show {
    display: block;
    opacity: 1;
}

/* ===== جلوگیری از پرش صفحه ===== */
body.menu-open {
    overflow: hidden;
}