/* Dashboard guided tour — overlay + spotlight + popover */

/* dt-active was previously overflow:hidden, but that blocks scrollIntoView()
 * when the spotlight target is below the fold. Tour steps now reposition on
 * scroll, so we keep the page scrollable. */

.dt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1900;
}

/* Transparent click-blocker behind the spotlight. The dimming everywhere
 * except the highlighted area comes from the spotlight's huge box-shadow,
 * so the targeted element stays at full brightness with no overlay over it. */
.dt-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1900;
  pointer-events: auto;
}

.dt-spotlight {
  position: fixed;
  border-radius: 10px;
  z-index: 1901;
  background: transparent;
  border: 2px solid #fd7e14;
  pointer-events: none;
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Four shade panes around the spotlight — gives a truly empty cutout. */
.dt-shade {
  position: fixed;
  background: rgba(10, 37, 64, 0.55);
  z-index: 1900;
  pointer-events: auto;
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.dt-popover {
  position: fixed;
  z-index: 1902;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(10, 37, 64, 0.32);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  transition: top 0.3s ease, left 0.3s ease;
}

.dt-popover-head {
  padding: 12px 18px 8px 18px;
  border-bottom: 1px solid #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dt-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fd7e14;
  font-weight: 700;
}

.dt-step-counter {
  font-size: 0.72rem;
  color: #6c757d;
  font-variant-numeric: tabular-nums;
}

.dt-popover-body {
  padding: 14px 18px 4px 18px;
}

.dt-popover-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0a2540;
  margin: 0 0 8px 0;
  letter-spacing: -0.005em;
}

.dt-popover-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #343a40;
  margin: 0 0 6px 0;
}

.dt-popover-text b { color: #0a2540; font-weight: 600; }

.dt-popover-cta {
  margin: 8px 0 4px 0;
  padding: 8px 12px;
  background: #fff5e9;
  border-left: 3px solid #fd7e14;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  color: #8a3a00;
}

.dt-popover-cta i { margin-right: 4px; }

.dt-popover-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 14px 18px;
  border-top: 1px solid #f1f3f5;
  margin-top: 8px;
}

.dt-btn {
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: #495057;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.dt-btn:hover { background: #f1f3f5; }
.dt-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.dt-btn-primary {
  background: #0a2540;
  border-color: #0a2540;
  color: #ffffff;
  margin-left: auto;
}
.dt-btn-primary:hover:not(:disabled) {
  background: #0d2e4f;
  border-color: #0d2e4f;
}

.dt-btn-skip {
  margin-left: auto;
  color: #6c757d;
  border: none;
  background: transparent;
  font-size: 0.78rem;
}
.dt-btn-skip:hover { color: #0a2540; background: transparent; text-decoration: underline; }

/* Tour entry chip on the dashboard */
.dt-entry {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: #0a2540;
  color: #ffffff;
  border: 1px solid #0a2540;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 1100;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.dt-entry i { color: #fd7e14; font-size: 1rem; }
.dt-entry:hover { background: #0d2e4f; transform: translateY(-1px); }
.dt-entry.dt-entry-dismissed { display: none; }

/* Pulse to draw attention to interactive steps */
@keyframes dt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0.6); }
  50%      { box-shadow: 0 0 0 12px rgba(253, 126, 20, 0); }
}
.dt-spotlight.dt-pulse { animation: dt-pulse 1.6s ease-in-out infinite; }
