.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  overflow: hidden; /* Block manual scrolling during tour */
  pointer-events: none; /* Allow clicks through overlay */
  overscroll-behavior: none; /* Prevent scroll chaining */
  touch-action: none; /* Prevent touch-based scrolling */
}

/* Global scroll prevention during onboarding */
body.onboarding-active {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

html.onboarding-active {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
.onboarding-overlay.hidden {
  display: none;
}
.onboarding-highlight {
  position: absolute;
  border: 2px solid #D68A70;
  border-radius: 4px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none; /* Allow clicks through highlight */
  z-index: 10000;
}
.onboarding-tooltip {
  position: absolute;
  background: #ffffff;
  color: #37475A;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  pointer-events: auto; /* Enable clicks on tooltip */
  z-index: 10001;
}
[data-theme="dark"] .onboarding-tooltip {
  background: #37475A;
  color: #ffffff;
}
.onboarding-controls {
  margin-top: 0.5rem;
  text-align: right;
}
.onboarding-controls button {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  background: #37475A;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.onboarding-controls button:hover {
  background: #D68A70;
}

/* Workflow-specific styles */
.workflow-tooltip {
  max-width: 400px;
}

.workflow-progress {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background-color: #37475A;
  transition: width 0.3s ease;
}

[data-theme="dark"] .progress-fill {
  background-color: #4DAAF2;
}

.progress-text {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  display: block;
}

[data-theme="dark"] .progress-text {
  color: #9ca3af;
}

.workflow-context {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #f3f4f6;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #374151;
}

[data-theme="dark"] .workflow-context {
  background-color: #374151;
  color: #d1d5db;
}

/* Progress indicator for regular tours */
.onboarding-progress {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-align: center;
  padding: 0.25rem;
  background-color: #f9fafb;
  border-radius: 4px;
}

[data-theme="dark"] .onboarding-progress {
  background-color: #1f2937;
  color: #9ca3af;
}
