/* Tutorial Navigation Styles and Scripts */

/* Content Centering */
.main-container,
.slide-container {
    padding-bottom: 100px !important; /* Space for bottom navigation */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-panel,
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

/* Navigation Bar Styles */
.tutorial-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-home {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-home:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-step.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scale(1.3);
}

.progress-step.completed {
    background: #10b981;
}

.nav-controls {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-2px);
}

.nav-btn:disabled,
.nav-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.nav-btn.primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6b4190);
}

/* Tutorial Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
}

.progress-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.progress-bar-container {
    background: #f1f5f9;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .progress-indicator {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .nav-controls {
        order: -1;
        width: 100%;
        justify-content: space-between;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}