/* ================================================
   NimbleAI — onboarding-tour.css
   Styled step-by-step onboarding overlay, shown
   once, right after a user's very first signup.
   Uses the design tokens already defined in
   dashboard.css (:root) — no new variables needed.
   ================================================ */

.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: obFadeIn 220ms ease-out;
}

.ob-overlay.open {
  display: flex;
}

@keyframes obFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Spotlight highlight box that frames the sidebar element being explained */
.ob-spotlight {
  position: absolute;
  border-radius: var(--r-md);
  border: 2px solid var(--accent);
  box-shadow:
    0 0 0 4000px rgba(6, 5, 4, 0.72),
    var(--accent-glow);
  opacity: 0;
  pointer-events: none;
  transition: top 380ms ease, left 380ms ease, width 380ms ease, height 380ms ease, opacity 200ms ease;
  z-index: 1;
}

.ob-spotlight.active {
  opacity: 1;
}

/* Card */
.ob-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px 28px;
  animation: obCardIn 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes obCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ob-skip {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.ob-skip:hover {
  color: var(--text-2);
  background: var(--surface-2);
}

/* Progress dots */
.ob-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 22px;
}

.ob-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  transition: background var(--t-fast), width var(--t-fast);
}

.ob-dot.active {
  background: var(--accent);
  width: 18px;
}

/* Body / steps */
.ob-body {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ob-step {
  display: none;
  text-align: center;
}

.ob-step.ob-step-visible {
  display: block;
}

.ob-welcome-icon,
.ob-n-icon,
.ob-final-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: var(--r-lg);
  background: var(--accent-low);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
}

.ob-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.ob-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
}

.ob-brand .logo-accent {
  color: var(--accent);
}

.ob-welcome-sub,
.ob-n-sub,
.ob-final-sub {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 auto;
  max-width: 360px;
}

.ob-n-title,
.ob-final-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.ob-tip {
  display: none;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--accent-low);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.ob-tip.ob-tip-visible {
  display: flex;
}

.ob-tip i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Actions */
.ob-actions {
  margin-top: 26px;
}

.ob-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-md);
  padding: 12px 18px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}

.ob-btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.ob-btn-primary:hover {
  background: var(--accent-hover);
}

.ob-btn-primary:active {
  transform: scale(0.98);
}

.ob-btn-full {
  width: 100%;
}

.ob-btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}

.ob-btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-3);
}

.ob-nav-btns {
  display: none;
  gap: 10px;
}

.ob-nav-btns.ob-nav-visible {
  display: flex;
}

.ob-nav-btns .ob-btn-primary {
  flex: 1;
}

#ob-start-btn {
  display: none;
}

#ob-start-btn.ob-start-visible {
  display: inline-flex;
}

/* Mobile */
@media (max-width: 520px) {
  .ob-card {
    padding: 28px 22px 22px;
    max-width: 100%;
  }

  .ob-brand {
    font-size: 24px;
  }

  .ob-n-title,
  .ob-final-title {
    font-size: 19px;
  }
}
