/* 全局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* 上传区域样式 */
.upload-container {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
}

.upload-container:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.upload-container.dragover {
    border-color: #28a745;
    background-color: #e8f5e9;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-content i {
    color: #6c757d;
    margin-bottom: 10px;
}

/* 文本预览区样式 */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.diff-add {
    background-color: #d4edda;
    color: #155724;
}

.diff-remove {
    background-color: #f8d7da;
    color: #721c24;
    text-decoration: line-through;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    pre {
        font-size: 12px;
    }
}

/* 按钮样式优化 */
.btn {
    border-radius: 4px;
    text-transform: none;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
}

.btn-success {
    background-color: #198754;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* 进度条样式 */
.progress {
    height: 20px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

/* 卡片阴影效果 */
.card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* 实用工具类 */
.cursor-pointer {
    cursor: pointer;
}

/* 优化音频播放器样式 */
audio {
    width: 100%;
    border-radius: 4px;
}

/* 帮助提示图标 */
.help-icon {
    color: #6c757d;
    margin-left: 5px;
    cursor: pointer;
}

.help-icon:hover {
    color: #0d6efd;
}

/* 编辑器样式 */
.modal-content {
    border-radius: 6px;
}

.modal-header {
    background-color: #f8f9fa;
}

#edit-text-area {
    resize: vertical;
    min-height: 200px;
}

/* 高亮差异显示 */
.highlight {
    background-color: #fff3cd;
    padding: 2px 0;
    border-radius: 2px;
}

/* 错误状态 */
.error-text {
    color: #dc3545;
} 