/* Onboarding Tour Styles */

/* Overlay that darkens the background */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.tour-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Highlight box around the current element */
.tour-highlight {
    position: absolute;
    border: 3px solid #4CAF50;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 20px rgba(76, 175, 80, 0.6);
    z-index: 9999;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Tour tooltip/modal */
.tour-tooltip {
    position: fixed;
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
}

.tour-tooltip.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.tour-tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.tour-tooltip-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
    color: white;
}

.tour-tooltip-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.tour-tooltip-description {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.tour-progress {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

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

.tour-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tour-btn-prev {
    background: #e2e8f0;
    color: #4a5568;
}

.tour-btn-prev:hover {
    background: #cbd5e0;
}

.tour-btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tour-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tour-btn-finish {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.tour-btn-finish:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.tour-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tour-skip {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    z-index: 10001;
    display: none;
    transition: all 0.2s;
}

.tour-skip.active {
    display: block;
}

.tour-skip:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

/* Pulse animation for highlighted element */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 20px rgba(76, 175, 80, 0.6);
    }
    50% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 30px rgba(76, 175, 80, 0.8);
    }
}

.tour-highlight {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-tooltip {
        max-width: 90%;
        left: 5% !important;
        right: 5% !important;
        bottom: 20px !important;
        top: auto !important;
        padding: 20px;
    }
    
    .tour-tooltip-title {
        font-size: 18px;
    }
    
    .tour-tooltip-description {
        font-size: 14px;
    }
    
    .tour-tooltip-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .tour-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .tour-btn {
        flex: 1;
        min-width: 0;
        padding: 12px 16px;
    }
    
    .tour-progress {
        text-align: center;
        width: 100%;
    }
    
    .tour-skip {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .tour-tooltip {
        padding: 16px;
    }
    
    .tour-tooltip-title {
        font-size: 16px;
    }
    
    .tour-tooltip-description {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .tour-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}
