/* Guided product tour — spotlight overlay + Bootstrap-Popover step bubble.
 * Driven by static/js/tour.js. Themed with the app's CSS variables so it works
 * in light and dark. z-index sits above the app chrome but below the popover
 * (Bootstrap's default popover z-index is 1070). */

.lex-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  cursor: pointer;
}

/* Transparent "hole" over the highlighted target. The big box-shadow dims the
 * rest of the viewport while the target shows through the (un-shadowed) rect. */
.lex-tour-spot {
  position: fixed;
  top: 0; left: 0; width: 0; height: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(13, 16, 28, 0.62);
  outline: 2px solid var(--brand, #6366f1);
  outline-offset: 2px;
  pointer-events: none;
  transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}
[data-theme="dark"] .lex-tour-spot { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7); }

/* ---- step bubble (Bootstrap popover, customClass="lex-tour") -------------- */
.popover.lex-tour {
  z-index: 1071;
  max-width: 320px;
  background: var(--bg-elev, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(15, 18, 32, 0.45),
              0 0 0 1px var(--border-soft, rgba(15, 18, 32, 0.04));
}
.popover.lex-tour .popover-arrow::after,
.popover.lex-tour .popover-arrow::before { border-width: 0; }
.popover.lex-tour .popover-body { padding: 0; color: var(--text, #111827); }

.lex-tour-pop { position: relative; padding: 14px 16px 12px; }
.lex-tour-pop__title {
  font-size: .95rem;
  font-weight: 650;
  color: var(--text, #111827);
  margin: 0 1.2rem .35rem 0; /* room for the × */
}
.lex-tour-pop__body {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--text-muted, #4b5563);
}
.lex-tour-pop__body kbd {
  font-size: .7rem;
  padding: .05rem .3rem;
  border-radius: 4px;
  background: var(--bg-elev-2, #f3f4f6);
  border: 1px solid var(--border, #e5e7eb);
  color: var(--text, #111827);
}
.lex-tour-pop__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .85rem;
}
.lex-tour-pop__count {
  font-size: .6875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-faint, #9ca3af);
  white-space: nowrap;
}
.lex-tour-pop__btns { display: inline-flex; gap: .4rem; }
.lex-tour-pop__skip {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 0; background: transparent;
  border-radius: 6px;
  font-size: 1.1rem; line-height: 1;
  color: var(--text-faint, #9ca3af);
  cursor: pointer;
}
.lex-tour-pop__skip:hover { background: var(--bg-elev-2, #f3f4f6); color: var(--text, #111827); }
