/* resume-filter.component.scss */
.resume-filter-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-box {
  position: relative;
  
  input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-family: 'Inter', '阿里巴巴普惠体', sans-serif;
    transition: all 0.3s ease;

    &:focus {
      outline: none;
      border-color: #7C3AED;
      box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3);
    }

    &::placeholder {
      color: rgba(255, 255, 255, 0.5);
    }
  }

  svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

.filter-group {
  display: flex;
  gap: 1rem;

  select {
    flex: 1;
    padding: 0.7rem 1rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-family: 'Inter', '阿里巴巴普惠体', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;

    &:focus {
      outline: none;
      border-color: #7C3AED;
      box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3);
    }
  }
}

.resume-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.resume-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.8rem;
  padding: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
  }
}

.resume-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
}

.resume-info {
  flex: 1;

  h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
  }

  p {
    margin: 0.3rem 0 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
  }
}

.education-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #2563EB;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.resume-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.skill-tag {
  background: rgba(124, 58, 237, 0.2);
  color: #7C3AED;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.resume-actions {
  display: flex;
  gap: 0.8rem;

  button {
    flex: 1;
    padding: 0.6rem;
    border-radius: 0.5rem;
    border: none;
    font-family: 'Inter', '阿里巴巴普惠体', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;

    &.approve {
      background: rgba(16, 185, 129, 0.2);
      color: #10B981;

      &:hover, &.active {
        background: #10B981;
        color: white;
      }
    }

    &.reject {
      background: rgba(245, 158, 11, 0.2);
      color: #F59E0B;

      &:hover, &.active {
        background: #F59E0B;
        color: white;
      }
    }
  }
}

.resume-status {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.3rem 1rem;
  border-bottom-left-radius: 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;

  &.pending {
    background: rgba(37, 99, 235, 0.2);
    color: #2563EB;
  }

  &.approved {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
  }

  &.rejected {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
  }
}