/* ───────────── First-login tour: replay button + driver.js theming ───────────── */

.tour-replay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-muted, #6b7280);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.tour-replay-btn:hover {
    background: var(--color-surface-muted, #f3f4f6);
    color: var(--color-primary, #1a365d);
}

/* driver.js popover — match the portal's look, and read right in RTL. */
.driver-popover {
    border-radius: .75rem;
    font-family: inherit;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.driver-popover-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.driver-popover-description {
    font-size: .9rem;
    line-height: 1.7;
}

.driver-popover-progress-text {
    font-size: .75rem;
    color: var(--color-text-muted, #6b7280);
    /* "1 of 6" is a figure sequence — keep it LTR so it doesn't flip on an
       Arabic (RTL) page. */
    direction: ltr;
}

/* Brand the primary (next/done) button. */
.driver-popover-navigation-btns button.driver-popover-next-btn,
.driver-popover-navigation-btns button.driver-popover-done-btn {
    background: var(--color-primary, #1a365d);
    color: #fff;
    text-shadow: none;
    border: none;
    border-radius: .4rem;
    font-weight: 600;
}

/* In an RTL document driver still lays the footer LTR; flip it so Back/Next
   sit on the natural side. */
html[dir="rtl"] .driver-popover-navigation-btns {
    flex-direction: row-reverse;
}
