/* ─────────────────────────────────────────────────────────────────────────
   Noplink in-app guidance — help icons + guided tour styling.
   Standalone (no Bulma/Tailwind dependencies) so it works in any layout.
   ──────────────────────────────────────────────────────────────────────── */

/* ─── ? help icon ───────────────────────────────────────────────────────── */

.nl-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid #c4c4c4;
  border-radius: 50%;
  background: #f5f5f5;
  color: #5a5a5a;
  font: 600 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nl-help-icon:hover,
.nl-help-icon:focus-visible {
  background: #3e8ed0;
  color: #fff;
  border-color: #3e8ed0;
  outline: none;
}
.nl-help-icon[aria-expanded="true"] {
  background: #3e8ed0;
  color: #fff;
  border-color: #3e8ed0;
}

/* ─── Help popover (shared by icon + tour) ──────────────────────────────── */

.nl-help-popover {
  position: absolute;
  z-index: 9990;
  max-width: 320px;
  min-width: 200px;
  padding: 12px 14px;
  background: #fff;
  color: #363636;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #e6e6e6;
  animation: nl-pop-in 0.12s ease-out;
}
.nl-help-popover[hidden] { display: none; }
.nl-help-popover .nl-pop-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 4px;
  color: #1f2937;
}
.nl-help-popover .nl-pop-body { margin: 0; }
.nl-help-popover .nl-pop-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  border: 0;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.nl-help-popover .nl-pop-close:hover { color: #1f2937; }

@keyframes nl-pop-in {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Tour overlay + spotlight ──────────────────────────────────────────── */

.nl-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9980;
  /* The "spotlight" cutout is created with a giant box-shadow; the element
     itself is the lit rectangle. */
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.55);
  border-radius: 6px;
  pointer-events: auto;
  transition: top 0.2s, left 0.2s, width 0.2s, height 0.2s;
  cursor: default;
}
.nl-tour-overlay[data-noclip] {
  /* When no target is matched, fill the whole viewport (no spotlight). */
  inset: 0;
}

/* Tour popover sits above the overlay */
.nl-tour-popover {
  position: fixed;
  z-index: 9991;
  max-width: 360px;
  min-width: 240px;
  padding: 14px 16px 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  color: #1f2937;
  font-size: 13px;
  line-height: 1.5;
  animation: nl-pop-in 0.14s ease-out;
}
.nl-tour-popover .nl-tour-title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
  color: #0f172a;
}
.nl-tour-popover .nl-tour-body {
  margin: 0 0 12px;
}
.nl-tour-popover .nl-tour-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 6px;
}
.nl-tour-popover .nl-tour-step {
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
  margin-right: auto;
}
.nl-tour-popover button {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  color: #1f2937;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.nl-tour-popover button:hover { background: #f3f4f6; }
.nl-tour-popover button.is-primary {
  background: #3e8ed0;
  border-color: #3e8ed0;
  color: #fff;
}
.nl-tour-popover button.is-primary:hover { background: #2c7ec3; }
.nl-tour-popover .nl-tour-skip {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  padding: 4px 6px;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
}
.nl-tour-popover .nl-tour-skip:hover { color: #1f2937; }
.nl-tour-popover .nl-tour-dont-show {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: #6b7280;
  user-select: none;
}
.nl-tour-popover .nl-tour-dont-show input { margin: 0; }
