/* E-Learning Platform - Custom Styles */

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Markdown content styles */
.prose-content h1 { font-size: 1.75rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #1a1a2e; }
.prose-content h2 { font-size: 1.4rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #1a1a2e; }
.prose-content h3 { font-size: 1.15rem; font-weight: 600; margin: 1rem 0 0.5rem; color: #1a1a2e; }
.prose-content p { margin: 0.5rem 0; line-height: 1.7; color: #374151; }
.prose-content ul, .prose-content ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.prose-content li { margin: 0.25rem 0; line-height: 1.6; }
.prose-content ul li { list-style-type: disc; }
.prose-content ol li { list-style-type: decimal; }
.prose-content code { background: #f3f4f6; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.875rem; color: #e11d48; }
.prose-content pre { background: #1f2937; color: #e5e7eb; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin: 1rem 0; }
.prose-content pre code { background: none; color: inherit; padding: 0; }
.prose-content blockquote { border-left: 4px solid #6366f1; padding-left: 1rem; margin: 1rem 0; color: #6b7280; font-style: italic; }
.prose-content a { color: #4f46e5; text-decoration: underline; }
.prose-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose-content th, .prose-content td { border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; text-align: left; }
.prose-content th { background: #f9fafb; font-weight: 600; }
.prose-content img { max-width: 100%; border-radius: 0.5rem; margin: 1rem 0; }
.prose-content hr { border: 0; border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Slide editor styles */
.slide-canvas-container {
    position: relative;
    background: #f1f5f9;
    border-radius: 0.5rem;
    overflow: hidden;
}

.slide-thumbnail {
    aspect-ratio: 16 / 9;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s;
}

.slide-thumbnail.active {
    border-color: #6366f1;
}

.slide-thumbnail:hover {
    border-color: #a5b4fc;
}

/* QR code scan overlay */
#qr-reader video {
    border-radius: 0.5rem;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}
