/* tour styles. Extracted from tools/partials/tour.blade.php. */

.tour-help-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary, #3b82f6);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tour-help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}
[dir="rtl"] .tour-help-btn {
    right: auto;
    left: 24px;
}

.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}
.tour-overlay.active {
    pointer-events: auto;
}

.tour-highlight {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.55);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    pointer-events: none;
}

.tour-tooltip {
    position: absolute;
    background: var(--bg-white, #fff);
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 10002;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}
.tour-tooltip-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg-white, #fff);
    transform: rotate(45deg);
    z-index: -1;
}

/* Arrow positions */
.tour-tooltip[data-position="bottom"] .tour-tooltip-arrow {
    top: -6px;
    left: 50%;
    margin-left: -6px;
}
.tour-tooltip[data-position="top"] .tour-tooltip-arrow {
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
}
.tour-tooltip[data-position="left"] .tour-tooltip-arrow {
    right: -6px;
    top: 50%;
    margin-top: -6px;
}
.tour-tooltip[data-position="right"] .tour-tooltip-arrow {
    left: -6px;
    top: 50%;
    margin-top: -6px;
}

/* RTL arrow flip for left/right */
[dir="rtl"] .tour-tooltip[data-position="left"] .tour-tooltip-arrow {
    right: auto;
    left: -6px;
}
[dir="rtl"] .tour-tooltip[data-position="right"] .tour-tooltip-arrow {
    left: auto;
    right: -6px;
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.tour-step-counter {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #3b82f6);
    background: rgba(59,130,246,0.1);
    padding: 2px 10px;
    border-radius: 12px;
}
.tour-close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--text-light, #9ca3af);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s;
}
.tour-close-btn:hover {
    background: var(--bg-light, #f3f4f6);
    color: var(--text-dark, #111);
}
.tour-tooltip-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark, #111);
    margin: 0 0 6px;
}
.tour-tooltip-text {
    font-size: 14px;
    color: var(--text-light, #6b7280);
    margin: 0 0 16px;
    line-height: 1.5;
}
.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.tour-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}
.tour-btn-skip {
    background: none;
    color: var(--text-light, #9ca3af);
}
.tour-btn-skip:hover {
    color: var(--text-dark, #111);
}
.tour-btn-next {
    background: var(--primary, #3b82f6);
    color: #fff;
}
.tour-btn-next:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .tour-tooltip {
        width: 260px;
        padding: 16px;
    }
    .tour-tooltip-title { font-size: 15px; }
    .tour-tooltip-text { font-size: 13px; }
    .tour-help-btn {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    [dir="rtl"] .tour-help-btn {
        right: auto;
        left: 16px;
    }
}
