/* Tour Styles */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.tour-popup {
    position: fixed;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 600px;
    animation: slideIn 0.3s ease;
    border: 2px solid var(--primary);
}

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

.tour-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.tour-step-counter {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tour-content {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--card-dark);
}

.tour-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tour-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
}

.tour-actions button:first-child {
    background: var(--primary);
    color: white;
}

.tour-actions button:nth-child(2) {
    background: var(--secondary);
    color: white;
}

.tour-actions button:last-child {
    background: var(--gray);
    color: white;
}

.tour-highlight {
    position: relative;
    /* z-index: 10002 !important; */
    z-index: 10001 !important;
    box-shadow: 0 0 0 3px var(--primary), 0 0 20px rgba(56, 133, 236, 0.5) !important;
    border-radius: 8px;
}

.tour-button {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--warning);
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.tour-button:hover {
    transform: scale(1.1);
    background: #e65100;
    opacity: 1;
    
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive tour */
@media (max-width: 768px) {
    .tour-popup {
        /* max-width: 280px; */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        /* margin: 0 1rem; */
        width: 90%;
    }
    
    .tour-popup[style*="top:"] {
        top: 15% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .tour-button {
        /* bottom: 5rem;
        right: 0.5rem; */
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        top: 1rem;
        left: 1rem; 
    }
}