/* bubbles.css – base styles for Bubbles guided-tour library */

/* Color variables specific to the tour UI */
:root {
  --popover-background: #fdf8eb; /* very-light blue tint for bubbles */
}

/* Overlay segments share common style, unique sizing done via inline styles */
.driver-overlay {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto; /* block clicks on dimmed background */
  transition: all 0.15s ease;
}

/* Highlighted element (added via JS) */
.driver-active-element {
  outline: 2px solid #ffb200;
  outline-offset: 2px;
  border-radius: 4px;
  transition: outline-offset 0.25s ease;
}

/* Popover container */
.driver-popover {
  font-family: var(--font-family, sans-serif);
  color: #333;
  line-height: 1.4;
  /* Use a subtle blue tint for the popover so that it stands out from the highlighted element */
  background-color: var(--popover-background) !important;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.driver-popover-title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.driver-popover-description {
  max-height: 300px;
  overflow-y: auto;
}

/* Buttons styled like welcome modal */
.driver-popover-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.driver-popover-footer .driver-btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 3px 7px;
  text-decoration: none;
  text-shadow: 1px 1px 0 #fff;
  background-color: #fff;
  color: #2d2d2d;
  font: 12px/normal sans-serif;
  cursor: pointer;
  outline: 0;
  line-height: 1.3;
  border: 1px solid #ccc;
  border-radius: 3px;
  min-width: 80px;
  transition: background-color 0.2s ease;
}

.driver-popover-footer .driver-btn:hover {
  background-color: #f7f7f7;
}

.driver-popover-footer .driver-btn:disabled {
  background-color: #eee;
  cursor: default;
}

/* Close (x) button */
.driver-popover-close-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.driver-popover-close-btn:hover {
  color: #000;
}

/* Directional arrows for navigation buttons */
.driver-popover-prev-btn.arrow-prev::before {
  content: "← ";
}
.driver-popover-next-btn.arrow-next::after {
  content: " →";
}

/* Mobile-specific overrides for narrow screens */
@media (max-width: 500px) {
  .driver-popover {
    /* These styles are also enforced via JS in fixPopoverPositioning for immediate override */
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(25px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 160px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  .driver-popover-description {
    flex: 1 !important;
    max-height: none !important;
    overflow-y: auto !important;
  }

  .driver-popover-footer {
    margin-top: 10px !important;
    padding-top: 5px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    /* Ensure footer buttons stay in the same spot by giving it a fixed height */
    height: 35px !important;
    align-items: center !important;
  }

  /* Hide the pointer arrow on mobile bottom-docked mode */
  .driver-popover-arrow {
    display: none !important;
  }

  /* Ensure buttons have consistent widths on mobile to avoid layout shifts */
  .driver-popover-footer .driver-btn {
    min-width: 70px !important;
    text-align: center !important;
  }
  }

  /* Adjust data section height when wizard is active on mobile to prevent overlap with docked bubble */
  @media (max-width: 500px) {
  body[data-wizard-active="true"] .data-section:not(#mobile-data-message) {
    max-height: calc(100vh - var(--header-height, 60px) - 220px) !important;
  }

  body[data-wizard-active="true"] .data-section:not(#mobile-data-message) .table-container {
    max-height: calc(100vh - var(--header-height, 60px) - 220px - var(--data-section-card-header-height, 3rem)) !important;
  }
  } 
 