@use '../variables' as *;

/* 编辑简历名称弹窗 — 遮罩层 */
.resume-edit-name-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: $overlay-bg;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 弹窗主体 */
.resume-edit-name-dialog {
  width: 4.6rem;
  background: $bg-white;
  border-radius: 0.12rem;
  padding: 0.32rem 0.3rem;
  position: relative;
  font-size: 0.14rem;
  box-shadow: 0 0.04rem 0.2rem rgba(0, 0, 0, 0.15);

  /* 关闭按钮 */
  &__close {
    position: absolute;
    top: 0.14rem;
    right: 0.16rem;
    border: none;
    background: none;
    font-size: 0.16rem;
    color: $text-light;
    cursor: pointer;
    padding: 0.04rem;
    line-height: 1;
    transition: color 0.2s;

    &:hover {
      color: $text-dark;
    }
  }

  /* 表单字段 */
  &__field {
    margin-bottom: 0.24rem;
  }

  /* 标签 */
  &__label {
    display: block;
    font-size: 0.16rem;
    font-weight: 600;
    color: $text-dark;
    margin-bottom: 0.12rem;
  }

  /* 必填星号 */
  &__required {
    color: $danger;
    margin-right: 0.04rem;
  }

  /* 输入框 */
  &__input {
    width: 100%;
    height: 0.44rem;
    border: 1px solid $border-color;
    border-radius: 0.1rem;
    padding: 0 0.14rem;
    font-size: 0.14rem;
    color: $text-dark;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;

    &::placeholder {
      color: $text-light;
    }

    &:focus {
      border-color: $accent;
    }
  }

  /* 底部按钮区域 */
  &__footer {
    display: flex;
    gap: 0.16rem;
    margin-top: 0.08rem;
  }

  /* 按钮通用 */
  &__btn {
    flex: 1;
    height: 0.46rem;
    border-radius: 0.23rem;
    font-size: 0.15rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;

    &:active {
      opacity: 0.8;
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* 取消按钮 */
    &--cancel {
      background: $bg-main;
      color: $text-dark;
    }

    /* 保存按钮 */
    &--save {
      background: $accent;
      color: $bg-white;
    }
  }
}
