/* ==========================================================================
   Guided walkthrough overlay — shared across every page in the tour
   --------------------------------------------------------------------------
   One continuous tour spans multiple static HTML files (recruitment through
   onboarding/offboarding, candidate portal included inline). guide.js persists
   the current step in localStorage and this file draws the spotlight, the
   annotation card, and the floating launcher. Sits above dialogs (z-index 100
   in shell.css), so it can annotate content inside an open dialog too.
   ========================================================================== */

.tvg-backdrop {
  position: fixed;
  z-index: 500;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.45);
  transition: left 0.2s ease, top 0.2s ease, width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}
.dark .tvg-backdrop { background: rgba(0, 0, 0, 0.6); }

.tvg-tooltip {
  position: fixed;
  z-index: 501;
  width: 21rem;
  max-width: calc(100vw - 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in oklab, var(--border) 60%, transparent);
}

.tvg-tip-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.tvg-tip-step {
  font-size: 0.625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary);
}
.dark .tvg-tip-step { color: var(--primary-foreground); }

.tvg-tip-title {
  margin: 0;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--foreground);
}
.tvg-tip-body {
  margin: 0;
  font-size: 0.78125rem; line-height: 1.25rem;
  color: var(--muted-foreground);
}
.tvg-tip-body strong { color: var(--foreground); }

.tvg-tip-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-top: 0.125rem;
}
.tvg-tip-foot-actions { display: flex; gap: 0.375rem; }

.tvg-launcher {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 499;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none; border-radius: 9999px;
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem; font-weight: 500;
  cursor: pointer;
}
.tvg-launcher:hover { filter: brightness(1.05); }
