/* Custom Tour Styles */

.tour-highlight {
  position: absolute;
  z-index: 9998;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9997;
  cursor: default;
}

.tour-popover {
  position: absolute;
  z-index: 9999;
  width: 100%;
  max-width: 400px;
  background-color: var(--driver-popover-bg, #ffffff);
  color: var(--driver-popover-text, #1f2937);
  border: 1px solid var(--driver-popover-border, #e5e7eb);
  border-radius: 12px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  opacity: 0;
  animation: tourFadeIn 0.3s forwards;
}

@keyframes tourFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="dark"] .tour-popover {
  background-color: #1e1e2e;
  border-color: #45475a;
  color: #cdd6f4;
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.tour-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}

.tour-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: all 0.2s;
}

.tour-close-btn:hover {
  color: #ffffff;
  background-color: #374151;
  border-radius: 4px;
}

.tour-close-btn:focus-visible {
  outline: 2px solid #8b5cf6 !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

.tour-body {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: inherit;
}

.tour-footer {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.tour-audio-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 6px;
  margin-right: auto !important;
}

.tour-audio-btn:focus-visible,
.tour-prev-btn:focus-visible,
.tour-next-btn:focus-visible {
  outline: 2px solid #8b5cf6 !important;
  outline-offset: 2px !important;
}

.tour-prev-btn {
  order: 1;
}

.tour-next-btn {
  order: 2;
}

.tour-progress {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-left: 0.5rem;
  order: 3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
