/* Brand-aware Shepherd skin. --tour-primary is set inline at :root by
   launcher.html so the tour matches each tenant's primary colour. */

:root {
    --tour-primary-soft: rgba(108, 76, 217, 0.08);
}

.shepherd-element {
    border-radius: 14px;
    /* Layered shadow: a coloured glow (emerald) for unmistakable contrast
       against any background, plus the natural dark drop. */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.55),
                0 0 0 6px rgba(16, 185, 129, 0.18),
                0 24px 60px -12px rgba(20, 14, 50, 0.55),
                0 8px 24px -6px rgba(20, 14, 50, 0.4);
    max-width: 400px;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: white;
}

.shepherd-content {
    border-radius: 14px;
    overflow: hidden;
    /* Bright accent stripe at the top so the popover reads as a distinct
       UI surface even when the user glances quickly. */
    border-top: 4px solid #10b981;
}

.shepherd-header {
    background: linear-gradient(180deg, var(--tour-primary-soft), transparent);
    padding: 20px 22px 8px;
}

.shepherd-title {
    color: #1f1d2b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    font-family: inherit;
}

.shepherd-text {
    padding: 6px 22px 18px;
    color: #4a4860;
    font-size: 14.5px;
    line-height: 1.55;
}

.shepherd-text strong { color: #1f1d2b; }

.shepherd-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid #f0eef7;
    background: #fbfaff;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.shepherd-footer .tour-progress {
    font-size: 12px;
    color: #8a87a3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.shepherd-footer .tour-buttons {
    display: flex;
    gap: 8px;
}

.shepherd-button {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    font-family: inherit;
}

.shepherd-button-primary {
    background: var(--tour-primary);
    color: white;
}
.shepherd-button-primary:hover { opacity: 0.92; }

.shepherd-button-secondary {
    background: white;
    color: #4a4860;
    border: 1px solid #e0dcec;
}
.shepherd-button-secondary:hover { background: #f5f3fb; }

.shepherd-button-ghost {
    background: transparent;
    color: #8a87a3;
}
.shepherd-button-ghost:hover { color: #4a4860; }

.shepherd-cancel-icon {
    color: #8a87a3;
    font-size: 18px;
    padding: 4px 8px;
}

.shepherd-modal-overlay-container {
    transition: opacity 0.2s;
}

/* Stronger page-dim so the popover reads as foreground, not part of the page. */
.shepherd-modal-overlay-container.shepherd-modal-is-visible {
    opacity: 0.6 !important;
}
.shepherd-modal-overlay-container path {
    fill-rule: evenodd;
    fill: rgba(20, 14, 50, 0.82);
}

/* Highlighted element: pulsing emerald ring so the focus is unmistakable
   against the dimmed-out page. */
.shepherd-target-highlighted {
    box-shadow: 0 0 0 3px #10b981,
                0 0 0 7px rgba(16, 185, 129, 0.35),
                0 0 0 14px rgba(16, 185, 129, 0.12) !important;
    border-radius: 8px;
    transition: box-shadow 0.2s;
    position: relative;
    z-index: 9998;
}

/* Launcher pill — bottom-left to avoid overlap with the bottom-right
   live activity feed used on the campaign homepage. Sits above Shepherd's
   modal overlay (z 9999) so it stays clickable mid-tour as a recovery
   hatch if a step ever fails to render. */
.tour-launcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10001;
    font-family: inherit;
}

/* Cross-page transition overlay. Shown while the controller navigates from
   one tour step to a step on a different page, so the user always sees
   *something* and never wonders whether a click did anything. */
.tour-transition-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 50, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out;
}
.tour-transition-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.tour-transition-card {
    background: white;
    border-radius: 14px;
    padding: 22px 28px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.55),
                0 0 0 6px rgba(16, 185, 129, 0.18),
                0 24px 60px -12px rgba(20, 14, 50, 0.55);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 440px;
}

.tour-transition-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(16, 185, 129, 0.25);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: tour-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes tour-spin {
    to { transform: rotate(360deg); }
}

.tour-transition-msg {
    color: #1f1d2b;
    font-size: 14px;
    font-weight: 600;
}

.tour-launcher-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tour-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px -6px rgba(20, 14, 50, 0.35);
    transition: transform 0.15s, opacity 0.15s;
}
.tour-launcher-pill:hover { transform: translateY(-1px); opacity: 0.96; }

.tour-launcher-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.tour-launcher-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 24px 60px -12px rgba(20, 14, 50, 0.35),
                0 6px 20px -8px rgba(20, 14, 50, 0.25);
    width: 320px;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tour-launcher-menu h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1f1d2b;
    margin: 0 0 4px;
    font-family: inherit;
}

.tour-launcher-menu p {
    font-size: 13px;
    color: #6a6885;
    margin: 0 0 14px;
    line-height: 1.5;
}

.tour-launcher-option {
    display: block;
    width: 100%;
    text-align: left;
    background: #f7f5fc;
    border: 1px solid transparent;
    color: #1f1d2b;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.tour-launcher-option:hover {
    background: #efebfa;
    border-color: var(--tour-primary);
}
.tour-launcher-option .sub {
    display: block;
    font-weight: 400;
    color: #6a6885;
    margin-top: 2px;
    font-size: 12px;
}

.tour-launcher-dismiss {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: #8a87a3;
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
    margin-top: 4px;
    font-family: inherit;
}
.tour-launcher-dismiss:hover { color: #4a4860; }
