/* Guided Tour Overlay Styles */
#tour-overlay {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 25px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    /* Controlled by TourService */
    align-items: center;
    gap: 15px;
    z-index: 3000;
    max-width: 800px;
    width: auto;
    border: 2px solid var(--amypo-green);
    font-family: 'Segoe UI', sans-serif;
}

#tour-text {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.4;
    flex: 1;
    min-width: 250px;
}

.tour-controls {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.tour-btn {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
    transition: 0.2s;
}

.tour-btn:hover {
    background: #e0e6ed;
}

.voice-icon {
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dynamic Animated Arrows */
#tour-arrow {
    position: absolute;
    width: 0;
    height: 0;
    display: none;
    z-index: 3002;
    pointer-events: none;
    transition: top 0.3s, left 0.3s;
}

#tour-arrow.arrow-left {
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 25px solid var(--amypo-green);
    animation: bounceLeft 1s infinite alternate;
}

#tour-arrow.arrow-right {
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--amypo-green);
    animation: bounceRight 1s infinite alternate;
}

#tour-arrow.arrow-down {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--amypo-green);
    animation: bounceDown 0.8s infinite alternate;
}

@keyframes bounceLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-10px);
    }
}

@keyframes bounceRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(10px);
    }
}

@keyframes bounceDown {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

/* Target Highlight Ring */
.highlight-outline {
    outline: 4px solid var(--amypo-green) !important;
    border-radius: 4px;
    z-index: 2999;
    position: relative;
    box-shadow: 0 0 15px rgba(56, 142, 60, 0.4);
}

@keyframes pulseHighlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
        background-color: var(--success, #10b981);
        color: white;
        border-color: transparent;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.highlight-next {
    animation: pulseHighlight 1.5s infinite;
    background-color: var(--success, #10b981) !important;
    color: white !important;
    border-color: transparent !important;
}