/* ============================================================
   Interactive Demo Tour (Slack-style guided walkthrough)
   ============================================================ */

.equip-demo-fab {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 999999;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.equip-demo-fab button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 650;
  transition: all 0.3s ease;
}

.equip-demo-fab button:hover {
  transform: translateY(-2px);
}

.equip-demo-fab .equip-demo-start {
  background: #007AFF;
  color: #fff;
}

.equip-demo-fab .equip-demo-reset {
  background: #111;
  color: #fff;
  opacity: 0.92;
}

.equip-demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  pointer-events: none;
}

.equip-demo-backdrop {
  position: absolute;
  inset: 0;
  /* Dark backdrop for demo tour - only visible when tour is active */
  background: rgba(0, 0, 0, 0.42);
  /* Block all clicks to the app during tour */
  pointer-events: auto;
  cursor: not-allowed;
}

/* Allow clicks on form elements during tour (for step 2) */
.equip-demo-overlay.active-step-2 input,
.equip-demo-overlay.active-step-2 select,
.equip-demo-overlay.active-step-2 textarea {
  pointer-events: auto !important;
  position: relative;
  z-index: 9999999 !important;
}

.equip-demo-spotlight {
  position: absolute;
  border-radius: 14px;
  /* Keep the highlighted area 100% unmodified/undimmed (preserves underlying borders) */
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 3px solid #007AFF;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.9),
    /* Darken everything outside the spotlight */
    0 0 0 9999px rgba(0,0,0,0.72);
  /* Block clicks to the highlighted element during tour */
  pointer-events: auto;
  cursor: not-allowed;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.equip-demo-welcome-message {
  position: fixed;
  right: 18px;
  top: 70px;
  z-index: 999998;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 320px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #212529;
  animation: slideInFromRight 0.3s ease-out;
}

.equip-demo-welcome-message .equip-demo-welcome-close {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.equip-demo-welcome-message .equip-demo-welcome-close:hover {
  color: #212529;
}

.equip-demo-tooltip {
  position: absolute;
  width: min(360px, calc(100vw - 28px));
  background: #fff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.26);
  padding: 14px 14px 12px;
  pointer-events: auto;
}

.equip-demo-tooltip .equip-demo-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: #111;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}

.equip-demo-tooltip .equip-demo-close:hover {
  background: #f2f2f2;
}

.equip-demo-tooltip h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
}

.equip-demo-tooltip p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}

.equip-demo-tooltip .equip-demo-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}

.equip-demo-tooltip .equip-demo-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.equip-demo-tooltip .equip-demo-progress {
  font-size: 12px;
  color: #666;
}

.equip-demo-tooltip .equip-demo-actions {
  display: flex;
  gap: 8px;
}

.equip-demo-tooltip .equip-demo-done-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.equip-demo-tooltip .equip-demo-get-started {
  background: #007AFF;
  color: #fff;
}

.equip-demo-tooltip .equip-demo-view-sample {
  background: #007AFF;
  color: #fff;
}

.equip-demo-tooltip .equip-demo-start-template {
  background: #28a745;
  color: #fff;
}

.equip-demo-tooltip button {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 650;
  font-size: 12px;
}

.equip-demo-tooltip .equip-demo-back {
  background: #f2f2f2;
  color: #111;
}

.equip-demo-tooltip .equip-demo-next {
  background: #007AFF;
  color: #fff;
}

.equip-demo-tooltip .equip-demo-create-equipment {
  background: #e5e5e5;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.equip-demo-tooltip .equip-demo-create-equipment:hover {
  background: #e5e5e5;
  color: #666;
}

.equip-demo-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 84px;
  z-index: 999999;
  background: rgba(0,0,0,0.86);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.22);
  max-width: min(520px, calc(100vw - 28px));
}
