.container {
  max-width: 1200px;
  margin: 0 auto;
}

.title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a2e;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cardTitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wsStatus {
  font-size: 0.75rem;
  font-weight: 400;
  color: #52c41a;
  background: #f6ffed;
  padding: 2px 8px;
  border-radius: 4px;
}

.formGroup {
  margin-bottom: 1rem;
}

.label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.radioGroup {
  display: flex;
  gap: 1.5rem;
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.9rem;

  input {
    cursor: pointer;
  }
}

.checkboxGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.9rem;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;

  &:hover {
    background: #e8e8e8;
  }

  input {
    cursor: pointer;
  }
}

.selectAllBtn {
  background: none;
  border: none;
  color: #1890ff;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;

  &:hover {
    text-decoration: underline;
  }

  &:disabled {
    color: #ccc;
    cursor: not-allowed;
  }
}

.input {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;

  &:focus {
    border-color: #1890ff;
  }

  &:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
  }
}

.startBtn {
  background: #1890ff;
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;

  &:hover:not(:disabled) {
    background: #40a9ff;
  }

  &:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
  }
}

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

.progressItem {
  background: #fafafa;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.progressHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.progressTarget {
  font-weight: 500;
}

.progressBar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progressMsg {
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}

.completedInfo {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 6px;
  color: #52c41a;
  font-weight: 500;
}

.tableWrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;

  th,
  td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
  }

  th {
    font-weight: 600;
    color: #666;
    background: #fafafa;
  }

  tr:hover td {
    background: #fafafa;
  }
}

.empty {
  text-align: center !important;
  color: #999;
  padding: 2rem 0 !important;
}

.downloadLink {
  color: #1890ff;
  text-decoration: none;
  margin-right: 8px;
  font-size: 0.85rem;

  &:hover {
    text-decoration: underline;
  }
}

.deleteBtn {
  background: none;
  border: none;
  color: #ff4d4f;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;

  &:hover {
    text-decoration: underline;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;

  button {
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;

    &:hover:not(:disabled) {
      border-color: #1890ff;
      color: #1890ff;
    }

    &:disabled {
      color: #ccc;
      cursor: not-allowed;
    }
  }
}
