/* 自定义样式 */

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

.upload-area:hover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.upload-area.dragover {
    border-color: #0d6efd;
    background-color: #cfe2ff;
    transform: scale(1.02);
}

/* 分析模块状态样式 */
.analysis-module {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.analysis-module.active {
    background-color: #cfe2ff;
    border-left: 4px solid #0d6efd;
}

.analysis-module.completed {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
}

.analysis-module.error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.module-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.module-status {
    display: flex;
    align-items: center;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 进度条动画 */
.progress {
    height: 25px;
}

.progress-bar {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 卡片阴影效果 */
.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .upload-area {
        padding: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* 文件信息显示 */
.file-info {
    background-color: #e9ecef;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

.file-info .file-name {
    font-weight: bold;
    color: #495057;
}

.file-info .file-size {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 自定义按钮样式 */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* 页脚样式 */
footer {
    margin-top: auto;
}

/* 加载动画 */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* 错误提示样式 */
.error-shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}