/* Tour Guide Styles */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Background handled by spotlight shadow */
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows clicks to pass through initially */
}

.tour-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Spotlight effect using box-shadow on a pseudo-element or separate div */
.tour-spotlight {
    position: absolute;
    top: -9999px; /* Move off-screen initially to prevent shadow from covering page */
    left: -9999px;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
    z-index: 9999;
    opacity: 0; /* Hidden by default */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    pointer-events: none; /* Let clicks pass through to the highlighted element if needed, or block */
}

.tour-spotlight.active {
    opacity: 1;
}

.tour-tooltip {
    position: absolute;
    width: 300px;
    background: #1e293b; /* Dark blue/slate background */
    color: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #38bdf8; /* Cyan border */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.tour-tooltip h3 {
    margin-top: 0;
    color: #38bdf8; /* Cyan */
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tour-tooltip p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 20px;
}

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

.tour-step-indicator {
    font-size: 0.85rem;
    color: #94a3b8;
}

.tour-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.tour-btn-skip {
    background: transparent;
    color: #94a3b8;
}

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

.tour-btn-next {
    background: #38bdf8;
    color: #0f172a;
}

.tour-btn-next:hover {
    background: #0ea5e9;
}

/* Pulse animation for the spotlight border to draw attention */
@keyframes tour-pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.tour-spotlight::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #38bdf8;
    border-radius: 10px;
    animation: tour-pulse 2s infinite;
    pointer-events: none;
}
