/* components.css */
/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--surface);
  color: var(--text-primary);
}

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

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Radio Groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
}

.radio-label:hover {
  background: var(--surface-hover);
}

.radio-label input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  appearance: none;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
}

.radio-label input[type="radio"]:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5rem;
  height: 0.5rem;
  background: white;
  border-radius: 50%;
}

/* Buttons */
.button-group {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.button {
  padding: var(--space-3) var(--space-6);
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 120px;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.button.primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.button.secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--text-secondary);
}

/* Step Indicators */
.step-indicator {
  display: flex;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

.step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.3s;
}

.step-dot::after {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--border);
  right: -2rem;
  width: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.step-dot:last-child::after {
  display: none;
}

.step-dot.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step-dot.complete {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* Alerts */
.alert {
  padding: var(--space-4);
  border-radius: 8px;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  animation: slideIn 0.3s ease-out;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.alert-warning {
  background: #fefce8;
  border: 1px solid #fde047;
  color: #854d0e;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Analysis Results */
.analysis-results {
  border-radius: 8px;
  overflow: hidden;
  margin-top: var(--space-6);
}

.analysis-section {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.analysis-section:last-child {
  border-bottom: none;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .button-group {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
  }
  
  .step-indicator {
    gap: var(--space-2);
  }
  
  .step-dot::after {
    width: 1rem;
    right: -1.25rem;
  }
}