/* ======================================================================
 * tour.css — Custom Driver.js popover styles for the Samson-fit guide app
 *
 * Primary color : #1a3c6e (dark blue)
 * Accent color  : #2563eb (Bootstrap primary blue)
 * Font family   : Arial, sans-serif
 * ====================================================================== */

/* ------------------------------------------------------------------ */
/*  Tour trigger button                                                */
/* ------------------------------------------------------------------ */

.guide-tour-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #1a3c6e;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 60, 110, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}

.guide-tour-btn:hover {
  background-color: #2563eb;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.guide-tour-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.guide-tour-btn:active {
  transform: scale(0.96);
}

.guide-tour-btn svg {
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/*  Driver.js popover — base (light theme)                             */
/* ------------------------------------------------------------------ */

.driver-popover.guide-tour-popover {
  font-family: Arial, sans-serif;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12),
              0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

/* Title area */
.driver-popover.guide-tour-popover .driver-popover-title {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a3c6e;
  line-height: 1.3;
  padding: 16px 20px 4px;
}

/* Description area */
.driver-popover.guide-tour-popover .driver-popover-description {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #334155;
  line-height: 1.55;
  padding: 4px 20px 12px;
}

/* ------------------------------------------------------------------ */
/*  Progress indicator                                                 */
/* ------------------------------------------------------------------ */

.driver-popover.guide-tour-popover .driver-popover-progress-text {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #94a3b8;
}

/* ------------------------------------------------------------------ */
/*  Navigation buttons                                                 */
/* ------------------------------------------------------------------ */

.driver-popover.guide-tour-popover .driver-popover-navigation-btns {
  padding: 8px 16px 14px;
  gap: 8px;
}

.driver-popover.guide-tour-popover .driver-popover-next-btn,
.driver-popover.guide-tour-popover .driver-popover-prev-btn,
.driver-popover.guide-tour-popover .driver-popover-close-btn {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 16px;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease;
}

/* Primary action button (Next / Done) */
.driver-popover.guide-tour-popover .driver-popover-next-btn {
  background-color: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
}

.driver-popover.guide-tour-popover .driver-popover-next-btn:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.driver-popover.guide-tour-popover .driver-popover-next-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Secondary action button (Previous) */
.driver-popover.guide-tour-popover .driver-popover-prev-btn {
  background-color: #fff;
  color: #1a3c6e;
  border: 1px solid #cbd5e1;
}

.driver-popover.guide-tour-popover .driver-popover-prev-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

/* Close button */
.driver-popover.guide-tour-popover .driver-popover-close-btn {
  background-color: transparent;
  color: #64748b;
  border: 1px solid transparent;
}

.driver-popover.guide-tour-popover .driver-popover-close-btn:hover {
  background-color: #f1f5f9;
  color: #334155;
}

/* ------------------------------------------------------------------ */
/*  Arrow / pointer                                                    */
/* ------------------------------------------------------------------ */

.driver-popover.guide-tour-popover .driver-popover-arrow {
  border: none;
}

.driver-popover.guide-tour-popover .driver-popover-arrow-side-left {
  border-left-color: #fff;
}

.driver-popover.guide-tour-popover .driver-popover-arrow-side-right {
  border-right-color: #fff;
}

.driver-popover.guide-tour-popover .driver-popover-arrow-side-top {
  border-top-color: #fff;
}

.driver-popover.guide-tour-popover .driver-popover-arrow-side-bottom {
  border-bottom-color: #fff;
}

/* ------------------------------------------------------------------ */
/*  Highlight overlay                                                  */
/* ------------------------------------------------------------------ */

.driver-active-element {
  border-radius: 4px;
}

.driver-highlighted-element {
  border: 3px solid #2563eb !important;
  border-radius: 6px !important;
  transition: border-color 0.25s ease;
}

/* ------------------------------------------------------------------ */
/*  Dark theme overrides                                               */
/* ------------------------------------------------------------------ */

[data-theme="dark"] .guide-tour-btn,
.guide-tour-btn[data-theme="dark"] {
  background-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .guide-tour-btn:hover {
  background-color: #3b82f6;
}

[data-theme="dark"] .driver-popover.guide-tour-popover {
  background-color: #1e293b;
  border-color: #334155;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
              0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-title {
  color: #e2e8f0;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-description {
  color: #cbd5e1;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-progress-text {
  color: #64748b;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-prev-btn {
  background-color: #334155;
  color: #e2e8f0;
  border-color: #475569;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-prev-btn:hover {
  background-color: #475569;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-next-btn {
  background-color: #2563eb;
  border-color: #2563eb;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-next-btn:hover {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-close-btn {
  color: #94a3b8;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-close-btn:hover {
  background-color: #334155;
  color: #e2e8f0;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-arrow-side-left {
  border-left-color: #1e293b;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-arrow-side-right {
  border-right-color: #1e293b;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-arrow-side-top {
  border-top-color: #1e293b;
}

[data-theme="dark"] .driver-popover.guide-tour-popover .driver-popover-arrow-side-bottom {
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .driver-highlighted-element {
  border-color: #3b82f6 !important;
}
