/* ============================================================
   WHALE OS — Premium Steps (Stepper) Design System
   Inspired by namethatui.com/Steps (Numbered circles, checkmarks, connectors)
   ============================================================ */

/* Outer Navigation Container */
.global-nav-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 8px 14px !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 9999px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
  margin: 0 0 24px 0 !important;
  font-family: var(--font-arabic, 'Cairo', sans-serif) !important;
  direction: rtl !important;
  width: fit-content !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .global-nav-bar,
body.light-theme .global-nav-bar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
}

/* Nav Back Button */
.nav-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

[data-theme="light"] .nav-back-btn,
body.light-theme .nav-back-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.nav-back-btn:hover {
  background: rgba(2, 132, 199, 0.2) !important;
  border-color: rgba(2, 132, 199, 0.5) !important;
  color: #38bdf8 !important;
  transform: translateX(3px) !important;
}

.nav-back-btn .back-arrow {
  display: inline-block !important;
  font-size: 14px !important;
  transition: transform 0.2s ease !important;
}

.nav-back-btn:hover .back-arrow {
  transform: translateX(3px) !important;
}

/* Stepper Ordered List */
.whale-steps-list {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 8px !important;
  gap: 0 !important;
}

/* Single Step Stage Item */
.whale-step-stage {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
}

/* Clickable step content */
.whale-step-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: transparent !important;
  border: none !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.whale-step-button:focus-visible {
  outline: 2px solid #0284c7 !important;
  outline-offset: 2px !important;
}

/* Step Indicator (The Circle) */
.whale-step-indicator {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
}

/* State 1: Completed Stage */
.whale-step-stage.completed .whale-step-indicator {
  background: rgba(2, 132, 199, 0.2) !important;
  border: 1.5px solid #0284c7 !important;
  color: #38bdf8 !important;
}

[data-theme="light"] .whale-step-stage.completed .whale-step-indicator,
body.light-theme .whale-step-stage.completed .whale-step-indicator {
  background: rgba(2, 132, 199, 0.12) !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

.whale-step-stage.completed .whale-step-button:hover .whale-step-indicator {
  background: #0284c7 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

.whale-step-stage.completed .whale-step-label {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: color 0.2s ease !important;
}

[data-theme="light"] .whale-step-stage.completed .whale-step-label,
body.light-theme .whale-step-stage.completed .whale-step-label {
  color: #475569 !important;
}

.whale-step-stage.completed .whale-step-button:hover .whale-step-label {
  color: #38bdf8 !important;
}

/* State 2: Active / Current Stage (aria-current="step") */
.whale-step-stage.current .whale-step-indicator {
  background: #0284c7 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.4), 0 0 16px rgba(2, 132, 199, 0.6) !important;
  transform: scale(1.06) !important;
}

.whale-step-stage.current .whale-step-label {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  letter-spacing: -0.2px !important;
}

[data-theme="light"] .whale-step-stage.current .whale-step-indicator,
body.light-theme .whale-step-stage.current .whale-step-indicator {
  background: #0284c7 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .whale-step-stage.current .whale-step-label,
body.light-theme .whale-step-stage.current .whale-step-label {
  color: #0f172a !important;
}

.whale-step-stage.current .whale-step-button {
  cursor: default !important;
}

/* State 3: Upcoming / Future Stage */
.whale-step-stage.upcoming .whale-step-indicator {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px dashed rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.35) !important;
}

.whale-step-stage.upcoming .whale-step-label {
  color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

[data-theme="light"] .whale-step-stage.upcoming .whale-step-indicator,
body.light-theme .whale-step-stage.upcoming .whale-step-indicator {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #94a3b8 !important;
}

[data-theme="light"] .whale-step-stage.upcoming .whale-step-label,
body.light-theme .whale-step-stage.upcoming .whale-step-label {
  color: #94a3b8 !important;
}

/* Step Connector (The Horizontal Connecting Line) */
.whale-step-connector {
  width: 24px !important;
  height: 2px !important;
  margin: 0 4px !important;
  border-radius: 9999px !important;
  flex-shrink: 0 !important;
  transition: all 0.3s ease !important;
}

.whale-step-connector.completed {
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
}

.whale-step-connector.upcoming {
  background: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="light"] .whale-step-connector.upcoming,
body.light-theme .whale-step-connector.upcoming {
  background: rgba(0, 0, 0, 0.1) !important;
}

/* Checkmark Icon inside Indicator */
.whale-step-check {
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Stepper Mobile Responsive */
@media (max-width: 768px) {
  .global-nav-bar {
    width: 100% !important;
    overflow-x: auto !important;
    border-radius: 16px !important;
    padding: 8px 12px !important;
    scrollbar-width: none !important;
  }
  .global-nav-bar::-webkit-scrollbar {
    display: none !important;
  }
  .whale-step-connector {
    width: 14px !important;
  }
  .whale-step-label {
    font-size: 11.5px !important;
  }
  .whale-step-indicator {
    width: 26px !important;
    height: 26px !important;
    font-size: 11.5px !important;
  }
}

/* ============================================================
   Wizard & Modal Stepper Upgrade (Registration / Onboarding)
   ============================================================ */
.auth-step-progress {
  margin-bottom: 24px !important;
  position: relative !important;
}

.step-indicators {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
  z-index: 2 !important;
}

.step-indicator-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: default !important;
  transition: all 0.3s ease !important;
}

.step-indicator-item .step-num {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.step-indicator-item .step-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.4) !important;
  transition: color 0.3s ease !important;
}

/* Wizard Active Step */
.step-indicator-item.active .step-num {
  background: #0284c7 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.35), 0 0 16px rgba(2, 132, 199, 0.5) !important;
  transform: scale(1.08) !important;
}

.step-indicator-item.active .step-label {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Wizard Completed Step */
.step-indicator-item.completed .step-num {
  background: rgba(2, 132, 199, 0.2) !important;
  border-color: #0284c7 !important;
  color: #38bdf8 !important;
}

.step-indicator-item.completed .step-label {
  color: #94a3b8 !important;
}

.step-progress-track {
  position: absolute !important;
  top: 16px !important;
  left: 24px !important;
  right: 24px !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  z-index: 1 !important;
}

.step-progress-bar {
  height: 100% !important;
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
  transition: width 0.35s ease !important;
  border-radius: 9999px !important;
}

