// Navbar

.layout-user {
  &.empty {
    .c-navbar {
      border-bottom: unset;
      background: transparent;
    }
    .layout-user__content {
      margin-top: 0;
    }
    .layout-user__sidebar {
      padding-top: 80px;
    }
    .c-sidebar {
      &__item {
        &:first-child {
          padding-top: 24px;
        }
      }
      &::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: auto;
        left: auto;
        right: 50%;
        transform: translate(50%, 0);
        border-top: 1px dashed #dedeec;
        width: calc(100% - 50px);
        height: 1px;
      }

      &.expand {
        &::before {
          display: none;
        }
      }
    }
  }
}

.c-navbar {
  position: fixed;
  top: 12px;
  right: 12px;
  left: 12px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border: 1px solid #dedeec;
  background: #fff;
  height: 69px;
  padding: 0 22px;
  z-index: 9;

  &__logo-info {
    display: flex;
    align-items: center;
    gap: 27.5px;
    justify-content: space-between;
  }
  &__user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;

    &.settings {
      span {
        font-weight: 500;
        color: #14142a;
      }

      strong {
        font-weight: 400;
        color: #5050ff;
        font-size: 12px;
      }
    }

    span,
    strong {
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
      max-width: 169px;
    }

    span {
      color: #5050ff;
      font-size: 14px;
      font-weight: 700;
    }
    strong {
      font-size: 16px;
      font-weight: 600;
      color: #14142a;
      letter-spacing: -0.16px;
    }
  }

  &__dropdown {
    position: relative;
  }

  &__dropdown-button {
    cursor: pointer;
    user-select: none;
    border: none;
    width: 43px;
    height: 43px;
    border-radius: 100px;
    background-image: linear-gradient(90deg, #ff71e8 0.03%, #3838ff 99.8%);
    color: #fff;
    font-weight: 600;
    background-size: cover;
  }

  &__dropdown-content {
    position: absolute;
    top: 80%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    list-style-type: none;
    width: max-content;
    display: none;
    padding: 0;
  }

  &__dropdown-item {
    background: none;
    border: none;
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: #4e4b66;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    min-width: 150px;
  }

  &__account-setting {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  &__log-out {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  &__dropdown-item:hover {
    cursor: pointer;
    background-color: #2a46ff;
    color: #fff;
  }

  &__active {
    cursor: pointer;
    background-color: #2a46ff;
    color: #fff;
  }

  &__dropdown-button:focus,
  &__dropdown-content.show {
    display: block;
  }

  &__wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  &__left,
  &__logo {
    display: flex;
    align-items: center;
  }

  &__left {
    gap: 24px;
  }

  &__logo {
    gap: 16px;
  }

  .line {
    height: 32px;
    width: 1px;
    background: #dedeec;
  }

  &__icon {
    &-edit,
    &-hamburger {
      background: #F8F8FD;
      border: none;
      outline: unset;
      box-shadow: unset;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      cursor: pointer;
      width: 32px;
      height: 32px;
      border-radius: 6px;
    }

    &-edit {
      justify-content: center;
      border-radius: 8px;
      width: 32px;
      height: 32px;
    }

    &-edit,
    &-book {
      border: 1px solid #dedeec;
    }

    &-book {
      color: #14142a;
    }

    &-book,
    &-cancel {
      flex-direction: row-reverse;
      box-shadow: 0px 1px 2px -1px rgba(17, 12, 34, 0.08);
      padding: 8px 10px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 500;
      min-width: auto;
    }

    &-cancel {
      border: 1px solid #f2415a;
      background: #feecee;
      color: #f2415a;
    }

    &-settings-edit {
      border-radius: 8px;
      border: 1px solid #dedeec;
      display: flex;
      width: 32px;
      height: 32px;
      justify-content: center;
      align-items: center;
      gap: 10px;
      background: #fff;
      cursor: pointer;
    }

    &-close-callback {
      border: none;
      background: transparent;
      outline: unset;
      box-shadow: unset;
      padding: 0;
      cursor: pointer;
    }
  }

  &__right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
  }

  &__notification {
    position: relative;
    &-button {
      border-radius: 100%;
      width: 43px;
      height: 43px;
      background: #fff;
      cursor: pointer;
    }
    &-button:focus,
    &-content.show {
      display: block;
    }
    &-content.show {
      max-height: calc(100vh - 90px);
      overflow: auto;
    }
    &-mark {
      display: inline-block;
      width: 12px;
      height: 12px;
      position: absolute;
      right: 0;
      background-color: red;
      border-radius: 100%;
      top: 2px;
    }
  }
}
