/* Admin Guided Tour Custom Styles */

/* Show tooltips with custom styling - MUCH LARGER SIZE */
.introjs-tooltip.introjs-tooltip-tour {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  /* MUCH BIGGER SIZE - Made modal extremely large */
  min-width: 700px !important;
  max-width: 950px !important;
  min-height: 400px !important;
  max-height: calc(min(900px, calc(100vh - 40px))) !important;
  pointer-events: auto !important;
  z-index: 2147483647 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  /* Make space for progress bar at top */
  padding-top: 8px !important;
}

/* Pointer arrow - COMPREHENSIVE STYLING FOR ALL POSITIONS */
/* Base arrow styles - applies to all arrows */
.introjs-tooltipReferenceLayer .introjs-arrow,
.introjs-arrow {
  /* Consistent size for all arrows */
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 8px !important;
  /* Enhanced shadow for visibility */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15)) !important;
  /* Ensure arrow is visible */
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 999999 !important;
  /* Ensure proper positioning */
  position: absolute !important;
}

/* RIGHT ARROW - pointing left into tooltip from right side */
.introjs-tooltipReferenceLayer .introjs-arrow.right,
.introjs-arrow.right {
  border-left-color: #ffffff !important;
  border-right-color: transparent !important;
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
  transform: scale(2.0) !important;
  transform-origin: left center !important;
}

/* LEFT ARROW - pointing right into tooltip from left side */
.introjs-tooltipReferenceLayer .introjs-arrow.left,
.introjs-arrow.left {
  border-right-color: #ffffff !important;
  border-left-color: transparent !important;
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
  transform: scale(2.0) !important;
  transform-origin: right center !important;
}

/* TOP ARROW - pointing down into tooltip from top */
.introjs-tooltipReferenceLayer .introjs-arrow.top,
.introjs-arrow.top {
  border-bottom-color: #ffffff !important;
  border-top-color: transparent !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  transform: scale(2.0) !important;
  transform-origin: center bottom !important;
}

/* BOTTOM ARROW - pointing up into tooltip from bottom */
.introjs-tooltipReferenceLayer .introjs-arrow.bottom,
.introjs-arrow.bottom {
  border-top-color: #ffffff !important;
  border-bottom-color: transparent !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  transform: scale(2.0) !important;
  transform-origin: center top !important;
}

/* Scrollable content wrapper */
.introjs-tooltiptext {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Reserve exact space for button area (80px) - increased for bigger modal */
  max-height: calc(min(600px, calc(100vh - 80px)) - 80px);
  padding: 0;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Ensure content doesn't overlap buttons */
  position: relative;
  z-index: 1;
}

/* Header area - with space for progress bar at top */
.tour-step-content {
  /* Bigger padding for much larger modal */
  padding: 24px 30px 26px 30px; /* Increased padding for bigger size */
  min-width: 0;
  box-sizing: border-box;
}

.tour-step-content h4 {
  display: flex;
  align-items: center;
  gap: 16px; /* Increased gap */
  font-size: 24px; /* Bigger heading text */
  line-height: 32px; /* Increased line height */
  font-weight: 700;
  margin: 0 0 12px 0; /* Increased margin */
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  /* Allow long words like "E-commerce" to break properly */
  word-wrap: break-word;
}

/* Optional icon box if used - matches screenshot gradient style - BIGGER */
.tour-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; /* Bigger icon box */
  height: 48px; /* Bigger icon box */
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 24px; /* Bigger icon */
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  margin-right: 6px;
}

/* Body text - BIGGER */
.tour-step-content p {
  color: #2f2f2f;
  margin: 0 0 10px 0; /* Increased margin */
  font-size: 17px; /* Bigger text */
  line-height: 26px; /* Increased line height */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Footer with buttons - Skip on bottom-left with space, Previous/Next on bottom-right */
.introjs-tooltipbuttons {
  display: flex !important;
  justify-content: space-between !important; /* Maximum space between Skip (left) and navigation buttons (right) */
  align-items: center !important;
  padding: 16px 20px 20px 20px !important;
  border-top: 1px solid rgba(229, 231, 235, 0.8) !important;
  background: #ffffff !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04) !important;
  position: relative !important;
  z-index: 10 !important;
  min-height: 76px !important;
  box-sizing: border-box !important;
  gap: 20px !important; /* Add gap between button groups */
  width: 100% !important; /* make footer span full width for proper alignment */
}

/* Consistent button styling for all buttons */
.introjs-tooltipbuttons .introjs-button {
  /* Consistent size and spacing */
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  min-width: 80px !important;
  height: 36px !important;
  text-shadow: none;
  
  /* Consistent display and alignment */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  
  /* Reset margins and positioning */
  margin: 0 !important;
  position: relative !important;
  z-index: 5 !important;
  box-sizing: border-box !important;
  transform: translateZ(0) !important;
}

/* Button order: Previous should come first, then Next */
.introjs-tooltipbuttons {
  /* Custom flexbox order for better UX */
}

/* Button layout: Skip on bottom-left, Previous and Next on bottom-right */
.introjs-skipbutton {
  order: -1; /* Skip button goes first (left side) */
  margin-right: auto; /* Push navigation buttons to the right */
}

.introjs-prevbutton {
  order: 1; /* Previous button comes first in right group */
}

.introjs-nextbutton,
.introjs-donebutton {
  order: 2; /* Next/Done button comes second in right group */
}

/* Back button - neutral gray with better contrast */
.introjs-prevbutton {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}
.introjs-prevbutton:hover { 
  background: #f1f5f9 !important; 
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) translateZ(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Next button - primary with better styling */
.introjs-nextbutton,
.introjs-donebutton {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border: 1px solid #2563eb !important;
  font-weight: 700 !important; /* Make primary action more prominent */
  /* Ensure adequate width for content including icons */
  min-width: 100px !important;
  max-width: 150px !important;
  /* Handle content overflow */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  /* Ensure proper spacing for icons/arrows */
  gap: 6px !important;
}
.introjs-nextbutton:hover,
.introjs-donebutton:hover { 
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #1d4ed8 !important;
  transform: translateY(-1px) translateZ(0) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

/* Universal Skip button styling - covers all possible selectors */
.introjs-tooltipbuttons .introjs-skipbutton,
.introjs-skipbutton,
[data-role="skip"],
a[title="Skip"],
button[title="Skip"],
.introjs-tooltipbuttons a[onclick*="skip"],
.introjs-tooltipbuttons button[onclick*="skip"],
.introjs-tooltipbuttons [class*="skip"] {
  /* Base button properties - same as other buttons */
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  min-width: 80px !important;
  height: 36px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  
  /* Display and alignment - same as other buttons */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  
  /* Reset margins and positioning - same as other buttons */
  margin: 0 !important;
  position: relative !important;
  z-index: 999 !important;
  box-sizing: border-box !important;
  transform: translateZ(0) !important;
  
  /* Visibility properties */
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  
  /* Position in layout - ONLY within button area */
  order: -1 !important;
  margin-right: auto !important;
  
  /* Skip button specific colors */
  background: #dc3545 !important;
  color: #ffffff !important;
  border-color: #dc3545 !important;
}



/* Hide any skip text/buttons that appear in the content area (top-left) */
.introjs-tooltiptext *:contains("Skip"),
.tour-step-content *:contains("Skip"),
.introjs-tooltip > *:not(.introjs-tooltipbuttons):contains("Skip") {
  display: none !important;
  visibility: hidden !important;
}

/* More aggressive hiding of skip elements in content */
.introjs-tooltiptext .introjs-skipbutton,
.tour-step-content .introjs-skipbutton,
.introjs-tooltip > .introjs-skipbutton:not(.introjs-tooltipbuttons .introjs-skipbutton),
.introjs-tooltip .introjs-skipbutton:not(.introjs-tooltipbuttons *) {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

.introjs-tooltipbuttons .introjs-skipbutton:hover {
  background: #c82333 !important;
  border-color: #c82333 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.35) !important;
  transform: translateY(-1px) translateZ(0) !important;
}

.introjs-tooltipbuttons .introjs-skipbutton:active {
  background: #bd2130 !important;
  border-color: #bd2130 !important;
  transform: translateY(0) !important;
  box-shadow: 0 1px 3px rgba(220, 53, 69, 0.4) !important;
}

.introjs-tooltipbuttons .introjs-skipbutton:focus {
  outline: 2px solid rgba(220, 53, 69, 0.5) !important;
  outline-offset: 2px !important;
}

/* Tooltip header styles */
.introjs-tooltip-header {
  position: relative;
  z-index: 5;
  padding: 12px 20px 8px 20px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  background: #ffffff;
  border-radius: 16px 16px 0 0;
}

.introjs-tooltip-title {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  line-height: 24px;
}

/* Navigation button group - Previous and Next buttons grouped on right side */
.introjs-tooltipbuttons .navigation-group {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

/* Ensure Previous and Next buttons are grouped together */
.introjs-prevbutton + .introjs-nextbutton,
.introjs-prevbutton + .introjs-donebutton {
  margin-left: 8px !important;
}

/* Handle button icons and pseudo-elements to prevent text overlap */
.introjs-nextbutton::after,
.introjs-donebutton::after,
.introjs-prevbutton::after {
  /* Remove any arrow or icon pseudo-elements that might overlap */
  display: none !important;
  content: none !important;
}

/* Handle SVG icons or other elements inside buttons */
.introjs-nextbutton svg,
.introjs-donebutton svg,
.introjs-prevbutton svg,
.introjs-skipbutton svg {
  max-width: 16px !important;
  max-height: 16px !important;
  margin-left: 4px !important;
  flex-shrink: 0 !important;
}

/* Ensure button text doesn't wrap and handles icons properly */
.introjs-nextbutton,
.introjs-donebutton,
.introjs-prevbutton {
  /* Handle content with icons */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
}

/* Skip button duplicate rules removed - using single definition above */

/* Progress bullets hidden per config; if shown, style: */
.introjs-bullets li a {
  width: 8px; height: 8px; border-radius: 50%;
}

/* Highlighted element ring */
.introjs-helperLayer {
  background: transparent !important;
  border: 1px solid rgba(13, 94, 248, 0.8) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 20px rgba(13, 94, 248, 0.5) !important;
  z-index: 999999 !important;
}

/* Transparent overlay - no background to avoid hiding content */
.introjs-overlay {
  background: transparent !important;
  opacity: 0 !important;
  display: none !important;
}

/* Custom scrollbar for content area */
.introjs-tooltiptext::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.introjs-tooltiptext::-webkit-scrollbar-track {
  background: rgba(243, 244, 246, 0.5);
  border-radius: 4px;
}

.introjs-tooltiptext::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.7);
  border-radius: 4px;
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.introjs-tooltiptext::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.8);
}

/* Corner where horizontal and vertical scrollbars meet */
.introjs-tooltiptext::-webkit-scrollbar-corner {
  background: rgba(243, 244, 246, 0.5);
}

/* Features section spacing */
.tour-features {
  margin: 12px 0;
}

.tour-features h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #1f2937;
}

/* Handle long content and prevent horizontal overflow */
.tour-step-content {
  width: 100%;
  overflow-wrap: anywhere;
}

.tour-step-content * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure emojis and inline elements don't cause overflow */
.tour-step-content span,
.tour-step-content strong,
.tour-step-content em {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Enhanced dropdown expansion visual feedback */
.tour-dropdown-expanding {
  border: 2px solid #007bff !important;
  border-radius: 4px !important;
  background-color: rgba(0, 123, 255, 0.08) !important;
  animation: tourDropdownPulse 2s infinite;
}

@keyframes tourDropdownPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(0, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* Enhanced sidebar highlighting */
.tour-sidebar-highlight {
  position: relative !important;
  z-index: 1 !important;
}

.tour-sidebar-highlight::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #007bff;
  border-radius: 6px;
  pointer-events: none;
  animation: tourHighlightGlow 1.5s ease-in-out infinite alternate;
}

@keyframes tourHighlightGlow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* Skip tour highlight effects */
.tour-skip-highlight {
  border: 2px solid #f59e0b !important;
  border-radius: 8px !important;
  background-color: rgba(245, 158, 11, 0.1) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3) !important;
  animation: tourSkipPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 10000;
}

@keyframes tourSkipPulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5), 0 0 20px rgba(245, 158, 11, 0.3); 
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0), 0 0 30px rgba(245, 158, 11, 0.5);
    transform: scale(1.02);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 0 0 20px rgba(245, 158, 11, 0.3);
    transform: scale(1);
  }
}

/* Multiple highlight effect for skip tour */
.tour-skip-highlight-multiple {
  border: 2px solid #10b981 !important;
  border-radius: 8px !important;
  background-color: rgba(16, 185, 129, 0.1) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
  animation: tourSkipMultiPulse 1.5s ease-in-out infinite;
  position: relative;
  z-index: 10000;
}

@keyframes tourSkipMultiPulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); 
    border-color: #10b981;
  }
  25% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.3);
    border-color: #059669;
  }
  50% { 
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    border-color: #10b981;
  }
  75% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.3);
    border-color: #059669;
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    border-color: #10b981;
  }
}

/* Handle lists properly */
.tour-step-content ul,
.tour-step-content ol {
  padding-left: 20px;
  margin: 8px 0;
}

.tour-step-content li {
  margin: 4px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure tooltip positioning doesn't get affected by scroll */
.introjs-tooltip {
  position: absolute !important;
}

/* Better tooltip positioning - Position to avoid covering highlighted content */
.introjs-tooltip.introjs-tooltip-tour {
  /* Position in bottom right area to avoid covering content */
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  transform: none !important;
  margin: 0 !important;
  /* Ensure it stays in viewport - for much bigger modal */
  max-width: min(600px, calc(100vw - 40px)) !important;
  max-height: calc(100vh - 100px) !important;
}

/* Specific positioning fixes for right-positioned tooltips - MUCH LARGER SIZE */
.introjs-tooltip.introjs-right {
  /* Ensure right tooltips stay close to left sidebar */
  margin-left: 15px !important;
  max-width: 750px !important;
}

/* OVERRIDE: Force bottom-right positioning to avoid covering content */
.introjs-tooltip.introjs-tooltip-tour {
  /* Bottom-right positioning - HIGHEST PRIORITY */
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  transform: none !important;
  margin: 0 !important;
  max-width: min(600px, calc(100vw - 40px)) !important;
}

/* All tooltip positioning overrides use bottom-right */
.introjs-tooltip.introjs-right.introjs-tooltip-tour,
.introjs-tooltip.introjs-tooltip-tour.introjs-right {
  /* Override sidebar positioning - use bottom-right instead */
  bottom: 20px !important;
  right: 20px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin-left: 0 !important;
  max-width: min(600px, calc(100vw - 40px)) !important;
}

/* Collapsed/toggled sidebar width: 6.5rem (104px) + gap */
@media (max-width: 767px) {
  .introjs-tooltip.introjs-right.introjs-tooltip-tour,
  .introjs-tooltip.introjs-tooltip-tour.introjs-right {
    left: 116px !important; /* 104px collapsed sidebar + 12px gap */
    margin-left: 0 !important;
    max-width: 400px !important;
  }
}

/* When sidebar is toggled on desktop (still shows 6.5rem width) */
.sidebar.toggled ~ * .introjs-tooltip.introjs-right.introjs-tooltip-tour,
.sidebar.toggled ~ * .introjs-tooltip.introjs-tooltip-tour.introjs-right,
body.sidebar-toggled .introjs-tooltip.introjs-right.introjs-tooltip-tour,
body.sidebar-toggled .introjs-tooltip.introjs-tooltip-tour.introjs-right {
  left: 116px !important; /* 104px collapsed + 12px gap */
  max-width: 420px !important;
}

/* Override any inline positioning styles that might be applied */
.introjs-tooltip[style*="left"].introjs-right.introjs-tooltip-tour {
  left: 300px !important;
}

/* GLOBAL TOUR VISIBILITY - Ensure tour shows on all pages */
.introjs-tooltip,
.introjs-tooltipReferenceLayer,
.introjs-overlay,
.introjs-helperLayer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2147483647 !important;
}

/* Force tour elements to display regardless of page */
body .introjs-tooltip,
body .introjs-tooltipReferenceLayer,
body .introjs-overlay,
body .introjs-helperLayer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Override any conflicting styles that might hide tour */
* .introjs-tooltip,
* .introjs-tooltipReferenceLayer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Specific positioning fixes for left-positioned tooltips */
.introjs-tooltip.introjs-left {
  right: auto !important;
  margin-right: 10px !important;
  max-width: 420px !important;
}

/* Specific positioning fixes for bottom-positioned tooltips */
.introjs-tooltip.introjs-bottom {
  margin-top: 10px !important;
}

/* Specific positioning fixes for top-positioned tooltips */
.introjs-tooltip.introjs-top {
  margin-bottom: 10px !important;
}

/* Additional safeguard for button area */
.introjs-tooltipbuttons {
  min-height: 76px;
  position: relative;
  z-index: 1000;
}

/* Override position absolute for tour tooltip buttons */
.introjs-tooltip-tour .introjs-tooltipbuttons {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  margin: 0 !important;
}

/* Progress bar styling - positioned at the top above heading */
.introjs-progress {
  position: relative;
  top: 0;
  margin: 0 0 12px 0;
  width: 100%;
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}

/* Custom progress bar styling for tooltip tour */
.introjs-tooltip-tour .introjs-progress {
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0px;
}

.introjs-progressbar {
  height: 100%;
  background-color: #007bff;
  transition: width 0.3s ease;
}

/* .introjs-progressbar {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  height: 100%;
  border-radius: 16px 16px 0 0;
  transition: width 0.3s ease;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
} */

/* Button focus states for accessibility */
.introjs-button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Disabled state for buttons */
.introjs-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.introjs-button:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Specific positioning adjustments to prevent bottom cutoff */
.introjs-tooltip[style*="bottom:"] {
  margin-bottom: 6px !important;
}

/* Responsive adjustments */
@media (max-height: 600px) {
  .introjs-tooltip.introjs-tooltip-tour {
    max-height: 70vh;
  }
  
  .introjs-tooltiptext {
    max-height: calc(70vh - 120px);
  }
}

@media (max-width: 480px) {
  .introjs-tooltip.introjs-tooltip-tour {
    /* Mobile responsive positioning - bottom-right */
    position: fixed !important;
    bottom: 10px !important;
    right: 10px !important;
    transform: none !important;
    max-width: calc(100vw - 20px) !important; /* Leave 10px margin on each side */
    min-width: 280px !important;
    margin: 0 !important;
    max-height: calc(100vh - 80px) !important; /* Leave space for mobile navigation */
  }
}
  
@media (max-width: 768px) and (min-width: 481px) {
  .introjs-tooltip.introjs-tooltip-tour {
    /* Tablet responsive positioning - bottom-right */
    position: fixed !important;
    bottom: 15px !important;
    right: 15px !important;
    transform: none !important;
    max-width: calc(100vw - 30px) !important; /* Leave 15px margin on each side */
    min-width: 400px !important;
    margin: 0 !important;
    max-height: calc(100vh - 90px) !important; /* Leave space for tablet navigation */
  }
}

  .tour-step-content {
    /* No need for top-right clearance since Skip is now at bottom */
    padding: 16px 20px 18px 20px; /* Normal padding on mobile too */
  }
  
  .tour-step-content h4 {
    font-size: 18px;
    line-height: 24px;
  }
  
  .tour-step-content p {
    font-size: 14px;
    line-height: 20px;
  }
