
    body {
      font-family: 'Lalezar', sans-serif;
      background-color: #f4f6f9;
      overflow-x: hidden;
    }

    /* Sidebar */
    #sidebar {
      width: 250px;
      background-color: #316497;
      color: #fff;
      height: 100vh;
      position: fixed;
      top: 0;
      right: 0;
      transition: all 0.3s ease;
      z-index: 100;
      overflow-y: auto;
    }

    #sidebar.collapsed {
      margin-right: -250px;
    }

    #sidebar .sidebar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #sidebar .sidebar-header h6 {
      margin: 0;
      font-weight: 700;
      font-size: 1rem;
      color: #fff;
    }

    #closeSidebar {
      background: none;
      border: none;
      color: #fff;
      font-size: 1.3rem;
      display: none;
    }

    #sidebar .profile {
      text-align: center;
      padding: 20px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #sidebar .profile img {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #0d6efd;
    }

    #sidebar .profile h6 {
      margin-top: 10px;
      font-weight: 600;
      color: #fff;
    }

    #sidebar .nav-link {
      color: #ccc;
      padding: 10px 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    #sidebar .nav-link:hover {
      background-color: #0d6efd;
      color: #fff;
    }

    #sidebar .submenu {
      background-color: #2c3035;
      padding-right: 35px;
    }

    #sidebar .submenu a {
      color: #bbb;
      font-size: 0.9rem;
    }

    /* Main content */
    #main-content {
      margin-right: 250px;
      transition: all 0.3s ease;
    }

    #main-content.collapsed {
      margin-right: 0;
    }

    /* Header */
    header {
      background-color: #fff;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 20px;
      position: sticky;
      top: 0;
      z-index: 99;
    }

    header .btn-toggle {
      background: none;
      border: none;
      font-size: 1.4rem;
      color: #212529;
    }

    header .logo {
      font-weight: 700;
      color: #0d6efd;
      font-size: 1.2rem;
    }

    header .logout-btn {
      background-color: #dc3545;
      border: none;
      color: #fff;
      padding: 6px 15px;
      border-radius: 6px;
      font-size: 0.9rem;
    }

    /* Overlay & Mobile */
    @media (max-width: 768px) {
      #sidebar {
        right: -250px;
        transition: right 0.3s ease;
      }

      #sidebar.show {
        right: 0;
      }

      #main-content {
        margin-right: 0;
      }

      #closeSidebar {
        display: inline;
      }

      .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 50;
        display: none;
      }

      .overlay.active {
        display: block;
      }




    }
 


    .main-table {
      margin-right: 250px; /* عرض سایدبار */
      transition: margin 0.3s;
    }
    
    #sidebar.collapsed ~ .main-table {
      margin-right: 70px; /* وقتی سایدبار جمع شد */
    }
    
    @media (max-width:768px){
      .main-table {
        margin-right:0; /* موبایل جدول کل عرض را می‌گیرد */
      }
    }
    