/* ============= TUTORIAL MODAL ============= */

/* Tutorial Overlay */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000 !important;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

/* Tutorial Modal */
.tutorial-modal {
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease;
}

/* Tutorial Header */
.tutorial-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    text-align: center;
}

.tutorial-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
}

.tutorial-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Tutorial Body */
.tutorial-body {
    padding: 2.5rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tutorial Slide */
.tutorial-slide {
    display: none;
    animation: slideInRight 0.3s ease;
}

.tutorial-slide.active {
    display: block;
}

.tutorial-slide h3 {
    color: var(--brand-primary);
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tutorial-slide h3 i {
    font-size: 2rem;
}

.tutorial-slide p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tutorial-slide ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tutorial-slide li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.6;
}

.tutorial-slide li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-success);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Tutorial Footer */
.tutorial-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

/* Progress Dots */
.tutorial-progress {
    display: flex;
    gap: 0.5rem;
}

.tutorial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tutorial-dot.active {
    background: var(--brand-primary);
    width: 24px;
    border-radius: 5px;
}

/* Tutorial Actions */
.tutorial-actions {
    display: flex;
    gap: 1rem;
}

.tutorial-skip {
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.tutorial-skip:hover {
    color: var(--text-primary);
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tutorial-modal {
        width: 95%;
        max-height: 90vh;
    }

    .tutorial-header {
        padding: 1.5rem;
    }

    .tutorial-header h2 {
        font-size: 1.5rem;
    }

    .tutorial-body {
        padding: 1.5rem;
        min-height: 300px;
    }

    .tutorial-slide h3 {
        font-size: 1.25rem;
    }

    .tutorial-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .tutorial-actions {
        width: 100%;
        justify-content: space-between;
    }
}