/* Wizard Component Styles */

.wizard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.wizard__header {
  text-align: center;
  margin-bottom: 2rem;
}

.wizard__header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.wizard__subtitle {
  font-size: 1.125rem;
  color: #7f8c8d;
}

/* Progress Bar */
.wizard__progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.wizard__progress::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.wizard__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: pointer;
  z-index: 1;
}

.wizard__step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #e0e0e0;
  color: #95a5a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.wizard__step--active .wizard__step-number {
  background: #3498db;
  color: white;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.wizard__step--completed .wizard__step-number {
  background: #27ae60;
  color: white;
}

.wizard__step-label {
  font-size: 0.875rem;
  color: #7f8c8d;
  text-align: center;
}

.wizard__step--active .wizard__step-label {
  color: #2c3e50;
  font-weight: 600;
}

/* Content Area */
.wizard__content {
  min-height: 500px;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.wizard__step-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.wizard__step-content > p {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
}

.wizard__step-content--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Dataset Selection */
.wizard__filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wizard__filters label {
  font-weight: 600;
  color: #2c3e50;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #3498db;
  color: #3498db;
}

.filter-btn--active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

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

.dataset-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.dataset-card:hover {
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
  transform: translateY(-2px);
}

.dataset-card--selected {
  border-color: #3498db;
  background: #f8fcff;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.dataset-card__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.dataset-card__header h3 {
  font-size: 1.25rem;
  color: #2c3e50;
  margin: 0;
}

.difficulty-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-badge--beginner {
  background: #d4edda;
  color: #155724;
}

.difficulty-badge--intermediate {
  background: #fff3cd;
  color: #856404;
}

.difficulty-badge--advanced {
  background: #f8d7da;
  color: #721c24;
}

.dataset-card__description {
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.dataset-card__info,
.dataset-card__viz {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.dataset-card__note {
  font-size: 0.875rem;
  color: #7f8c8d;
  font-style: italic;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

/* Form Elements */
.wizard__form-group {
  margin-bottom: 2rem;
}

.wizard__form-group label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.wizard__input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.wizard__input:focus {
  outline: none;
  border-color: #3498db;
}

.wizard__error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.wizard__help-text {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-top: 0.5rem;
}

.wizard__preview {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.wizard__preview h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.wizard__preview ul {
  list-style: none;
  padding: 0;
}

.wizard__preview li {
  padding: 0.5rem 0;
  color: #555;
  font-family: 'Monaco', 'Menlo', monospace;
}

/* File Review */
.wizard__file-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wizard__file {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.wizard__file summary {
  padding: 1rem;
  background: #f8f9fa;
  cursor: pointer;
  font-weight: 600;
  color: #2c3e50;
  transition: background 0.2s ease;
}

.wizard__file summary:hover {
  background: #e9ecef;
}

.wizard__code {
  margin: 0;
  padding: 1rem;
  background: #282c34;
  color: #abb2bf;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

.wizard__code code {
  font-family: 'Monaco', 'Menlo', monospace;
}

/* Download Step */
.wizard__download-options {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.wizard__next-steps {
  max-width: 600px;
  text-align: left;
  margin-top: 3rem;
}

.wizard__next-steps h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.wizard__next-steps ol {
  line-height: 2;
  color: #555;
}

/* Buttons */
.wizard__btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.wizard__btn--primary {
  background: #3498db;
  color: white;
}

.wizard__btn--primary:hover:not(:disabled) {
  background: #2980b9;
}

.wizard__btn--secondary {
  background: #95a5a6;
  color: white;
}

.wizard__btn--secondary:hover:not(:disabled) {
  background: #7f8c8d;
}

.wizard__btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Navigation */
.wizard__navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .wizard {
    padding: 1rem;
  }

  .wizard__dataset-grid {
    grid-template-columns: 1fr;
  }

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

  .wizard__progress::before {
    display: none;
  }

  .wizard__step {
    flex-direction: row;
    justify-content: flex-start;
  }

  .wizard__step-number {
    margin-right: 1rem;
    margin-bottom: 0;
  }

  .wizard__download-options {
    flex-direction: column;
  }

  .wizard__btn--large {
    width: 100%;
  }
}
