/* =====================================================
   WIZARD STEPS - Compact circles with progress icons
   ===================================================== */

.wave-planner-section {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  min-height: 80vh;
}

/* Wizard Progress Steps */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  cursor: default;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  background: #e2e8f0;
  color: #64748b;
  border: 3px solid #e2e8f0;
  position: relative;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* Connector line between steps */
.wizard-connector {
  width: 100px;
  height: 4px;
  background: #e2e8f0;
  margin: 0 -10px;
  margin-bottom: 1.8rem;
  transition: background 0.3s ease;
  border-radius: 2px;
}

/* Active step - purple/indigo */
.wizard-step.active .step-number {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
  transform: scale(1.05);
}

.wizard-step.active .step-label {
  color: #6366f1;
  font-weight: 700;
}

/* Completed step - green with checkmark */
.wizard-step.completed .step-number {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  font-size: 0;
}

.wizard-step.completed .step-number::after {
  content: '✓';
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.wizard-step.completed .step-label {
  color: #059669;
}

/* Completed connector - green gradient */
.wizard-connector.completed {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

/* Wizard Content Cards */
.wizard-content {
  max-width: 700px;
  margin: 0 auto;
}

.wizard-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.wizard-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.wizard-icon i {
  font-size: 2rem;
  color: #ffffff;
}

.wizard-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.wizard-card p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.wizard-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn.primary.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn.primary.large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn.secondary {
  padding: 0.75rem 1.5rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn.secondary:hover {
  background: #e2e8f0;
}

/* Project Selection */
.project-selection h4 {
  color: #64748b;
  font-weight: 500;
}

.existing-projects {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Project item card - compact */
.project-item {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  outline: none;
}

.project-item:hover {
  border-color: #6366f1;
  background: #f5f3ff;
}

.project-item.selected,
.project-item:focus {
  border: 2px solid #6366f1;
  background: linear-gradient(90deg, #f5f3ff 0%, #e0e7ff 100%);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.13);
}

.project-item-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.project-item-info i {
  color: #6366f1;
  font-size: 1.3rem;
}

.project-item-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 1.05rem;
}

.project-item-date {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.select-project-btn {
  margin-left: 1rem;
}

/* Upload Area */
.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  background: #f8fafc;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: #6366f1;
  background: #f5f3ff;
}

.upload-icon {
  width: 64px;
  height: 64px;
  background: #e2e8f0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.upload-icon i {
  font-size: 1.75rem;
  color: #6366f1;
}

.upload-area h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.upload-area p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.upload-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* File Info */
.file-info {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.file-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-details i {
  font-size: 1.5rem;
  color: #22c55e;
}

.file-name {
  font-weight: 600;
  color: #1e293b;
}

.file-size {
  color: #64748b;
  font-size: 0.85rem;
}

/* Wave Controls */
.wave-controls {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.controls-header h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.controls-header h4 i {
  color: #6366f1;
}

.reset-controls-btn {
  background: none;
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-controls-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.control-item label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

.control-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #6366f1;
  background: #f0f0ff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.wave-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
}

.wave-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.control-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.cost-legend {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  background: #fffbeb;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

.cost-legend i {
  color: #f59e0b;
}

.controls-status {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* Results Section */
.results-section {
  margin-top: 2rem;
}

.results-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.download-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

@media (max-width: 640px) {
  .wizard-steps {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .wizard-connector {
    width: 3px;
    height: 30px;
    margin: 0;
  }
  
  .wizard-card {
    padding: 2rem 1.5rem;
  }
  
  .controls-grid {
    grid-template-columns: 1fr;
  }
}
