/* ============================================================ */
/* Demo Annotations — popup callouts for customer-facing walkthrough */
/* ============================================================ */

/* Annotation anchor — invisible hit target on the annotated element */
.demo-annotation-anchor {
  position: relative;
  cursor: help;
  outline: 2px dashed rgba(10,139,140,0.55);
  outline-offset: 3px;
  border-radius: 4px;
}
.demo-annotation-anchor::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 1.5px solid rgba(93,180,181,0.35);
  border-radius: 3px;
  pointer-events: none;
  transition: border-color .2s, background .2s;
}
.demo-annotation-anchor:hover::after,
.demo-annotation-anchor.active::after {
  border-color: #5db4b5;
  background: rgba(93,180,181,0.09);
}
.ann-cue {
  position: absolute;
  top: -11px;
  right: -11px;
  z-index: 5;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #0a8b8c;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  pointer-events: none;
}
tr.demo-annotation-anchor {
  outline-offset: -3px;
}
tr.demo-annotation-anchor .ann-cue {
  top: 50%;
  left: 4px;
  right: auto;
  transform: translateY(-50%);
}

/* Annotation popup */
.demo-annotation {
  position: fixed;
  z-index: 9999;
  background: #293333;
  color: #fff;
  border-radius: 6px;
  padding: 14px 18px;
  max-width: 340px;
  min-width: 220px;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.demo-annotation.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.demo-annotation .ann-step {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #5db4b5;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-annotation .ann-step::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #5db4b5;
  border-radius: 50%;
}
.demo-annotation .ann-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  color: #fff;
}
.demo-annotation .ann-body {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}
.demo-annotation .ann-body strong {
  color: #fff;
}
.demo-annotation .ann-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
  line-height: 1;
}
.demo-annotation .ann-close:hover {
  color: #fff;
}

/* Arrow */
.demo-annotation::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #293333;
  transform: rotate(45deg);
}
.demo-annotation.arrow-bottom::before { top: -6px; left: 24px; }
.demo-annotation.arrow-top::before    { bottom: -6px; left: 24px; }
.demo-annotation.arrow-right::before  { right: -6px; top: 18px; }
.demo-annotation.arrow-left::before   { left: -6px; top: 18px; }

/* Sidebar indicator dots */
.demo-annotation-indicator {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}
.demo-annotation-indicator .ann-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0a8b8c;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}
.demo-annotation-indicator .ann-dot.active {
  background: #5db4b5;
  border-color: #5db4b5;
  transform: scale(1.3);
}
.demo-annotation-indicator .ann-dot:hover {
  background: rgba(93,180,181,0.45);
}

/* Progress bar at top */
.demo-annotation-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10000;
  background: transparent;
}
.demo-annotation-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5db4b5, #4a9a9b);
  width: 0%;
  transition: width .3s ease;
  border-radius: 0 2px 2px 0;
}

/* Intro banner */
.demo-intro-banner {
  background: #293333;
  color: #fff;
  padding: 24px 28px;
  border-radius: 4px;
  margin-bottom: 22px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.demo-intro-banner .intro-icon {
  font-size: 32px;
  color: #5db4b5;
  flex-shrink: 0;
  margin-top: 2px;
}
.demo-intro-banner .intro-text h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}
.demo-intro-banner .intro-text p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.demo-intro-banner .intro-text a {
  color: #5db4b5;
  text-decoration: none;
}
.demo-intro-banner .intro-text a:hover {
  text-decoration: underline;
}

/* Start button */
.demo-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0c14b;
  color: #1f2929 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  margin-top: 14px;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 0 rgba(0,0,0,0.18);
}
.demo-start-btn:hover {
  background: #ffd36b;
  color: #1f2929 !important;
  text-decoration: none;
}

/* Keyboard hint */
.demo-keyboard-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
}
.demo-keyboard-hint kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 11px;
}

/* Pulse highlight */
@keyframes ann-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(10,139,140,0.32); }
  70%  { box-shadow: 0 0 0 10px rgba(10,139,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(93,180,181,0); }
}
.demo-annotation-anchor.highlight {
  animation: ann-pulse 2s ease-in-out 2;
}

/* Walkthrough navigation */
.walkthrough-bar {
  position: sticky;
  top: 48px;
  z-index: 900;
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr minmax(88px, auto) minmax(88px, auto);
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: #fff;
  border-bottom: 1px solid #d8dee4;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.walk-btn {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #c8d4d4;
  border-radius: 4px;
  background: #fff;
  color: #293333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.walk-btn:hover {
  background: #f4f9f9;
  color: #0a8b8c;
  border-color: #9fc7c8;
  text-decoration: none;
}
.walk-primary {
  background: #0a8b8c;
  border-color: #0a8b8c;
  color: #fff;
}
.walk-primary:hover {
  background: #087879;
  color: #fff;
  border-color: #087879;
}
.walk-btn.is-disabled {
  opacity: .42;
  pointer-events: none;
}
.walk-current {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.walk-count {
  font-size: 11px;
  font-weight: 700;
  color: #0a8b8c;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.walk-label {
  font-size: 14px;
  font-weight: 600;
  color: #293333;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.walk-annotation-btn {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #f0c14b;
  border-radius: 999px;
  background: #fff7df;
  color: #293333;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.walk-annotation-btn:hover {
  background: #ffe9a6;
}

@media (max-width: 760px) {
  .walkthrough-bar {
    grid-template-columns: 1fr 1fr;
    padding: 10px 14px;
  }
  .walk-current {
    grid-column: 1 / -1;
    order: -1;
    flex-wrap: wrap;
  }
  .walk-index {
    display: none;
  }
  .walk-label {
    white-space: normal;
  }
  .demo-annotation-indicator {
    right: 8px;
  }
}
