/* Sidebar */

.sidebar {
  width: 240px;
  flex: 0 0 240px;
}

.sidebar__wrap {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  scrollbar-width: none;
}

/* Sidebar Left */

.sidebar__menu-top {
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.sidebar__menu-top li {
  position: relative;
  overflow: hidden;
}

.sidebar__menu-top li:nth-child(n + 3) a {
  display: block;
  padding-left: 52px !important;
  line-height: normal;
}

.sidebar__menu-top li:nth-child(n + 3) a::after {
  position: absolute;
  content: "";
  width: 24px;
  height: 24px;
  left: 16px;
  top: 16px;
  background-color: currentColor;
  display: inline-block;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.sidebar__menu-top li:nth-child(3) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-3.svg");
  mask-image: url("../images/icons/sidebar-3.svg");
}

.sidebar__menu-top li:nth-child(4) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-4.svg");
  mask-image: url("../images/icons/sidebar-4.svg");
}

.sidebar__menu-top li:nth-child(5) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-5.svg");
  mask-image: url("../images/icons/sidebar-5.svg");
}

.sidebar__menu-top li:nth-child(6) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-6.svg");
  mask-image: url("../images/icons/sidebar-6.svg");
}

.sidebar__menu-top li:nth-child(7) a::after {
  -webkit-mask-image: url("../images/icons/sidebar-7.svg");
  mask-image: url("../images/icons/sidebar-7.svg");
}

.sidebar__menu-top li:nth-child(n + 3)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.sidebar__menu-top li:nth-child(n + 3):hover::before {
  left: 100%;
}

.sidebar__menu-top li a {
  color: var(--primary-text-color);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}

.sidebar__menu-top li:nth-child(1),
.sidebar__menu-top li:nth-child(2) {
  margin-bottom: 10px;
}

.sidebar__menu-top li:nth-child(1) a,
.sidebar__menu-top li:nth-child(2) a {
  position: relative;
  padding: 6px 10px 6px 90px;
  display: block;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 5px 0 10px 0 rgba(0, 0, 0, 0.7);
  background:
    linear-gradient(90deg, #430870 0%, rgba(67, 8, 112, 0) 53.24%, #fcc211 100%),
    linear-gradient(90deg, #2c1575 47%, #7f0dce 100%);
}

.sidebar__menu-top li:nth-child(1) img {
  position: absolute;
  display: block;
  bottom: 0;
  left: 11px;
}

.sidebar__menu-top li:nth-child(2) img {
  position: absolute;
  display: block;
  bottom: 2px;
  left: 1px;
}

.sidebar__menu-top a {
  position: relative;
  width: 100%;
}

.sidebar__menu-top a > img {
  display: block;
  will-change: transform;
  transition: all var(--secondary-transition);
  transform: scale(1);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.sidebar__menu-top li:nth-child(n + 3) a {
  min-height: 56px;
  padding: 8px 0 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tertiary-text-color);
}

.sidebar__menu-top li:nth-child(5) a {
  position: relative;
}

.sidebar__menu-top li:nth-child(5) a::before {
  content: "8";
  position: absolute;
  top: 8px;
  left: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #fa5926;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-text-color);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  z-index: 1;
}

.sidebar__menu-center {
  margin: 10px auto 20px auto;
  max-width: 220px;
  position: relative;
  display: flex;
  padding: 20px 0 20px 10px;
  align-items: center;
  border-radius: 5px;
  background-color: #4d4d76;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.3) inset,
    0 3px 1px 0 #121720;
}

.sidebar__menu-center > span {
  max-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--primary-text-color);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}

.sidebar__menu-center > span > span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 400;
}

.sidebar__menu-center > img {
  position: absolute;
  display: block;
  width: 84px;
  min-height: 99px;
  right: 9px;
  bottom: 0;
}

.sidebar-line {
  display: block;
  height: 1px;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.sidebar__menu-top a:hover > img,
.sidebar__menu-top a:active > img,
.sidebar__menu-top a:focus > img {
  transform: scale(1.05);
}

.sidebar__menu-top li:nth-child(n + 3) a:hover,
.sidebar__menu-top li:nth-child(n + 3) a:active,
.sidebar__menu-top li:nth-child(n + 3) a:focus {
  color: var(--primary-text-color);
}

/* Nav */

.sidebar__nav {
  margin-top: 20px;
  padding: 0 10px 10px 10px;
  position: relative;
  overflow: hidden;
}

.sidebar__nav-button {
  min-height: 38px;
  color: var(--secondary-text-color);
  text-align: left;
  position: relative;
  white-space: normal;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  padding: 8px 36px 8px 0;
  background-color: transparent;
}

.sidebar__nav-button:before {
  content: "";
  background: url(../images/icons/icon-arrow-yellow.svg);
  background-repeat: no-repeat no-repeat;
  background-position: center center;
  background-size: contain;
  position: absolute;
  top: 2px;
  bottom: 0;
  right: 16px;
  top: 0;
  transform: rotateX(0);
  width: 12px;
}

.sidebar__nav-button:hover,
.sidebar__nav-button:active {
  opacity: 0.8;
}

.sidebar__nav-button.is-open:before {
  transform: rotateX(180deg);
}

.sidebar__nav-list {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar__nav-list.is-open {
  padding-top: 6px;
  background-color: transparent;
  max-height: 1400px;
  transition: all 0.4s ease-in-out;
}

.sidebar__nav-list a {
  position: relative;
  padding: 6px 0;
  display: block;
  color: var(--primary-text-color);
  background-color: transparent;
}

.sidebar__nav-list a:hover,
.sidebar__nav-list a:active,
.sidebar__nav-list a:focus-visible {
  color: var(--primary-text-hover-color);
}

/* Sidebar Mob */

.sidebar__section-mob {
  display: none;
}

.sidebar__wrap-mob {
  background-color: transparent;
}
