/* Learn Page Styles */
.tab-indicator {
    transition: transform 0.3s ease;
}

.module-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.module-accordion-content.expanded {
    max-height: 2000px;
}

.accordion-divider {
    border-top: none;
}

.module-accordion-content.expanded .accordion-divider {
    border-top: 1px solid #e3e3e0;
}

.dark .module-accordion-content.expanded .accordion-divider {
    border-top-color: #3E3E3A;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

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

.hero-image {
    object-fit: contain;
    max-width: 100%;
    height: auto;
    max-height: 100%;
}

/* Responsive adjustments for hero image */
@media (max-width: 639px) {
    .hero-image {
        max-height: 160px;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .hero-image {
        max-height: 224px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-image {
        max-height: 256px;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .hero-image {
        max-height: 288px;
    }
}

@media (min-width: 1280px) and (max-width: 1535px) {
    .hero-image {
        max-height: 320px;
    }
}

@media (min-width: 1536px) {
    .hero-image {
        max-height: 384px;
    }
}

/* Scrollable content styles */
.tab-content {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.dark .tab-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.dark .tab-content::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.dark .tab-content::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Play button animation */
.module-accordion-content.expanded .lesson-play-button {
    opacity: 1 !important;
}

/* Lesson highlight animation */
.lesson-item.lesson-highlighted {
    background-color: #E3F2FD !important;
    border-left: 3px solid #0D47A1;
    padding-left: 10px;
}

.dark .lesson-item.lesson-highlighted {
    background-color: rgba(13, 71, 161, 0.15) !important;
    border-left-color: #90CAF9;
}

.lesson-item.lesson-highlighted .lesson-play-button {
    opacity: 1 !important;
}

.lesson-item.lesson-highlighted span {
    color: #0D47A1;
    font-weight: 500;
}

.dark .lesson-item.lesson-highlighted span {
    color: #90CAF9;
}

/* Lesson status styles */
.lesson-item.lesson-locked {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.lesson-item.lesson-current {
    background-color: #E3F2FD;
    border-left: 3px solid #0D47A1;
    padding-left: 10px;
}

.dark .lesson-item.lesson-current {
    background-color: rgba(13, 71, 161, 0.15);
    border-left-color: #90CAF9;
}

.lesson-item.lesson-completed {
    opacity: 0.8;
}

.lesson-item.lesson-completed:hover {
    background-color: #f5f5f5;
}

.dark .lesson-item.lesson-completed:hover {
    background-color: #1a1a1a;
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Slide up animation for sheets */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

/* Text-to-Speech reading highlight */
.sentence-item.tts-reading {
    background-color: rgba(13, 71, 161, 0.1);
    border-left: 3px solid #0D47A1;
    padding-left: 12px;
    transition: all 0.3s ease;
}

.dark .sentence-item.tts-reading {
    background-color: rgba(144, 202, 249, 0.15);
    border-left-color: #90CAF9;
}

/* Quiz Result Sheet */
.quiz-result-sheet {
    backdrop-filter: blur(4px);
}

.quiz-result-sheet .bg-white,
.quiz-result-sheet .dark\:bg-\[\#161615\] {
    transition: transform 0.3s ease-out;
}

.quiz-result-sheet .translate-y-full {
    transform: translateY(100%);
}

/* Lesson Completion Sheet */
#lesson-completion-sheet {
    backdrop-filter: blur(4px);
}

#lesson-completion-sheet .bg-white,
#lesson-completion-sheet .dark\:bg-\[\#161615\] {
    transition: transform 0.3s ease-out;
}

#lesson-completion-sheet .translate-y-full {
    transform: translateY(100%);
}






