/* Onboarding Guided Tour Stylesheet */

/* Shroud & Spotlight */
.tour-spotlight {
  position: absolute;
  pointer-events: none;
  z-index: 9998;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.75); /* Slate 900 75% opacity */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  border: 2px dashed #10b981; /* Brand green dashed border */
  box-shadow: 0 0 0 2px #10b981, 0 0 0 9999px rgba(15, 23, 42, 0.75);
}

/* Glassmorphic Popover Card */
.tour-popover {
  position: absolute;
  z-index: 9999;
  width: 320px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 20px;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.tour-popover.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Dark Mode support */
body.dark-mode .tour-popover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

/* Popover Content */
.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 8px;
}

body.dark-mode .tour-header {
  border-color: rgba(255, 255, 255, 0.06);
}

.tour-title {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

body.dark-mode .tour-title {
  color: #ffffff;
}

.tour-step-count {
  font-size: 0.8em;
  font-weight: 500;
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 9999px;
}

body.dark-mode .tour-step-count {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
}

.tour-body {
  font-size: 0.92em;
  line-height: 1.5;
  color: #475569;
}

body.dark-mode .tour-body {
  color: #cbd5e1;
}

/* Footer & Navigation Controls */
.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.tour-indicators {
  display: flex;
  gap: 6px;
}

.tour-dot {
  width: 7px;
  height: 7px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  transition: all 0.2s ease;
}

body.dark-mode .tour-dot {
  background: rgba(255, 255, 255, 0.2);
}

.tour-dot.is-active {
  background: #10b981;
  transform: scale(1.2);
}

.tour-nav-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Tour Buttons styling */
.tour-btn {
  font-size: 0.85em;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  outline: none;
}

.tour-btn-skip {
  background: transparent;
  color: #64748b;
  padding-left: 0;
  font-size: 0.85em;
  font-weight: 500;
  text-decoration: underline;
}

.tour-btn-skip:hover {
  color: #ef4444;
}

body.dark-mode .tour-btn-skip {
  color: #94a3b8;
}

body.dark-mode .tour-btn-skip:hover {
  color: #f87171;
}

.tour-btn-back {
  background: transparent;
  color: #475569;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.tour-btn-back:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .tour-btn-back {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .tour-btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tour-btn-next {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.tour-btn-next:hover {
  background: #059669;
  transform: translateY(-1px);
}

.tour-btn-next:active {
  transform: translateY(0);
}

/* Prevent pointer events clicking on active spotlight highlighted item */
.tour-highlighted-element {
  position: relative !important;
  z-index: 9997 !important;
  pointer-events: none !important;
}

/* Splash Card in screen center */
.tour-popover-center {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -40%) !important;
  width: 400px !important;
  max-width: 90vw !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.tour-popover-center.is-visible {
  transform: translate(-50%, -50%) !important;
}
