/* onboarding-coachmark.css
 * Styles for the standalone onboarding coachmark spotlight.
 * Scoped under #onboardingCoachmarkRoot to avoid colliding with dashboard CSS.
 */

#onboardingCoachmarkRoot {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* above dashboard modals, below browser chrome */
  pointer-events: none; /* overlay does not block the page; only the tip/ring */
}

/* Dim + cutout layer */
#onboardingCoachmarkRoot .oc-dim {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* clicks on the dim are absorbed (gentle force) */
}
#onboardingCoachmarkRoot.oc-floating .oc-dim {
  pointer-events: none;
  opacity: 0;
}

/* Pulsing ring around the spotlight */
#onboardingCoachmarkRoot .oc-ring {
  position: fixed;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.55),
              0 0 22px 4px rgba(124, 58, 237, 0.45);
  pointer-events: none;
  display: none;
  animation: ocPulse 1.8s ease-in-out infinite;
}

@keyframes ocPulse {
  0%   { box-shadow: 0 0 0 2px rgba(124,58,237,0.55), 0 0 14px 2px rgba(124,58,237,0.35); }
  50%  { box-shadow: 0 0 0 6px rgba(124,58,237,0.18), 0 0 26px 8px rgba(124,58,237,0.55); }
  100% { box-shadow: 0 0 0 2px rgba(124,58,237,0.55), 0 0 14px 2px rgba(124,58,237,0.35); }
}

/* Tooltip card */
#onboardingCoachmarkRoot .oc-tip {
  position: fixed;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.38);
  pointer-events: auto;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

#onboardingCoachmarkRoot .oc-step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 6px;
}
#onboardingCoachmarkRoot .oc-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
#onboardingCoachmarkRoot .oc-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: #334155;
}

#onboardingCoachmarkRoot .oc-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
#onboardingCoachmarkRoot .oc-btn {
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
#onboardingCoachmarkRoot .oc-btn-primary {
  background: #7c3aed;
  color: #fff;
}
#onboardingCoachmarkRoot .oc-btn-primary:hover { background: #6d28d9; }
#onboardingCoachmarkRoot .oc-btn-ghost {
  background: transparent;
  color: #64748b;
  padding: 10px 8px;
}
#onboardingCoachmarkRoot .oc-btn-ghost:hover { color: #0f172a; text-decoration: underline; }
#onboardingCoachmarkRoot .oc-btn:focus-visible {
  outline: 2px solid #6d28d9;
  outline-offset: 2px;
}

#onboardingCoachmarkRoot .oc-theme {
  margin-top: 12px;
  font-size: 12px;
  color: #94a3b8;
}

/* Arrow */
#onboardingCoachmarkRoot .oc-arrow {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: rotate(45deg);
  display: none;
}
#onboardingCoachmarkRoot .oc-arrow-up   { top: -8px; }
#onboardingCoachmarkRoot .oc-arrow-down { bottom: -8px; }

/* Mobile bottom-sheet */
#onboardingCoachmarkRoot .oc-tip.oc-bottom {
  width: calc(100vw - 24px);
  border-radius: 16px 16px 12px 12px;
}

/* Floating card mode (no target found) */
#onboardingCoachmarkRoot.oc-floating .oc-tip {
  box-shadow: 0 12px 36px rgba(2, 8, 23, 0.28);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #onboardingCoachmarkRoot .oc-ring { animation: none; }
}

/* Small screens: tighten padding */
@media (max-width: 559px) {
  #onboardingCoachmarkRoot .oc-tip { padding: 16px 16px 12px; }
  #onboardingCoachmarkRoot .oc-title { font-size: 16px; }
}
