/* 作业清单页面样式 */

/* 上传区域 */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.upload-progress {
    margin-top: 1rem;
}

/* 作业列表 */
.homework-item {
    transition: all 0.3s ease;
}

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

/* 作业详情 */
.homework-images img {
    max-height: 300px;
    object-fit: contain;
}

.markdown-content {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-header .btn-group {
        margin-top: 0.5rem;
    }
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.upload-area.dragover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.image-preview {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-preview img {
    max-height: 250px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* OCR结果区域 */
.ocr-result {
    min-height: 250px;
}

/* 任务列表样式 */
.task-list {
    min-height: 200px;
}

.task-item {
    border-left: 3px solid var(--bs-primary);
    background-color: #f8f9fa;
    margin-bottom: 0.75rem;
    padding: 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.task-item:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transform: translateY(-2px);
}

.task-item.completed {
    border-left-color: var(--bs-success);
    opacity: 0.7;
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

.task-actions {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

/* 加载动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* 添加以下样式 */
.homework-image {
    max-height: 400px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homework-image img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

#detailOcrText {
    min-height: 300px;
    font-family: monospace;
    white-space: pre-wrap;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}