/* ============================================================
   EEZI GUIDED ONBOARDING TOUR STYLES
   ============================================================ */

/* Overlay backdrop */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.onboarding-overlay.active {
  pointer-events: auto;
}

/* Dark backdrop with hole for highlighted element */
.onboarding-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.onboarding-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Highlighted element spotlight */
.onboarding-spotlight {
  position: absolute;
  z-index: 10002;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.onboarding-spotlight::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 3px solid #ee4e34;
  border-radius: 10px;
  animation: onboarding-pulse 2s ease-in-out infinite;
}

@keyframes onboarding-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(238, 78, 52, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(238, 78, 52, 0);
  }
}

/* Tooltip popover */
.onboarding-tooltip {
  position: absolute;
  z-index: 10003;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  max-width: 380px;
  min-width: 300px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(10px);
  font-family: "Work Sans", sans-serif;
}

.onboarding-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tooltip arrow */
.onboarding-tooltip::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.onboarding-tooltip.arrow-top::before {
  top: -8px;
  left: 30px;
}

.onboarding-tooltip.arrow-bottom::before {
  bottom: -8px;
  left: 30px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.onboarding-tooltip.arrow-left::before {
  left: -8px;
  top: 24px;
}

.onboarding-tooltip.arrow-right::before {
  right: -8px;
  top: 24px;
  box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Step indicator */
.onboarding-step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.onboarding-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
  transition: all 0.3s ease;
}

.onboarding-step-dot.completed {
  background: #4caf50;
}

.onboarding-step-dot.active {
  background: #ee4e34;
  box-shadow: 0 0 0 3px rgba(238, 78, 52, 0.2);
  width: 12px;
  height: 12px;
}

.onboarding-step-counter {
  font-size: 12px;
  color: #888;
  margin-left: 8px;
  font-weight: 500;
}

/* Tooltip title */
.onboarding-tooltip-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

/* Tooltip description */
.onboarding-tooltip-description {
  font-size: 14px;
  color: #555;
  margin: 0 0 20px 0;
  line-height: 1.6;
}

/* Button row */
.onboarding-tooltip-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.onboarding-tooltip-actions-right {
  display: flex;
  gap: 8px;
}

/* Primary button (Go to page / Next) */
.onboarding-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #ee4e34;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: "Work Sans", sans-serif;
}

.onboarding-btn-primary:hover {
  background: #d4432d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(238, 78, 52, 0.3);
  color: #ffffff;
  text-decoration: none;
}

/* Secondary button (Dismiss / Skip) */
.onboarding-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: transparent;
  color: #888;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Work Sans", sans-serif;
}

.onboarding-btn-secondary:hover {
  color: #555;
  border-color: #ccc;
  background: #f8f8f8;
}

/* Welcome modal (first time) */
.onboarding-welcome {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10010;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  text-align: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-welcome.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.onboarding-welcome-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ee4e34, #f47c5a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  color: white;
}

.onboarding-welcome h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.onboarding-welcome p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 28px 0;
}

.onboarding-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Progress bar in dashboard */
.onboarding-progress-bar {
  background: #f0f0f0;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin: 12px 0 8px 0;
}

.onboarding-progress-fill {
  background: linear-gradient(90deg, #ee4e34, #f47c5a);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-progress-text {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 500;
}

/* Dashboard step markers */
.onboarding-step-marker {
  position: relative;
}

/* Checklist style in dashboard */
.onboarding-checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.onboarding-checklist-icon.completed {
  background: #4caf50;
  color: white;
}

.onboarding-checklist-icon.current {
  background: #ee4e34;
  color: white;
  animation: onboarding-pulse-icon 2s ease-in-out infinite;
}

.onboarding-checklist-icon.pending {
  background: #e0e0e0;
  color: #999;
}

@keyframes onboarding-pulse-icon {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(238, 78, 52, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(238, 78, 52, 0);
  }
}

/* Menu item highlight */
.onboarding-menu-highlight {
  position: relative;
}

.onboarding-menu-highlight::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -4px;
  right: -4px;
  bottom: -2px;
  border: 2px solid #ee4e34;
  border-radius: 6px;
  animation: onboarding-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

/* Floating restart button */
.onboarding-restart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ee4e34;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(238, 78, 52, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.onboarding-restart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(238, 78, 52, 0.4);
}

/* Inline abort button (near progress bar) */
.onboarding-abort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: transparent;
  color: #999;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Work Sans", sans-serif;
  white-space: nowrap;
}

.onboarding-abort-btn:hover {
  color: #d4432d;
  border-color: #d4432d;
  background: rgba(238, 78, 52, 0.05);
}

/* Inline restart button (near progress bar when completed) */
.onboarding-restart-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: transparent;
  color: #ee4e34;
  border: 1px solid #ee4e34;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Work Sans", sans-serif;
  white-space: nowrap;
}

.onboarding-restart-inline-btn:hover {
  background: #ee4e34;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .onboarding-tooltip {
    max-width: 300px;
    min-width: 260px;
    padding: 18px;
  }

  .onboarding-welcome {
    padding: 28px;
  }

  .onboarding-tooltip-title {
    font-size: 16px;
  }

  .onboarding-tooltip-description {
    font-size: 13px;
  }
}

/* Completion celebration */
.onboarding-complete-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10020;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.onboarding-complete-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.onboarding-complete-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-complete-overlay.visible .onboarding-complete-card {
  transform: scale(1);
}

.onboarding-complete-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.onboarding-complete-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.onboarding-complete-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 24px 0;
}
