/* 7-Step Onboarding Wizard Styles - Images 2 & 3 Reference */
.onboarding-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 16px 20px calc(20px + var(--safe-area-bottom)) 20px;
  background-color: var(--bg-surface);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  &::-webkit-scrollbar {
    display: none;
  }
}

.onboarding-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Step Header & Progress Bar */
.onboarding-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.onboarding-back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  border: none;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.onboarding-back-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.onboarding-step-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.onboarding-skip-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.onboarding-progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step Content Layout */
.onboarding-step-view {
  flex: 1;
  display: none;
  flex-direction: column;
  animation: stepFadeIn 0.3s ease-out;
}

.onboarding-step-view.active {
  display: flex;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.onboarding-heading-group {
  text-align: center;
  margin-bottom: 24px;
}

.onboarding-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.onboarding-description {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

.onboarding-body-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.onboarding-footer {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
}

/* Step 7 Calendar Picker in Onboarding (matching Image 3) */
.onboarding-calendar {
  width: 100%;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-body);
}

.cal-day-cell:hover {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.cal-day-cell.selected {
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: var(--primary-glow-sm);
}

.cal-day-cell.other-month {
  color: #CBD5E1;
  pointer-events: none;
}

.cal-day-cell.today {
  border: 1.5px solid var(--primary);
}

/* Setup Loading View - Image 3 Reference */
.loading-setup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 32px 24px;
}

.setup-circular-progress {
  width: 160px;
  height: 160px;
  position: relative;
  margin-bottom: 32px;
}

.setup-circular-progress svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.setup-circular-progress .track {
  stroke: var(--bg-subtle);
  stroke-width: 8;
  fill: none;
}

.setup-circular-progress .indicator {
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.1s linear;
}

.setup-percent-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
}

.setup-status-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.setup-status-step {
  font-size: 13.5px;
  color: var(--text-secondary);
  min-height: 24px;
}
