/* EVVidence tour CSS overrides -- scoped under .evv-tour.
   Warm, landing-page feel: soft shadow, generous radius, display-font titles,
   primary action button. Semantic tokens only. */

.evv-tour.driver-popover {
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  border: 1px solid rgb(var(--color-border));
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1.375rem 1.5rem;
  font-family: var(--font-body, ui-sans-serif, system-ui, sans-serif);
  max-width: 360px;
}

.evv-tour .driver-popover-title {
  font-family: var(--font-display, var(--font-heading, var(--font-body, ui-sans-serif, system-ui, sans-serif)));
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(var(--color-foreground));
  margin-bottom: 0.375rem;
}

/* Small warm accent dot before the title, like the landing page's accent labels */
.evv-tour .driver-popover-title::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: rgb(var(--color-accent));
  vertical-align: baseline;
}

.evv-tour .driver-popover-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgb(var(--color-muted-foreground));
}

.evv-tour .driver-popover-close-btn {
  color: rgb(var(--color-muted-foreground));
  right: 0.875rem;
  top: 0.875rem;
}

.evv-tour .driver-popover-close-btn:hover {
  color: rgb(var(--color-foreground));
}

/* Arrow */
.evv-tour .driver-popover-arrow {
  border: 1px solid rgb(var(--color-border));
}

.evv-tour .driver-popover-arrow-side-top {
  border-top: none;
  border-right: none;
}

.evv-tour .driver-popover-arrow-side-bottom {
  border-bottom: none;
  border-left: none;
}

.evv-tour .driver-popover-arrow-side-left {
  border-left: none;
  border-bottom: none;
}

.evv-tour .driver-popover-arrow-side-right {
  border-right: none;
  border-top: none;
}

/* Footer and buttons */
.evv-tour .driver-popover-footer {
  margin-top: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.evv-tour .driver-popover-navigation-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Next / Done button -- primary, like the landing CTAs */
.evv-tour .driver-popover-next-btn {
  background: rgb(var(--color-primary)) !important;
  color: rgb(var(--color-primary-foreground)) !important;
  border: none !important;
  border-radius: 0.625rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-shadow: none;
}

.evv-tour .driver-popover-next-btn:hover {
  background: rgb(var(--color-primary)) !important;
  color: rgb(var(--color-primary-foreground)) !important;
  opacity: 0.9;
}

.evv-tour .driver-popover-next-btn:active {
  transform: scale(0.97);
}

/* Previous button */
.evv-tour .driver-popover-prev-btn {
  background: transparent;
  color: rgb(var(--color-muted-foreground));
  border: 1px solid rgb(var(--color-border));
  border-radius: 0.625rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-shadow: none;
}

.evv-tour .driver-popover-prev-btn:hover {
  color: rgb(var(--color-foreground));
  border-color: rgb(var(--color-foreground));
}

/* Progress dots */
.evv-tour-dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.evv-tour-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: rgb(var(--color-border));
  transition: background 0.2s;
}

.evv-tour-dot.active {
  background: rgb(var(--color-accent));
}

/* Overlay */
.driver-overlay {
  background: rgba(0, 0, 0, 0.45) !important;
}
