.sidebar {
  top: 0;
  left: 0;
  bottom: 0;
  width: fit-content;
  display: flex;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.main_sidebar {
  position: relative;
  max-width: 300px;
  height: 100vh;
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1.5px solid #e5e5e5;
}

.menu {
  display: flex;
  align-items: center;
  padding: 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .3s ease;
  color: #000;
  text-decoration: none;

  &.active {
    background-color: #8ad0ffbd;

    .icon {
      background-color: #4085b3;
      color: #fff;
    }
  }

  &:hover {
    background-color: #dcf1ffbd;
  }
}

.icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background-color: #efefef;
}

.user {
  display: flex;
  align-items: center;
  padding: 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .3s ease;
  color: #000;
  position: absolute;
  bottom: 10px;
  left: 0;
  z-index: 9;
}

.avatar {
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  padding: 7px;
  background-color: #efefef;

  &:hover {
    background-color: rgba(215, 215, 215, 0.741)
  }
}

.user_overlay {
  width: 200px;
  height: fit-content;
  background-color: #fff;
  box-shadow: #0000000c 0px 0px 5px;
  position: absolute;
  border: 1px solid #e5e5e5;
  bottom: 60px;
  left: 10px;
  border-radius: 10px;
  padding: 10px;
  cursor: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  h5 {
    font-size: 13px;
    font-weight: 500;
  }

  button {
    border: none;
    background-color: #509ccf;
    width: 100%;
    padding: 7px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .3s ease;
    color: #fff;

    &:hover {
      background-color: #4085b3;
    }

    &:disabled {
      opacity: .5;
      pointer-events: none;
    }
  }
}

.user_image {
  height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: #efefef;
  font-size: 60px;
}

.label {
  transition: all 1.2s ease;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  max-width: 170px;

  &.hide {
    max-width: 0;
  }
}

.sub_sidebar {
  width: 200px;
  height: 100vh;
  position: relative;
  overflow: hidden;

  &.hide {
    width: 0;
  }
}

.sub_sidebar_container {
  min-width: 240px;
  height: 100vh;
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1.5px solid #e5e5e5;
}

.sub_sidebar_content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub_sidebar_title {
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #32324d;

  p {
    font-size: 13px;
    font-weight: 400;
  }
}

.sub_sidebar_toggle {
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  background-color: #59a9de;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 50px;
  cursor: pointer;
  z-index: 99;
  border-radius: 3px;
}

.iconhide {
  transform: rotate(180deg);
}