/* Topic Detail Page Styles */

.progress-bar-container {
    background-color: #EEF2FF;
    border-radius: 1rem;
    height: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

.progress-bar {
    background-color: #4F46E5;
    border-radius: 1rem;
    height: 0.5rem;
    transition: width 0.5s ease-in-out;
}

.progress-bar-animated {
    transition: width 0.8s ease-in-out;
}

.material-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-icon.text {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.material-icon.video {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.material-icon.audio {
    background-color: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.material-icon.html {
    background-color: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.material-icon.pdf {
    background-color: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

.material-icon.document {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366F1;
}

.material-card {
    transition: transform 0.2s;
}

.material-card:hover {
    transform: translateY(-2px);
}

.quiz-card {
    transition: transform 0.2s;
}

.quiz-card:hover {
    transform: translateY(-2px);
}

/* Quiz description container */
.quiz-description-container {
    margin-top: 0.5rem;
}

/* Description preview */
.quiz-description-preview {
    color: #6c757d;
    transition: color 0.2s;
}

/* Full description styling */
.full-description {
    padding-left: 0.25rem;
    border-left: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.full-description p {
    white-space: pre-line;  /* Preserves line breaks in the description */
}

/* Toggle button styling */
.toggle-description-btn {
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.toggle-description-btn:hover {
    text-decoration: underline;
}

/* Animation for expand/collapse */
.full-description.show-description {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Quiz icon styling consistent with materials */
.material-icon.quiz {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* Ensure quiz cards have consistent opacity when disabled */
.quiz-card.opacity-50 {
    opacity: 0.5;
}

.quiz-card.opacity-50:hover {
    transform: none;
}

/* Consistent disabled state for quiz action areas */
.quiz-card .text-muted i.fa-lock {
    font-size: 1.2rem;
    opacity: 0.6;
}