/* Setup Wizard Styles */

.wizard-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.wizard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
}

.wizard-logo {
  text-align: center;
  margin-bottom: 32px;
}

.wizard-logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.wizard-logo p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* Progress indicator */
.wizard-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 36px;
  gap: 0;
}

.wizard-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.wizard-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.wizard-progress-step.completed:not(:last-child)::after {
  background: var(--success);
}

.wizard-progress-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.wizard-progress-step.active .wizard-progress-circle {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.wizard-progress-step.completed .wizard-progress-circle {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.wizard-progress-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  font-weight: 500;
  max-width: 80px;
}

.wizard-progress-step.active .wizard-progress-label {
  color: var(--primary);
}

.wizard-progress-step.completed .wizard-progress-label {
  color: var(--success);
}

/* Step content */
.wizard-step-content {
  animation: wizardFadeIn 0.25s ease;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.wizard-step-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Badges */
.badge-obrigatorio {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-opcional {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Form fields */
.wizard-field {
  margin-bottom: 16px;
}

.wizard-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.wizard-field input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.wizard-field input:focus {
  border-color: var(--border-focus);
}

.wizard-field input::placeholder {
  color: var(--text-dim);
}

/* Info icon and tooltip */
.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: var(--text-muted);
  flex-shrink: 0;
}

.info-icon:hover,
.info-icon:focus {
  color: var(--primary);
  outline: none;
}

.info-icon svg {
  width: 14px;
  height: 14px;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  width: 260px;
  padding: 10px 12px;
  border-radius: 6px;
  z-index: 25;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}

.info-icon:hover .tooltip-text,
.info-icon:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Info card (Drive warning) */
.wizard-info-card {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--warning);
  line-height: 1.6;
}

.wizard-info-card strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

/* Error message */
.wizard-error {
  display: none;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #f87171;
  font-size: 13px;
  margin-bottom: 16px;
}

.wizard-error.visible {
  display: block;
}

/* Buttons */
.wizard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.wizard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.wizard-btn:hover:not(:disabled) {
  background: var(--primary-hover);
}

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

.wizard-skip {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 4px;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wizard-skip:hover {
  color: var(--text);
}

/* Success message */
.wizard-success {
  text-align: center;
  padding: 24px 0;
}

.wizard-success-icon {
  width: 56px;
  height: 56px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--success);
}

.wizard-success h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.wizard-success p {
  color: var(--text-secondary);
  font-size: 14px;
}
