/**
 * SunMonitor — Admin Onboarding Tour CSS
 *
 * Spotlight + card-style tour. Geen externe library.
 */

.adm-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  display: none;
}
.adm-tour-overlay.open {
  display: block;
}

/* Donker overlay door box-shadow trick op spotlight */
.adm-tour-spotlight {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--color-brand-active, #d97706);
}

/* Wanneer geen target: full-screen donker overlay */
.adm-tour-overlay.open:not(:has(.adm-tour-spotlight[style*="display: block"]))::before,
.adm-tour-overlay.open:has(.adm-tour-spotlight[style*="display: none"])::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.adm-tour-card {
  position: fixed;
  pointer-events: auto;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--surface-card, #fff);
  border-radius: var(--radius-xl, 14px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.30);
  padding: var(--space-5, 20px) var(--space-5, 22px);
  z-index: 9001;
  transition: top .25s ease, left .25s ease;
}

.adm-tour-title {
  margin: 0 0 var(--space-2, 8px);
  font-size: var(--fs-16, 16px);
  font-weight: var(--fw-bold, 700);
  color: var(--text-primary, #111827);
  letter-spacing: -0.01em;
}

.adm-tour-body {
  margin: 0 0 var(--space-4, 16px);
  font-size: var(--fs-13, 13px);
  line-height: 1.5;
  color: var(--text-secondary, #4b5563);
}

.adm-tour-progress {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-4, 14px);
  justify-content: center;
}

.adm-tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-200, #e2e8f0);
  transition: background .15s ease, width .15s ease;
}
.adm-tour-dot.on {
  background: var(--color-brand-active, #d97706);
  width: 20px;
  border-radius: 4px;
}

.adm-tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3, 12px);
}

.adm-tour-nav {
  display: flex;
  gap: var(--space-2, 8px);
}

.adm-tour-nav .btn-sm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .adm-tour-card {
    width: calc(100vw - 24px);
    max-width: none;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    transform: none !important;
  }
  .adm-tour-spotlight { display: none !important; }
}
