* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    background: #f4f6f9;
    direction: rtl;
}
.custom-sidebar,
.custom-sidebar * {
    font-family: 'Vazirmatn', sans-serif;
}


/*.sidebar-header h4 {*/
/*    font-family: 'Vazirmatn', sans-serif !important;*/
/*    font-weight: 700;*/
/*}*/

/* دکمه نارنجی کوچک */
.sidebar-handle {
    position: fixed;
    top: 50%;
    right: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff9800, #ff6f00);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    cursor: pointer;
    z-index: 3000;
    transform: translateY(-50%);
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    font-size: 20px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-handle:hover {
    background: linear-gradient(135deg, #ffa726, #fb8c00);
    transform: translateY(-50%) scale(1.05);
}

/* پنل اصلی */
.custom-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #1e293b;
    color: #fff;
    padding: 20px 18px;
    box-shadow: -6px 0 20px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2999;
    overflow-y: auto;
}

/* حالت باز */
.custom-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-header h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.sidebar-header p {
    margin: 0;
    font-size: 13px;
    color: #cbd5e1;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.nav-link {
    display: block;
    padding: 12px 14px;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.03);
}

.nav-link:hover {
    background: #ff8c00;
    color: #fff;
    transform: translateX(-4px);
}

.main-content {
    padding: 30px;
    margin-right: 0;
    min-height: 100vh;
}

/* برای موبایل */
@media (max-width: 768px) {
    .custom-sidebar {
        width: 240px;
    }

    .main-content {
        padding: 20px;
    }
}
.nav-link.active {
    background: #ff8c00;
    color: #fff;
    font-weight: bold;
}
