/* Guided Tour Styles */

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    transition: opacity 0.3s ease;
    pointer-events: auto; /* Block interaction with the page behind the tour */
}

.tour-tooltip {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    max-width: 380px;
    width: 90vw;
    padding: 24px;
    animation: tourFadeIn 0.3s ease;
}

@keyframes tourFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tour-tooltip-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.tour-tooltip-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    padding: 0 0 0 12px;
    line-height: 1;
}

.tour-tooltip-close:hover {
    color: #333;
}

.tour-tooltip-body {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tour-tooltip-body p {
    margin: 0 0 8px 0;
}

.tour-tooltip-body p:last-child {
    margin-bottom: 0;
}

.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-step-counter {
    font-size: 0.82rem;
    color: #999;
}

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

.tour-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.tour-btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.tour-btn-secondary:hover {
    background: #e0e0e0;
}

.tour-btn-primary {
    background: #007bff;
    color: #fff;
}

.tour-btn-primary:hover {
    background: #0069d9;
}

.tour-btn-finish {
    background: #28a745;
    color: #fff;
}

.tour-btn-finish:hover {
    background: #218838;
}

.tour-highlight {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.4), 0 0 0 8000px rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
    pointer-events: none; /* Highlighted element is shown but not clickable during the tour */
}

.floating-help-btn.tour-highlight {
    position: fixed;
}

/* Welcome/centered tooltip (no target element) */
.tour-tooltip.tour-centered {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Arrow styles */
.tour-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

.tour-arrow-top {
    bottom: -6px;
    left: 24px;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.08);
}

.tour-arrow-bottom {
    top: -6px;
    left: 24px;
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.08);
}

.tour-arrow-left {
    right: -6px;
    top: 24px;
    box-shadow: 3px -2px 4px rgba(0, 0, 0, 0.08);
}

.tour-arrow-right {
    left: -6px;
    top: 24px;
    box-shadow: -2px 3px 4px rgba(0, 0, 0, 0.08);
}
