@use '../variables' as *;

// 申请进度消息组件
.agent-apply-progress {
  background: $bg-middle;
  border-radius: 0.12rem;
  padding: 0.2rem;

  // 顶部标题栏
  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.16rem;
  }

  &__title {
    font-size: 0.15rem;
    font-weight: 600;
    color: $text-dark;

    // 可点击状态（暂停/恢复）
    &--clickable {
      cursor: pointer;
      color: $accent;

      &:hover {
        opacity: 0.8;
      }
    }
  }

  &__cancel {
    font-size: 0.13rem;
    color: $text-middle;
    cursor: pointer;

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

  // 岗位信息卡片
  &__job-card {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    background: $bg-white;
    border-radius: 0.1rem;
    padding: 0.14rem 0.16rem;
    margin-bottom: 0.2rem;
  }

  &__job-icon {
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 0.08rem;
    background: $bg-main;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: $text-middle;

    svg {
      width: 0.2rem;
      height: 0.2rem;
    }
  }

  &__job-info {
    min-width: 0;
  }

  &__job-company {
    font-size: 0.14rem;
    font-weight: 600;
    color: $text-dark;
    line-height: 1.4;
  }

  &__job-title {
    font-size: 0.12rem;
    color: $text-middle;
    line-height: 1.4;
  }

  // 步骤列表
  &__steps {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
  }

  &__step {
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
    flex-wrap: wrap;
  }

  // 勾选框
  &__step-check {
    width: 0.18rem;
    height: 0.18rem;
    border: 1.5px solid $text-light;
    border-radius: 0.03rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.01rem;

    svg {
      width: 0.12rem;
      height: 0.12rem;
    }

    // 已完成态
    &--done {
      border-color: $text-dark;
      background: $text-dark;
      color: $bg-white;
    }
  }

  &__step-label {
    font-size: 0.14rem;
    color: $text-dark;
    line-height: 0.2rem;
  }

  // 步骤展开内容
  &__step-content {
    width: 100%;
    margin-top: 0.08rem;
    padding-left: 0.28rem;
  }

  // 第2步：简历确认区域
  &__resume-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: $bg-white;
    border-radius: 0.08rem;
    padding: 0.1rem 0.14rem;
  }

  &__resume-file {
    display: flex;
    align-items: center;
    gap: 0.08rem;
  }

  &__file-icon {
    width: 0.18rem;
    height: 0.18rem;
    color: $text-dark;
  }

  &__resume-name {
    font-size: 0.13rem;
    color: $text-dark;
  }

  &__confirm-btn {
    height: 0.28rem;
    padding: 0 0.16rem;
    background: $btn-dark;
    color: $bg-white;
    border: none;
    border-radius: 0.14rem;
    font-size: 0.12rem;
    cursor: pointer;
    transition: all 0.2s;

    &:hover {
      background: $btn-dark-hover;
    }

    &:disabled {
      background: $text-light;
      cursor: not-allowed;
    }
  }

  // 第3步：投递操作区域
  &__apply-area {
    background: $bg-white;
    border-radius: 0.08rem;
    padding: 0.14rem 0.16rem;
  }

  &__apply-desc {
    font-size: 0.12rem;
    color: $text-middle;
    line-height: 1.8;
    margin: 0;
  }

  &__apply-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    margin-top: 0.14rem;
  }

  &__skip-btn {
    font-size: 0.12rem;
    color: $text-middle;
    cursor: pointer;
    text-decoration: underline;

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

    &--disabled {
      color: $text-light;
      cursor: not-allowed;
      pointer-events: none;
    }
  }

  &__applied-btn {
    height: 0.28rem;
    padding: 0 0.14rem;
    background: $btn-dark;
    color: $bg-white;
    border: none;
    border-radius: 0.14rem;
    font-size: 0.12rem;
    cursor: pointer;
    transition: all 0.2s;

    &:hover {
      background: $btn-dark-hover;
    }

    &:disabled {
      background: $text-light;
      cursor: not-allowed;
    }
  }

  &__goto-btn {
    height: 0.28rem;
    padding: 0 0.14rem;
    background: $btn-dark;
    color: $bg-white;
    border: none;
    border-radius: 0.14rem;
    font-size: 0.12rem;
    cursor: pointer;
    transition: all 0.2s;

    &:hover {
      background: $btn-dark-hover;
    }

    &:disabled {
      background: $text-light;
      cursor: not-allowed;
    }
  }
}

// 右侧面板：简历生成进度
.agent-resume-generating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.4rem;

  // 进度条容器
  &__progress-bar {
    width: 100%;
    max-width: 3rem;
    height: 0.04rem;
    background: $border-color;
    border-radius: 0.02rem;
    overflow: hidden;
    margin-bottom: 0.2rem;
  }

  &__progress-fill {
    height: 100%;
    background: $text-dark;
    border-radius: 0.02rem;
    transition: width 0.3s ease;
  }

  &__title {
    font-size: 0.18rem;
    font-weight: 700;
    color: $text-dark;
    margin-bottom: 0.1rem;
  }

  &__hint {
    display: flex;
    align-items: center;
    gap: 0.06rem;
    font-size: 0.12rem;
    color: $text-middle;
  }

  &__hint-icon {
    width: 0.14rem;
    height: 0.14rem;
    color: $accent;
  }
}
