/* Help Tutorial Button */
.help-tutorial-btn {
    background: var(--secondary-color, #4ECDC4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.help-tutorial-btn:hover {
    background: #45b8b1;
    transform: scale(1.1);
}

/* Onboarding Tutorial Styles */

/* Overlay and backdrop */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.onboarding-overlay.active {
    display: block;
}

/* Spotlight effect */
.onboarding-spotlight {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    transition: all 0.4s ease-in-out;
    z-index: 10001;
    pointer-events: none;
}

/* Tooltip container */
.onboarding-tooltip {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    transform: scale(0.8) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Tooltip arrow */
.onboarding-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.onboarding-tooltip.top::before {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.onboarding-tooltip.bottom::before {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.onboarding-tooltip.left::before {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.onboarding-tooltip.right::before {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

/* Tooltip content */
.onboarding-tooltip h3 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

.onboarding-tooltip p {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* Tooltip controls */
.onboarding-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.onboarding-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s ease;
}

.onboarding-dot.active {
    background: var(--primary-color);
}

.onboarding-buttons {
    display: flex;
    gap: 8px;
}

.onboarding-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-btn.skip {
    background: #f5f5f5;
    color: #666;
}

.onboarding-btn.skip:hover {
    background: #e5e5e5;
}

.onboarding-btn.next {
    background: var(--primary-color);
    color: white;
}

.onboarding-btn.next:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.onboarding-btn.prev {
    background: #f5f5f5;
    color: #333;
}

.onboarding-btn.prev:hover {
    background: #e5e5e5;
}

/* Welcome modal */
.onboarding-welcome {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    z-index: 10003;
    animation: welcomeSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes welcomeSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.onboarding-welcome h2 {
    color: var(--primary-color);
    margin: 0 0 16px 0;
    font-size: 28px;
}

.onboarding-welcome p {
    color: #666;
    margin: 0 0 32px 0;
    font-size: 16px;
    line-height: 1.5;
}

.onboarding-welcome-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.welcome-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.welcome-btn.start {
    background: var(--primary-color);
    color: white;
}

.welcome-btn.start:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.welcome-btn.skip {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.welcome-btn.skip:hover {
    background: #f5f5f5;
}

/* Pulsing effect for highlighted elements */
.onboarding-pulse {
    animation: onboardingPulse 2s infinite;
}

@keyframes onboardingPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .onboarding-tooltip {
        max-width: 280px;
        padding: 20px;
    }
    
    .onboarding-welcome {
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .onboarding-welcome h2 {
        font-size: 24px;
    }
    
    .welcome-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

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

/* Step completion animation */
.onboarding-step-complete {
    animation: stepComplete 0.6s ease-in-out;
}

@keyframes stepComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}