@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #4361ee;
  --primary-light: #5e7ff4;
  --primary-dark: #3a55d9;
  --secondary-color: #f72585;
  --neutral-50: #1e1e24;
  --neutral-100: #2d2d3a;
  --neutral-200: #3b3b4c;
  --neutral-300: #4d4d61;
  --neutral-700: #d1d1df;
  --neutral-800: #f1f1f6;
  --success-color: #4ade80;
  --error-color: #f43f5e;
  --background-color: #121218;
  --card-bg-color: #1e1e24;
  --border-color: #3b3b4c;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background-color);
  color: var(--neutral-800);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.015em;
}

.btn:focus {
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--neutral-200);
  color: var(--neutral-700);
}

.btn-secondary:hover {
  background-color: var(--neutral-300);
}

.card {
  background-color: var(--card-bg-color);
  border-radius: 0.25rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: 0.25rem;
  background-color: var(--neutral-50);
  color: var(--neutral-800);
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d1d1df' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-light);
}

.form-select:hover {
  border-color: var(--primary-light);
}

.form-radio {
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--primary-color);
  border: 1.5px solid var(--neutral-300);
  border-radius: 50%;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.form-radio:checked {
  border-color: var(--primary-color);
  background-color: var(--neutral-50);
}

.form-radio:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.form-radio:focus {
  outline: none;
}

input[type="number"] {
  appearance: none;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: 0.25rem;
  background-color: var(--neutral-50);
  color: var(--neutral-800);
  transition: all 0.2s ease;
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-light);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.transition-all {
  transition: all 0.3s ease;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.collapsible-content.expanded {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.history-table-container {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 0.25rem;
  border: 1px solid var(--neutral-200);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--neutral-100);
}

.history-table-container::-webkit-scrollbar {
  width: 6px;
}

.history-table-container::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

.history-table-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background-color: var(--neutral-100);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--neutral-200);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--neutral-200);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: var(--neutral-100);
}

.icon-cooperate {
  color: var(--success-color);
}

.icon-defect {
  color: var(--error-color);
}

.progress-bar {
  height: 0.5rem;
  border-radius: 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  transition: width 1s ease;
}
