/* FIX TUTORIAL OVERLAY DESIGN - Candy Theme */

/* Tutorial Overlay Background */
.tutorial-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, 
        rgba(106, 17, 203, 0.85) 0%, 
        rgba(37, 117, 252, 0.85) 35%, 
        rgba(255, 107, 157, 0.85) 65%, 
        rgba(139, 127, 216, 0.85) 100%) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    padding: 20px !important;
}

/* Tutorial Content Container */
.tutorial-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(255, 107, 157, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    padding: 40px !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
    animation: tutorialBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* Tutorial Title */
.tutorial-content h2,
.tutorial-title {
    font-family: 'Fredoka', 'Quicksand', sans-serif !important;
    font-weight: 700 !important;
    font-size: 2.2em !important;
    color: #4A3C7D !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8) !important;
}

/* Welcome Text Styling */
.tutorial-content h2:first-child {
    color: #FF6B9D !important;
}

.tutorial-content h2 span {
    color: #4ECDC4 !important;
}

/* Close Button */
.tutorial-close,
.tutorial-overlay .close-button,
.tutorial-content > button:first-child {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    font-size: 24px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3) !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.tutorial-close:hover {
    transform: scale(1.1) rotate(90deg) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5) !important;
}

/* Tutorial Body Text */
.tutorial-body,
.tutorial-content p {
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 600 !important;
    color: #4A3C7D !important;
    font-size: 1.1em !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* Progress Dots */
.tutorial-progress,
.progress-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 20px 0 !important;
}

.tutorial-progress span,
.progress-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: rgba(139, 127, 216, 0.3) !important;
    transition: all 0.3s ease !important;
}

.tutorial-progress span.active,
.progress-dot.active,
.tutorial-progress span:first-child {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%) !important;
    transform: scale(1.2) !important;
}

/* Tutorial Navigation Buttons */
.tutorial-navigation,
.tutorial-actions {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    margin-top: 30px !important;
}

.tutorial-navigation button,
.tutorial-prev,
.tutorial-next,
.tutorial-finish {
    padding: 14px 32px !important;
    border-radius: 25px !important;
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.05em !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    min-width: 120px !important;
}

/* Back Button */
.tutorial-prev {
    background: rgba(139, 127, 216, 0.2) !important;
    border: 2px solid #8B7FD8 !important;
    color: #8B7FD8 !important;
}

.tutorial-prev:hover {
    background: rgba(139, 127, 216, 0.3) !important;
    transform: translateX(-5px) scale(1.05) !important;
}

/* Next/Continue Button */
.tutorial-next,
.tutorial-finish {
    background: linear-gradient(135deg, #8B7FD8 0%, #9B8FE8 100%) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(139, 127, 216, 0.3) !important;
}

.tutorial-next:hover,
.tutorial-finish:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(139, 127, 216, 0.4) !important;
}

/* Animation */
@keyframes tutorialBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Scrollbar Styling */
.tutorial-content::-webkit-scrollbar {
    width: 8px;
}

.tutorial-content::-webkit-scrollbar-track {
    background: rgba(139, 127, 216, 0.1);
    border-radius: 4px;
}

.tutorial-content::-webkit-scrollbar-thumb {
    background: rgba(139, 127, 216, 0.5);
    border-radius: 4px;
}

.tutorial-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 127, 216, 0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tutorial-content {
        padding: 30px 20px !important;
        width: 95% !important;
        max-height: 85vh !important;
    }
    
    .tutorial-content h2 {
        font-size: 1.8em !important;
    }
    
    .tutorial-body,
    .tutorial-content p {
        font-size: 1em !important;
    }
    
    .tutorial-navigation {
        flex-direction: column !important;
    }
    
    .tutorial-navigation button {
        width: 100% !important;
    }
}