/* Tutorial Overlay */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

.tutorial-overlay.no-blur {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0);
}

.tutorial-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease-out;
    margin: 20px;
    z-index: 10001;
}

.tutorial-title {
    color: #4cc9f0;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

.tutorial-text {
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 1.1rem;
}

.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.tutorial-prev,
.tutorial-next,
.tutorial-close {
    background: linear-gradient(45deg, #4cc9f0, #4895ef);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.3);
}

.tutorial-prev:hover,
.tutorial-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.4);
}

.tutorial-prev:active,
.tutorial-next:active {
    transform: translateY(0);
}

.tutorial-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.tutorial-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tutorial-dots {
    display: flex;
    gap: 8px;
}

.tutorial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-dot.active {
    background-color: #4cc9f0;
    transform: scale(1.2);
}

/* Position classes */
.tutorial-content.top {
    margin-bottom: 20px;
}

.tutorial-content.bottom {
    margin-top: 20px;
}

.tutorial-content.left {
    margin-right: 20px;
}

.tutorial-content.right {
    margin-left: 20px;
}

/* Highlight effect */
.tutorial-highlight {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3),
                0 0 0 3px #4cc9f0,
                0 0 25px 8px rgba(76, 201, 240, 0.6);
    pointer-events: none;
    z-index: 10000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 201, 240, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tutorial-content {
        width: 85%;
        padding: 20px 15px;
    }
    
    .tutorial-title {
        font-size: 1.3rem;
    }
    
    .tutorial-text {
        font-size: 1rem;
    }
}
