/**
 * Rev Academy - Custom Intro.js styling
 * Styles personnalisés pour les tours guidés
 */

/* Custom tooltip styling to match app design */
.customIntroTooltip {
  background: white !important;
  border: 1px solid var(--primary-600) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  padding: 1.5rem !important;
  max-width: 400px !important;
}

.dark .customIntroTooltip {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #fafafa !important;
}

.customIntroTooltip .introjs-tooltip-header {
  padding: 0 2.5rem 1rem 0 !important;
  border-bottom: 1px solid var(--primary-600) !important;
  position: relative !important;
}

.dark .customIntroTooltip .introjs-tooltip-header {
  border-bottom-color: var(--primary-600) !important;
}

.customIntroTooltip .introjs-tooltip-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #18181b !important;
  line-height: 1.5 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

.dark .customIntroTooltip .introjs-tooltip-title {
  color: #fafafa !important;
}

.customIntroTooltip .introjs-tooltiptext {
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: #52525b !important;
}

.dark .customIntroTooltip .introjs-tooltiptext {
  color: #a1a1aa !important;
}

.customIntroTooltip .introjs-tooltipbuttons {
  display: flex !important;
  gap: 0.5rem !important;
  justify-content: flex-end !important;
  margin-top: 1.25rem !important;
}

.customIntroTooltip .introjs-button {
  border-radius: 0.75rem !important;
  padding: 0.625rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border: none !important;
  transition: all 0.15s ease !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  margin: 0 !important;
  text-align: center !important;
}

.customIntroTooltip .introjs-nextbutton,
.customIntroTooltip .introjs-donebutton {
  background: var(--primary-600) !important;
  color: white !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
  flex: 1 !important;
}

.customIntroTooltip .introjs-nextbutton:hover,
.customIntroTooltip .introjs-donebutton:hover {
  background: var(--primary-600) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px) !important;
}

.customIntroTooltip .introjs-prevbutton {
  background: #f4f4f5 !important;
  color: #52525b !important;
  flex: 1 !important;
}

.dark .customIntroTooltip .introjs-prevbutton {
  background: #27272a !important;
  color: #a1a1aa !important;
}

.customIntroTooltip .introjs-prevbutton:hover {
  background: #e4e4e7 !important;
}

.dark .customIntroTooltip .introjs-prevbutton:hover {
  background: #3f3f46 !important;
}

.customIntroTooltip .introjs-skipbutton {
  display: none !important;
}

.customIntroTooltip .introjs-progress {
  background: #f4f4f5 !important;
  border-radius: 9999px !important;
  height: 6px !important;
  margin-bottom: 1rem !important;
}

.dark .customIntroTooltip .introjs-progress {
  background: #27272a !important;
}

.customIntroTooltip .introjs-progressbar {
  background: var(--primary-600) !important;
  border-radius: 9999px !important;
}

.customIntroTooltip .introjs-arrow {
  border-color: white !important;
}

.dark .customIntroTooltip .introjs-arrow {
  border-color: #18181b !important;
}

/* Highlight styling */
.customIntroHighlight {
  border-radius: 1rem !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3) !important;
}

/* Close button - Styled as X icon */
.customIntroTooltip .introjs-skipbutton {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.5rem !important;
  background: transparent !important;
  color: #71717a !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-shadow: none !important;
}

.customIntroTooltip .introjs-skipbutton:hover {
  background: #f4f4f5 !important;
  color: #18181b !important;
}

.dark .customIntroTooltip .introjs-skipbutton {
  color: #a1a1aa !important;
}

.dark .customIntroTooltip .introjs-skipbutton:hover {
  background: #27272a !important;
  color: #fafafa !important;
}
