:root {
  --sidebar-width: 360px;
  --menub-bg-black:#000000ce;
}

/* Menu Button */
.menu-btn {
    font-size: 20px;
    cursor: pointer;
    z-index: 990;
    color: #F4CD70;
    border: 2px solid #F4cd70;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    background: #00000082;
    align-items: center;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 998;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: calc(var(--sidebar-width) * -1);
  width: var(--sidebar-width);
  height: 100vh;
  overflow: hidden;
  transition: 0.4s;
  z-index: 999;
}

.sidebar.active {
  right: 0;
}

.sidebar.expand {
  width: calc(var(--sidebar-width) * 2);
}

.main-link:hover {letter-spacing:1.2px;}

/* Close Button */
.close-btn {
  position: relative;
  text-align:right;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  color: #ffffff;
  padding-bottom:20px;

}
.close-btn::before{transition:0.35s;}

.close-btn:hover::before{
    transform:rotate(360deg);
}

/* Main Menu */
.main-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--sidebar-width);
  background:var(--menub-bg-black);
  height: 100%;
  padding: 30px;
  z-index:2;
  border-left: 1px solid #313131;
}

.main-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #666;
}

/* .main-link i{transform:rotate(45deg);} */
.main-link i{transform:rotate(-135deg);}

/* Submenu */
.submenu {
  position: absolute;
  top: 0;
  right: var(--sidebar-width);
  width: var(--sidebar-width);
  height: 100%;
  background: var(--menub-bg-black);
  padding: 30px;
  transform: translateX(200%);
  z-index:-1;
  transition: transform 0.4s ease;
  border-left: 1px solid #313131;
}

.submenu.active {
  transform: translateX(0);
  z-index:1;
}

.back-btn, .nested-back {
  margin-bottom: 25px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.submenu a {
  display: block;
  text-decoration: none;
  color: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid #444;
}

.nested-submenu{
  right: calc(var(--sidebar-width) * 2);
  transform: translateX(300%);
  z-index: -1;
}

.nested-link{display:flex !important;justify-content: space-between;}
/* .nested-link i{transform: rotate(45deg);} */
.nested-link i{transform: rotate(-135deg);}

.nested-submenu.nested-active{
  transform: translateX(0);
  z-index: 0;
}

.sidebar.expand.nested-expand{
  width: calc(var(--sidebar-width) * 3);
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 300px;
  }
}


.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

@media (max-width: 991px){

  :root{
    --sidebar-width:100%;
    --menub-bg-black:#000000;
}

  .sidebar{
    width:100%;
    right:-100%;
  }

  .sidebar.active{
    right:0;
  }

  /* Remove desktop expand width */
  .sidebar.expand,
  .sidebar.expand.nested-expand{
    width:100%;
  }

  .main-menu,
  .submenu,
  .nested-submenu{
    width:100%;
    right:0;
    height:100%;
    transition:0.4s ease;
  }

  /* Main Menu */
  .main-menu{
    transform:translateX(0);
    z-index: 0;
  }

  /* First Level */
  .submenu{
    transform:translateX(100%);
    z-index:3;
  }

  .submenu.active{
    transform:translateX(0);
            z-index: 0;
  }

  /* Nested Level */
  .nested-submenu{
    transform:translateX(100%);
    z-index:-1;
  }

  .nested-submenu.nested-active{
    transform:translateX(0);
  }

}