/* 错题集页面样式 */
.mistake-list {
    max-height: 500px;
    overflow-y: auto;
}

.mistake-list-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mistake-list-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.mistake-list-item.active {
    background-color: rgba(13, 110, 253, 0.1);
    border-left: 3px solid #0d6efd;
}

.mistake-subject-badge {
    font-size: 0.75rem;
}

.mistake-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.mistake-image-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.mistake-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-area.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.upload-preview {
    padding: 1rem;
    position: relative;
}

/* 知识点和练习题样式 */
#mistakeExplanation, #relatedExercises {
    font-size: 0.95rem;
    line-height: 1.6;
}

#mistakeExplanation h3, #relatedExercises h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

#mistakeExplanation ul, #relatedExercises ul {
    padding-left: 1.5rem;
}

#mistakeExplanation code, #relatedExercises code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

/* 练习题样式 */
.exercise-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.exercise-item:last-child {
    margin-bottom: 0;
}

.exercise-question {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.exercise-options {
    margin-bottom: 1rem;
}

.exercise-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.exercise-option-label {
    font-weight: 500;
    margin-right: 0.5rem;
    min-width: 1.5rem;
}

.exercise-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.exercise-answer-hidden {
    display: none;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .mistake-list {
        max-height: 300px;
    }
    
    .col-md-6 + .col-md-6 {
        margin-top: 1rem;
    }
}