/* === Onboarding Tour: Spotlight + Tooltip === */

#onboarding-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none; /* container itself doesn't block; children do */
  display: none;
}

#onboarding-tour-overlay.active {
  display: block;
}

/* Four dark panels around the spotlight — they capture clicks (block input
   to underlying UI), so the user can ONLY interact with the spotlit element
   or the tour tooltip. */
.onboarding-blocker {
  position: fixed;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Decorative spotlight outline (no fill, no shadow — purely visual). */
.onboarding-spotlight {
  position: fixed;
  border-radius: 12px;
  pointer-events: none;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
}

/* View-only mode: spotlight is fully visible but captures clicks itself,
   so the underlying element CANNOT be interacted with. */
.onboarding-spotlight.view-only {
  pointer-events: auto;
  cursor: default;
}

.onboarding-tooltip {
  position: fixed;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 12px;
  padding: 18px 20px;
  max-width: 320px;
  width: calc(100vw - 40px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  z-index: 10001;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-tooltip-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #10B981;
}

.onboarding-tooltip-text {
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 16px 0;
  color: #333;
}

.onboarding-tooltip-progress {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.onboarding-tooltip-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.onboarding-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}

.onboarding-btn:active {
  transform: scale(0.97);
}

.onboarding-btn-primary {
  background: #10B981;
  color: #ffffff;
}

.onboarding-btn-primary:hover {
  background: #0ea271;
}

.onboarding-btn-secondary {
  background: #e5e7eb;
  color: #1a1a1a;
}

.onboarding-btn-secondary:hover {
  background: #d1d5db;
}

.onboarding-btn-skip {
  background: transparent;
  color: #888;
  margin-left: auto;
  padding: 8px 4px;
  font-size: 0.85rem;
}

.onboarding-btn-skip:hover {
  color: #444;
  text-decoration: underline;
}

/* Tooltip arrow (decorative) */
.onboarding-tooltip::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
}

.onboarding-tooltip[data-arrow="top"]::before {
  top: -6px;
  left: 32px;
}
.onboarding-tooltip[data-arrow="bottom"]::before {
  bottom: -6px;
  left: 32px;
}
.onboarding-tooltip[data-arrow="left"]::before {
  left: -6px;
  top: 32px;
}
.onboarding-tooltip[data-arrow="right"]::before {
  right: -6px;
  top: 32px;
}
.onboarding-tooltip[data-arrow="none"]::before {
  display: none;
}
