﻿/* Overlay that dims everything except the highlighted element */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.45);
    transition: opacity 0.25s ease;
}

/* Highlighted element gets punched through the overlay */
.tour-highlight {
    position: relative;
    z-index: 10001;
    box-shadow: 0 0 0 4px #0d6efd, 0 0 0 5000px rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

/* Tooltip bubble */
.tour-tooltip {
    position: absolute;
    z-index: 10002;
    background: #ffffff;
    color: #212529;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px 20px;
    max-width: 340px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 0.9rem;
    line-height: 1.5;
    animation: tourFadeIn 0.25s ease;
}

@keyframes tourFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arrow for tooltip */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    transform: rotate(45deg);
}

.tour-tooltip[data-position="bottom"]::before {
    top: -7px;
    left: 24px;
    border-right: none;
    border-bottom: none;
}

.tour-tooltip[data-position="top"]::before {
    bottom: -7px;
    left: 24px;
    border-left: none;
    border-top: none;
}

.tour-tooltip[data-position="left"]::before {
    right: -7px;
    top: 16px;
    border-left: none;
    border-top: none;
}

.tour-tooltip[data-position="right"]::before {
    left: -7px;
    top: 16px;
    border-right: none;
    border-bottom: none;
}

/* Step counter badge */
.tour-step-badge {
    display: inline-block;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}

.tour-tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.tour-tooltip-body {
    color: #495057;
    margin-bottom: 14px;
}

/* Navigation buttons */
.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.tour-btn {
    padding: 5px 14px;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.tour-btn-skip {
    background: transparent;
    color: #6c757d;
    border-color: #ced4da;
}

    .tour-btn-skip:hover {
        background: #f8f9fa;
    }

.tour-btn-prev {
    background: #f8f9fa;
    color: #212529;
    border-color: #ced4da;
}

    .tour-btn-prev:hover {
        background: #e9ecef;
    }

.tour-btn-next {
    background: #0d6efd;
    color: #fff;
}

    .tour-btn-next:hover {
        background: #0b5ed7;
    }

.tour-progress {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Floating help button */
.tour-help-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    border: none;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .tour-help-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.45);
    }

.tour-tooltip[data-position="overlay"]::before {
    display: none;
}

/* Hide help button while tour is active */
.tour-active .tour-help-btn {
    display: none;
}
