/* =============================================================================
 * First-login product tour (see js/tour.js).
 * A dim backdrop with a "spotlight" cut-out over the highlighted element (the
 * box-shadow trick), plus a popover with the step text and controls. Theme-aware
 * via [data-bs-theme]; the primary button uses the user's brand accent.
 * z-index sits above Syncfusion dialogs/popups so the tour is never occluded.
 * ========================================================================== */

.tour-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30000;
}
/* Steps without a target element (welcome / finish) dim the whole screen. */
.tour-backdrop.is-dim {
    background: rgba(0, 0, 0, .55);
}

.tour-spotlight {
    position: fixed;
    z-index: 30001;
    border-radius: 10px;
    /* The huge spread shadow IS the dim layer; the element inside stays visible. */
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55);
    outline: 2px solid rgba(255, 255, 255, .85);
    pointer-events: none;
    transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}

.tour-popover {
    position: fixed;
    z-index: 30002;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #fff;
    color: #1f2a37;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .45);
    padding: 16px 18px;
    font-size: .9rem;
    line-height: 1.45;
}
.tour-pop-head { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.tour-pop-body { color: #4b5563; }
.tour-pop-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}
.tour-pop-count { font-size: .78rem; color: #9ca3af; white-space: nowrap; }
.tour-pop-btns { display: flex; gap: 8px; }

.tour-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: .85rem;
    cursor: pointer;
    transition: background .12s ease, filter .12s ease;
}
.tour-btn:hover { background: #f3f4f6; }
.tour-skip { border-color: transparent; color: #6b7280; padding-left: 2px; }
.tour-skip:hover { background: transparent; text-decoration: underline; }
.tour-primary {
    background: var(--s2c-primary, #02263F);
    border-color: var(--s2c-primary, #02263F);
    color: #fff;
}
.tour-primary:hover { background: var(--s2c-primary, #02263F); filter: brightness(1.1); }

/* Dark theme */
[data-bs-theme="dark"] .tour-popover { background: #1f2937; color: #f3f4f6; border-color: #374151; }
[data-bs-theme="dark"] .tour-pop-body { color: #cbd5e1; }
[data-bs-theme="dark"] .tour-btn { background: #374151; border-color: #4b5563; color: #e5e7eb; }
[data-bs-theme="dark"] .tour-btn:hover { background: #4b5563; }
[data-bs-theme="dark"] .tour-skip { background: transparent; color: #9ca3af; }
[data-bs-theme="dark"] .tour-primary { color: #fff; }
