@use '../variables' as *;

.job-goal-dialog {
  .el-dialog__header {
    display: none;
  }

  .el-dialog__body {
    padding: 0;
  }

  &__header {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.2rem 0.24rem 0.16rem;
  }

  &__close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: $text-dark;
    font-size: 0.16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.04rem;
    border-radius: 0.04rem;
    transition: background 0.2s;

    &:hover {
      background: $bg-main;
    }
  }

  &__title {
    font-size: 0.16rem;
    font-weight: 700;
    color: $text-dark;
  }

  &__section {
    padding: 0.12rem 0.24rem;
  }

  &__label {
    font-size: 0.14rem;
    font-weight: 600;
    color: $text-dark;
    margin-bottom: 0.12rem;
  }

  &__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.08rem;
    margin-bottom: 0.1rem;
  }

  &__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.06rem;
    background: $bg-main;
    border: 1px solid $border-color;
    border-radius: 0.16rem;
    padding: 0.05rem 0.12rem;
    font-size: 0.13rem;
    color: $text-dark;
  }

  &__tag-close {
    cursor: pointer;
    font-size: 0.12rem;
    color: $text-light;
    transition: color 0.2s;

    &:hover {
      color: $danger;
    }
  }

  &__select {
    width: 100%;

    .el-select__wrapper {
      background: $bg-main;
      border-radius: 0.08rem;
      box-shadow: none;
      border: 1px solid $border-color;
    }
  }

  &__type-group {
    display: flex;
    gap: 0.12rem;
  }

  &__type-btn {
    flex: 1;
    padding: 0.1rem 0;
    border: 1px solid $border-color;
    border-radius: 0.2rem;
    background: $bg-white;
    color: $text-dark;
    font-size: 0.13rem;
    cursor: pointer;
    transition: all 0.2s;

    &:hover {
      border-color: $text-light;
    }

    &--active {
      background: $btn-dark;
      border-color: $btn-dark;
      color: $bg-white;
      font-weight: 500;
    }
  }

  &__footer {
    padding: 0.3rem 0.24rem 0.24rem;
    display: flex;
    justify-content: center;
  }

  &__save-btn {
    width: 100%;
    padding: 0.12rem 0;
    background: $accent;
    color: $bg-white;
    border: none;
    border-radius: 0.24rem;
    font-size: 0.16rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;

    &:hover {
      background: $accent-hover;
    }
  }
}
