/* Tour Overlay and UI */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.tour-highlight {
    position: fixed;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.tour-tooltip {
    position: fixed;
    z-index: 10000;
    background: white;
    width: 320px;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
}

.tour-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tour-tooltip-header h4 {
    margin: 0;
    color: #1e1b4b;
    font-size: 1.1rem;
}

.tour-progress {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
}

.tour-tooltip-content {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tour-btn-skip {
    background: transparent;
    border: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.tour-btn-skip:hover {
    color: #1e1b4b;
}

.tour-btn-next {
    background: #1e1b4b;
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.tour-btn-next:hover {
    background: #312e81;
}

/* Animations for tooltip entering */
@keyframes tour-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .tour-tooltip {
        width: calc(100% - 40px);
        left: 20px !important;
        bottom: 20px !important;
        top: auto !important;
    }
}