        :root {
            --sidebar-width: 280px;
            --sidebar-collapsed-width: 80px;
            --topbar-height: 70px;
            --primary-color: #7e160d;
            --secondary-color: #0a2b4a;
            --accent-color: #4a89dc;
            --light-bg: #f8f9fa;
            --dark-bg: #343a40;
            --transition-speed: 0.3s;
        }
        
        body {
            overflow-x: hidden;
            background-color: #f5f7fa;
            font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            direction: rtl;
        }
        
        /* نوبار بالایی */
        #topbar {
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            height: var(--topbar-height);
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        #sidebar-toggle {
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            transition: var(--transition-speed);
        }
        
        #sidebar-toggle:hover {
            background-color: rgba(255,255,255,0.1);
        }
        
        .topbar-brand {
            display: flex;
            align-items: center;
            color: white;
            text-decoration: none;
        }
        
        .topbar-brand i {
            font-size: 1.8rem;
            margin-left: 10px;
        }
        
        .user-menu .avatar {
            width: 40px;
            height: 40px;
            background-color: var(--accent-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.1rem;
        }
        
        /* سایدبار */
        #sidebar {
            position: fixed;
            top: 0;
            right: 0;
            width: var(--sidebar-collapsed-width);
            height: 100vh;
            background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            transition: var(--transition-speed);
            z-index: 999;
            overflow-y: auto;
            box-shadow: 3px 0 15px rgba(0,0,0,0.2);
            direction: rtl;
        }
        
        #sidebar.sidebar-expanded {
            width: var(--sidebar-width);
        }
        
        .sidebar-header {
            padding: 25px 20px;
            background: rgba(0,0,0,0.2);
            border-bottom: 1px solid rgba(255,255,255,0.1);
            text-align: center;
            height: var(--topbar-height);
            display: flex;
            align-items: center;
            justify-content: space-between;
            display: none;
        }
        
        #sidebar.sidebar-expanded .sidebar-header {
            display: flex;
        }
        
        .sidebar-header h5 {
            color: white;
            margin: 0;
            font-weight: bold;
        }
        
        .sidebar-close {
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
        }
        
        #sidebar ul {
            padding: 10px 0;
            margin: 0;
            list-style: none;
        }
        
        #sidebar ul li a {
            padding: 15px 20px;
            display: flex;
            align-items: center;
            color: rgba(255,255,255,0.9);
            text-decoration: none;
            transition: var(--transition-speed);
            border-right: 4px solid transparent;
            font-size: 0.95rem;
            white-space: nowrap;
        }
        
        #sidebar ul li a:hover,
        #sidebar ul li a.active {
            background: rgba(255,255,255,0.1);
            border-right: 4px solid var(--accent-color);
            color: #fff;
            padding-right: 25px;
        }
        
        #sidebar ul li a i {
            margin-left: 15px;
            width: 20px;
            text-align: center;
            font-size: 1.1rem;
            min-width: 20px;
        }
        
        #sidebar ul li a .menu-text {
            flex: 1;
            display: none;
        }
        
        #sidebar.sidebar-expanded ul li a .menu-text {
            display: block;
        }
        
        #sidebar ul li a .menu-arrow {
            transition: var(--transition-speed);
            display: none;
            margin-right: 10px;
        }
        
        #sidebar.sidebar-expanded ul li a .menu-arrow {
            display: block;
        }
        
        #sidebar ul li a[aria-expanded="true"] .menu-arrow {
            transform: rotate(180deg);
        }
        
        /* زیرمنوها */
        .sub-menu {
            background: rgba(0,0,0,0.15);
            padding-right: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        
        #sidebar.sidebar-expanded .sub-menu {
            padding-right: 30px;
        }
        
        .sub-menu.show {
            max-height: 500px;
        }
        
        .sub-menu a {
            padding: 12px 20px !important;
            font-size: 0.9rem !important;
            border-right: 3px solid transparent !important;
        }
        
        .sub-menu a:hover {
            border-right: 3px solid var(--accent-color) !important;
            background: rgba(255,255,255,0.05) !important;
        }
        
        /* محتوای اصلی */
        #content {
            margin-top: var(--topbar-height);
            margin-right: var(--sidebar-collapsed-width);
            padding: 25px;
            transition: var(--transition-speed);
            min-height: calc(100vh - var(--topbar-height));
        }
        
        #sidebar.sidebar-expanded ~ #content {
            margin-right: var(--sidebar-width);
        }
        
        /* استایل برای موبایل */
        @media (max-width: 991.98px) {
            #sidebar {
                right: -var(--sidebar-width);
                width: var(--sidebar-width);
            }
            
            #sidebar.sidebar-expanded {
                right: 0;
            }
            
            #content {
                margin-right: 0;
            }
            
            #mobile-overlay {
                display: none;
                position: fixed;
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;
                background: rgba(0,0,0,0.5);
                z-index: 998;
            }
            
            #sidebar.sidebar-expanded ~ #mobile-overlay {
                display: block;
            }
        }
        
        /* منوی کاربر - راست چین */
        .user-menu .dropdown-menu {
            background-color: #0a2b4a;
            border: none;
            padding: 10px 0;
            min-width: 250px;
            left: 0 !important;
            right: auto !important;
            text-align: right;
            direction: rtl;
        }
        
        .user-menu .dropdown-item {
            color: rgba(255,255,255,0.8);
            padding: 10px 20px;
            transition: var(--transition-speed);
            text-align: right;
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }
        
        .user-menu .dropdown-item i {
            margin-left: 10px;
            margin-right: 0;
        }
        
        .user-menu .dropdown-item:hover {
            background-color: rgba(255,255,255,0.1);
            color: #fff;
        }
        
        .user-menu .dropdown-divider {
            border-color: rgba(255,255,255,0.2);
            margin: 8px 0;
        }
        
        /* انیمیشن‌ها */
        .blink1 {
            animation: blinker 0.9s infinite;
            color: rgb(255, 0, 0);
            font-size: 15px;
        }
        
        .blink2 {
            animation: blinker 0.6s infinite;
            color: rgb(238, 255, 0);
            font-size: 15px;
        }
        
        @keyframes blinker {
            50% { opacity: 0; }
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
            }
        }
        
        .reports-btn {
            animation: pulse 2s infinite;
        }
        
        .reports-btn:hover {
            animation: none;
            background-color: #ff9800 !important;
            border-color: #ff9800 !important;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4) !important;
        }
        
        /* جداکننده */
        .menu-divider {
            height: 1px;
            background: rgba(255,255,255,0.1);
            margin: 8px 20px;
        }
        
        /* حل مشکل collapse در سایدبار */
        .collapse:not(.show) {
            display: none;
        }
        
        .collapse.show {
            display: block;
        }


        /* استایل برای موبایل */
@media (max-width: 991.98px) {
    #sidebar {
        right: -100%;  /* تغییر از var(--sidebar-width) به 100% */
        width: var(--sidebar-width);
    }
    
    #sidebar.sidebar-expanded {
        right: 0;
    }
    
    #content {
        margin-right: 0;
    }
    
    #mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .sidebar-expanded ~ #mobile-overlay {
        display: block;
    }
}



    
.footer-image {
  text-align: center;
  padding: 20px;
  margin: 15px 0;
  background-color: rgba(255, 255, 255, 0.5); 
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease; 
}

.footer-img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}


.footer-image:hover {
  background-color: rgba(255, 255, 255, 0.9); /
}

.footer-image:hover .footer-img {
  transform: scale(1.3); 
}

.footer-color {
    background-color: #0a2b4a !important;
    color: #ffffff;
}

.designer-box {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 1px solid #ffc107;
    color: #f8f9fa;
    font-family: 'Vazir', sans-serif;
    transition: all 0.3s ease-in-out;
}
.designer-box:hover {
    background: linear-gradient(135deg, #3e4f60, #4b5b6b);
    transform: scale(1.02);
}


    :root {
        --primary-dark: #0a2463;
        --primary-light: #3e92cc;
    }
    
    .bg-primary-dark {
        background-color: var(--primary-dark) !important;
    }
    
    .text-primary-light {
        color: var(--primary-light) !important;
    }
    
    footer {
        font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    footer a {
        transition: all 0.3s ease;
    }
    
    footer a:hover {
        color: var(--primary-light) !important;
        padding-right: 5px;
    }
    
    .social-links .btn {
        width: 32px;
        height: 32px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .social-links .btn:hover {
        background-color: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-2px);
    }
    
    .newsletter .form-control {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .newsletter .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
    
    @media (max-width: 991.98px) {
        .footer-brand {
            text-align: center;
        }
        
        .footer-brand img {
            margin: 0 auto;
        }
        
        .col-md-6 {
            margin-bottom: 2rem;
        }
    }
    
    @media (max-width: 767.98px) {
        .row > div {
            text-align: center;
        }
        
        .d-flex.align-items-start {
            justify-content: center;
        }
        
        .social-links {
            justify-content: center !important;
        }
        
        .newsletter {
            max-width: 300px;
            margin: 0 auto;
        }
    }