/* Custom styling for Driver.js to match LLMScape branding */
:root {
  --driver-primary: #6419e6;
  --driver-primary-dark: #5315c0;
}

/* Prevent body scroll issues */
body.driver-active {
  overflow: hidden !important;
}

/* Ensure overlay covers entire viewport */
.driver-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Customize popover appearance */
.driver-popover {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  max-width: 380px;
  min-width: 300px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  box-sizing: border-box;
  position: fixed !important;
}

/* Dark theme support */
html[data-theme="dark"] .driver-popover {
  background-color: #2a303c;
  color: #e5e7eb;
}

/* Popover title styling with Syncopate font */
.driver-popover-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.5px;
  color: #1f2937;
  margin-bottom: 12px;
  display: block;
}

html[data-theme="dark"] .driver-popover-title {
  color: #e5e7eb;
}

/* Popover description */
.driver-popover-description {
  font-size: 16px;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 16px;
}

html[data-theme="dark"] .driver-popover-description {
  color: #d1d5db;
}

/* Popover footer */
.driver-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

/* Navigation buttons container */
.driver-popover-navigation-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Button styling */
.driver-popover-next-btn,
.driver-popover-prev-btn,
.driver-popover-close-btn {
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Next button styling */
.driver-popover-next-btn {
  background: var(--driver-primary) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

.driver-popover-next-btn:hover {
  background: var(--driver-primary-dark) !important;
}

/* Previous button styling */
.driver-popover-prev-btn {
  background-color: transparent !important;
  color: #4b5563 !important;
  border: 1px solid #d1d5db !important;
}

.driver-popover-prev-btn:hover {
  background-color: #f3f4f6 !important;
}

html[data-theme="dark"] .driver-popover-prev-btn {
  color: #d1d5db !important;
  border-color: #4b5563 !important;
}

html[data-theme="dark"] .driver-popover-prev-btn:hover {
  background-color: #374151 !important;
}

/* Close button styling */
.driver-popover-close-btn {
  background-color: transparent !important;
  color: #6b7280 !important;
  border: none !important;
  padding: 4px !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

.driver-popover-close-btn:hover {
  background-color: #f3f4f6 !important;
  color: #1f2937 !important;
}

html[data-theme="dark"] .driver-popover-close-btn {
  color: #9ca3af !important;
}

html[data-theme="dark"] .driver-popover-close-btn:hover {
  background-color: #374151 !important;
  color: #e5e7eb !important;
}

/* Progress text */
.driver-popover-progress-text {
  font-size: 15px;
  color: #6b7280;
}

html[data-theme="dark"] .driver-popover-progress-text {
  color: #9ca3af;
}

/* Ensure overlay behavior is correct */
.driver-overlay {
  pointer-events: auto;
}

/* Highlighted element should be interactive */
.driver-highlighted-element {
  pointer-events: auto;
}

/* Arrow styling */
.driver-popover-arrow {
  border-color: #ffffff;
}

html[data-theme="dark"] .driver-popover-arrow {
  border-color: #2a303c;
}
