@import "../_common-style/navbar";
@import "../_common-style/sidebar";
@import "../_common-style/footer";

// Body
.content-group {
  min-height: var(--min-body-height);
}

// Tabs
.tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-top: 30px;
  margin-bottom: 30px;
  position: relative;

  @media (max-width: 500px) {
    flex-direction: column;
    .line {
      display: none;
    }
  }

  .line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    border-radius: 15px;
    background-color: var(--primary-color);
    transition: all 0.2s ease;
  }

  .tabs-item {
    font-size: 1.8rem;
    font-weight: 500;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-bottom: 4px solid #ffffff;
    user-select: none;

    &:hover {
      color: var(--primary-color);
      background-color: rgba(53, 105, 194, 0.05);
      border-bottom: 4px solid var(--primary-color);
    }
  }

  .tabs-item.active {
    color: var(--primary-color);

    .tabs-icon {
      color: var(--primary-color);
    }
  }

  .tabs-icon {
    margin-right: 10px;
    font-size: 24px;
  }
}

.content__item {
  display: none;
  animation: fadeIn 0.5s ease;
}

.content__item.active {
  display: block;
}

// Account avatar
.account__wrapper {
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  margin-bottom: 12px;

  &:first-child {
    display: flex;
    align-items: center;
  }

  &:last-child {
    padding: 24px 24px;
  }
}

.account__sub-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: contain;
  margin-right: 12px;
}

.account__sub-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.account__sub-role {
  margin-bottom: 0;
}

.account__group {
  margin-bottom: 14px;
}

.account__title {
  margin-bottom: 6px;
}

.account__actions {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 24px;

  .account__action {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
  }

  .account__logout {
    border: 1px solid #a9b3bb;
    color: #a9b3bb;
    transition: all 0.2s ease;

    &:hover {
      background-color: #a9b3bb;
      color: white;
    }
  }

  .account__update {
    background-color: #696cff;
    color: white;
    transition: all 0.2s ease;

    &:hover {
      background-color: #4649ee;
    }
  }
}

// Update CSS
.update__wrapper {
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  margin-bottom: 24px;
}

.update__image {
  .update__img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    margin-right: 14px;
    border: 2px solid var(--primary-color);
  }

  .update__input-img {
    color: transparent;
    width: 170px;
    margin-right: 8px;
  }

  .update__input-img::-webkit-file-upload-button {
    visibility: hidden;
  }

  .update__input-img::before {
    width: 170px;
    text-align: center;
    content: "Chọn ảnh mới";
    color: var(--white-color);
    display: inline-block;
    background-color: #696cff;
    border-radius: 4px;
    padding: 10px 18px;
    outline: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.6rem;
    transition: all 0.2s ease;
  }

  .update__input-img:hover::before {
    background-color: #484bd6;
  }

  .update__reset-img {
    font-weight: 500;
    font-size: 1.6rem;
    padding: 10px 18px;
    color: #a9b3bb;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid #a9b3bb;
    transition: all 0.2s ease;

    &:hover {
      background-color: #a9b3bb;
      color: var(--white-color);
    }
  }
}

.form-actions {
  margin-top: 4px;

  .update-btn {
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 6px;

    &:first-of-type {
      margin-right: 12px;
    }
  }

  .update-submit-btn {
    background-color: #696cff;
    color: var(--white-color);
    transition: all 0.2s ease;

    &:hover {
      background-color: #484bd6;
    }
  }

  .update-cancel-btn {
    color: #a9b3bb;
    background-color: transparent;
    border: 1px solid #a9b3bb;
    transition: all 0.2s ease;

    &:hover {
      background-color: #a9b3bb;
      color: var(--white-color);
    }
  }
}

// Change password
.change-psw__wrapper {
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  margin-bottom: 24px;
}

.change-psw__title {
  margin: 16px 0 24px 0;
}

.change-psw__suggest {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.change-psw__list {
  padding-left: 0;
}
.change-psw__item {
  font-size: 1.7rem;
  padding: 8px 0;

  i {
    margin-right: 6px;
    font-size: 2.6rem;
    color: var(--primary-color);
  }
}

.form-control {
  transition: all 0.2 ease;

  &:focus {
    caret-color: #696cff;
    border: 2px solid #696cff;
  }
}
