/* ── Wizard Modal Styles ─────────────────────────────────────── */

/* Full-screen on mobile, centered on desktop */
.wizard-modal .modal-dialog {
  max-width: 620px;
}

/* Progress bar at top of modal */
.wizard-progress {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  gap: 0;
}
.wizard-progress-step {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}
.wizard-progress-step:last-child {
  flex: 0 0 auto;
}
.wizard-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dee2e6;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
  z-index: 1;
}
.wizard-progress-step.active .wizard-progress-dot {
  background: #198754;
  color: #fff;
}
.wizard-progress-step.completed .wizard-progress-dot {
  background: #198754;
  color: #fff;
}
.wizard-progress-step.completed .wizard-progress-dot::after {
  content: "\2713";
  font-size: 0.9rem;
}
.wizard-progress-step.completed .wizard-progress-dot .dot-number {
  display: none;
}
.wizard-progress-label {
  display: none;
}
.wizard-progress-line {
  flex: 1;
  height: 3px;
  background: #dee2e6;
  margin: 0 6px;
  transition: background 0.3s;
}
.wizard-progress-step.completed .wizard-progress-line {
  background: #198754;
}

/* Step panels */
.wizard-step {
  display: none;
  padding: 20px;
  animation: wizardFadeIn 0.25s ease;
}
.wizard-step.active {
  display: block;
}
@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Footer navigation */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}
.wizard-footer .btn {
  min-width: 100px;
}

/* Validation summary at bottom of modal */
.wizard-validation-summary {
  display: none;
  margin: 0 20px 0;
  padding: 10px 14px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #856404;
}
.wizard-validation-summary.show {
  display: block;
}
.wizard-validation-summary ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

/* Mobile responsiveness */
@media (max-width: 575.98px) {
  .wizard-modal .modal-dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
  }
  .wizard-modal .modal-content {
    border-radius: 0;
    min-height: 100vh;
  }
  .wizard-progress {
    padding: 10px 14px;
  }
  .wizard-progress-dot {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
  .wizard-progress-label {
    display: none;
  }
  .wizard-step {
    padding: 16px;
  }
  .wizard-footer .btn {
    min-width: 80px;
    font-size: 0.9rem;
  }
}

/* Show step labels on wider screens */
@media (min-width: 576px) {
  .wizard-progress-label {
    display: block;
    font-size: 0.68rem;
    color: #6c757d;
    margin-top: 2px;
    text-align: center;
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  .wizard-progress-step.active .wizard-progress-label {
    color: #198754;
    font-weight: 600;
  }
  .wizard-progress {
    padding-bottom: 28px;
  }
}

/* ── Toast Notification Styles ──────────────────────────────── */

.wizard-toast-container {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.wizard-toast-container .toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
}
.wizard-toast-container .toast .toast-body {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wizard-toast-container .toast .toast-body .bi {
  font-size: 1.2rem;
}

/* ── Wizard Hub Card ────────────────────────────────────────── */

.wizard-hub-card {
  border: 2px dashed #198754;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wizard-hub-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: #fff;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}
.wizard-hub-btn:hover {
  background: #f0faf4;
  border-color: #198754;
  box-shadow: 0 2px 8px rgba(25,135,84,0.1);
}
.wizard-hub-btn .wizard-hub-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #198754;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.wizard-hub-btn .wizard-hub-text {
  flex: 1;
}
.wizard-hub-btn .wizard-hub-text .fw-semibold {
  font-size: 0.9rem;
}
.wizard-hub-btn .wizard-hub-text .text-muted {
  font-size: 0.75rem;
  line-height: 1.3;
}
.wizard-hub-btn .bi-chevron-right {
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Welcome step styling */
.wizard-welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.wizard-welcome-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: #f0faf4;
  border-radius: 8px;
  font-size: 0.82rem;
}
.wizard-welcome-feature .bi {
  font-size: 1.1rem;
  color: #198754;
  flex-shrink: 0;
  margin-top: 1px;
}
@media (max-width: 575.98px) {
  .wizard-welcome-features {
    grid-template-columns: 1fr;
  }
}
