/* =========================
   Global Dark Theme for Intro.js
   ========================= */

/* Tooltip box */
.introjs-tooltip {
  background-color: #1e1e1e !important;
  color: #f0f0f0 !important;
  border: 1px solid #333 !important;
  border-radius: var(--uniRadius) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
  max-width: 200px !important;      /* narrower */
  padding: 8px 10px !important;     /* less padding */
  font-size: 13px !important;       /* smaller font */
  line-height: 1.3 !important;      /* tighter lines */
  z-index: 10000 !important;
  box-sizing: border-box !important;
}

/* Hide tooltip arrows */
.introjs-tooltip:before,
.introjs-tooltip:after {
  display: none !important;
}

/* Buttons container */
.introjs-tooltipbuttons {
  background-color: #1e1e1e !important;
  border-top: 1px solid #333 !important;
  display: flex !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;          /* wrap on narrow screens */
}

/* Buttons */
/* Make button text sharp */


/* Buttons */
.introjs-button {
  font-size: 12px !important;
  padding: 2px 8px !important;
  margin: 2px !important;
  border-radius: var(--uniRadius) !important;
}


.introjs-button:hover {
  background-color: #444 !important;
}

/* Highlighted element border */
.introjs-helperLayer {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid #666 !important;
}

/* Step number circles */
.introjs-bullets li a {
  background: #555 !important;
}

.introjs-bullets li a.active {
  background: #f0f0f0 !important;
}

/* Floating tooltips (intro-only steps) centered */
.introjs-tooltip.introjs-floating.intro-only {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-width: 90vw !important;
  max-height: 80vh !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}

/* Flash effect for clickable elements */
.flash {
  animation: flash 1s infinite;
}

@keyframes flash {
  0%, 100% { box-shadow: 0 0 0px #f39c12; }
  50% { box-shadow: 0 0 12px #f39c12; }
}
