/* Guided tour popover (driver.js) and the "What's New" toast. */

.driver-popover.accolyst-tour-popover {
  --tour-primary: var(--portal-primary, #0f3d91);
  --tour-bg: #ffffff;
  --tour-text: #172033;
  --tour-muted: #718096;
  --tour-border: rgba(15, 61, 145, 0.15);
  background-color: var(--tour-bg);
  color: var(--tour-text);
  border-radius: 10px;
  padding: 16px 18px 14px;
  min-width: 260px;
  max-width: 340px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.driver-popover.accolyst-tour-popover * {
  font-family: "Inter", "Public Sans", "Cairo", ui-sans-serif, Helvetica, Arial, sans-serif;
}

.accolyst-tour-popover .driver-popover-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tour-text);
  padding-inline-end: 22px;
}

.accolyst-tour-popover .driver-popover-description {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tour-text);
  opacity: 0.85;
}

.accolyst-tour-popover .driver-popover-close-btn {
  color: var(--tour-muted);
}

.accolyst-tour-popover .driver-popover-footer {
  gap: 8px;
  flex-wrap: wrap;
}

.accolyst-tour-popover .driver-popover-progress-text {
  font-size: 12px;
  color: var(--tour-muted);
  unicode-bidi: plaintext;
}

.accolyst-tour-popover .driver-popover-footer button {
  text-shadow: none;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--tour-border);
  background: transparent;
  color: var(--tour-text);
}

.accolyst-tour-popover .driver-popover-footer .driver-popover-next-btn {
  background: var(--tour-primary);
  border-color: var(--tour-primary);
  color: #fff;
}

.accolyst-tour-popover .driver-popover-footer .driver-popover-next-btn:hover,
.accolyst-tour-popover .driver-popover-footer .driver-popover-next-btn:focus {
  background: var(--tour-primary);
  filter: brightness(1.1);
}

.accolyst-tour-popover .driver-popover-footer button.accolyst-tour-skip {
  border: 0;
  padding: 5px 4px;
  color: var(--tour-muted);
  text-decoration: underline;
}

.accolyst-tour-popover .driver-popover-arrow {
  border-color: var(--tour-bg);
}

.accolyst-tour-popover .driver-popover-arrow-side-left,
.accolyst-tour-popover .driver-popover-arrow-side-right,
.accolyst-tour-popover .driver-popover-arrow-side-top,
.accolyst-tour-popover .driver-popover-arrow-side-bottom {
  border-color: var(--tour-bg);
}

.accolyst-tour-popover .driver-popover-arrow-side-left { border-right-color: transparent; border-bottom-color: transparent; border-top-color: transparent; }
.accolyst-tour-popover .driver-popover-arrow-side-right { border-left-color: transparent; border-bottom-color: transparent; border-top-color: transparent; }
.accolyst-tour-popover .driver-popover-arrow-side-top { border-right-color: transparent; border-bottom-color: transparent; border-left-color: transparent; }
.accolyst-tour-popover .driver-popover-arrow-side-bottom { border-left-color: transparent; border-top-color: transparent; border-right-color: transparent; }

.dark-style .driver-popover.accolyst-tour-popover {
  --tour-primary: var(--portal-primary, #60a5fa);
  --tour-bg: #1e293b;
  --tour-text: #e5e7eb;
  --tour-muted: #94a3b8;
  --tour-border: rgba(148, 163, 184, 0.3);
}

[dir="rtl"] .driver-popover.accolyst-tour-popover {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .accolyst-tour-popover .driver-popover-close-btn {
  right: auto;
  left: 0;
}

[dir="rtl"] .accolyst-tour-popover .driver-popover-navigation-btns {
  justify-content: flex-start;
}

[dir="rtl"] .accolyst-tour-popover .driver-popover-navigation-btns button + button {
  margin-left: 0;
  margin-right: 4px;
}

/* What's New toast */
.accolyst-whatsnew-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1080;
  width: 300px;
  max-width: calc(100vw - 40px);
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--portal-surface, #fff);
  color: var(--portal-text, #172033);
  border: 1px solid var(--portal-border, rgba(15, 61, 145, 0.1));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  animation: accolyst-toast-in 0.25s ease-out;
}

[dir="rtl"] .accolyst-whatsnew-toast {
  right: auto;
  left: 20px;
}

.accolyst-whatsnew-toast-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.accolyst-whatsnew-toast-text {
  font-size: 13px;
  color: var(--portal-muted, #718096);
  margin-bottom: 10px;
}

.accolyst-whatsnew-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@keyframes accolyst-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Help menu: unseen release marker */
.accolyst-whatsnew-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-inline-start: 6px;
  vertical-align: middle;
}
