/* استایل اسکرول */ .custom-scroll::-webkit-scrollbar { width: 5px; } .custom-scroll::-webkit-scrollbar-track { background: #4f46e5; border-radius: 10px; } .custom-scroll::-webkit-scrollbar-thumb { background: #818cf8; border-radius: 10px; } .custom-scroll::-webkit-scrollbar-thumb:hover { background: #c7d2fe; } .custom-scroll { scrollbar-width: thin; scrollbar-color: #818cf8 #4f46e5; } /* ============================================ */ /* استایل‌های سایدبار */ /* ============================================ */ .sidebar-main { transition: transform 0.3s ease, opacity 0.3s ease; } /* بک‌دراپ */ .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 998; } .sidebar-overlay.active { display: block; } /* ========== موبایل (عرض کمتر از 1024px) ========== */ @media (max-width: 1023px) { .sidebar-main { position: fixed; top: 0; left: 0; width: 280px !important; height: 100vh; z-index: 999; transform: translateX(-100%); opacity: 0; box-shadow: 2px 0 20px rgba(0,0,0,0.3); overflow-y: auto; } .sidebar-main.open { transform: translateX(0); opacity: 1; } } /* ========== دسکتاپ (عرض بیشتر از 1024px) ========== */ @media (min-width: 1024px) { .sidebar-main { transform: translateX(0) !important; opacity: 1 !important; position: relative !important; width: 256px !important; height: 100% !important; box-shadow: none !important; } .sidebar-overlay { display: none !important; } }