.demo-tour-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1400;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.demo-tour-highlight {
  position: fixed;
  z-index: 1401;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: all 0.3s ease;
}
.demo-tour-highlight::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--mud-palette-primary, #087CFA);
  border-radius: 10px;
  animation: demo-tour-pulse 2s ease-in-out infinite;
}

.demo-tour-popover {
  position: fixed;
  z-index: 1402;
  max-width: 340px;
  min-width: 280px;
  pointer-events: auto;
  animation: demo-tour-fade-in 0.2s ease-out;
}

.demo-tour-card {
  border-radius: 12px !important;
  border-top: 3px solid var(--mud-palette-primary, #087CFA);
}

.demo-tour-progress .mud-progress-linear {
  height: 4px;
}

.demo-tour-bottom-sheet {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  transform: none !important;
  animation: demo-tour-slide-up 0.3s ease-out;
}
.demo-tour-bottom-sheet .demo-tour-card {
  border-radius: 16px 16px 0 0 !important;
}

@keyframes demo-tour-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes demo-tour-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes demo-tour-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.dark-mode .demo-tour-backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.dark-mode .demo-tour-highlight {
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}
.dark-mode .demo-tour-card {
  border-top-color: var(--mud-palette-primary, #087CFA);
}
