/* Custom styles that extend Tailwind */

/* Slide transitions */
.lesson-slide {
    transition: opacity 0.3s ease-in-out;
}

.lesson-slide.hidden {
    display: none;
}

.lesson-slide.active {
    opacity: 1;
}

/* Code editor styles */
#code-editor {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    tab-size: 2;
}

/* Custom scrollbar in code editor */
#code-editor::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
  
#code-editor::-webkit-scrollbar-track {
    background: #2d3748;
}
  
#code-editor::-webkit-scrollbar-thumb {
    background-color: #4a5568;
    border-radius: 4px;
}

/* Chapter toggle in course detail */
.fa-chevron-down {
    transition: transform 0.2s ease-in-out;
}

.transform.rotate-180 {
    transform: rotate(180deg);
}

/* Custom animation for loading state */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Slide navigation button hover effect */
#prev-slide:not(:disabled):hover,
#next-slide:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Progress bar animation */
.progress-bar-animated {
    transition: width 0.6s ease;
}
