/* USSLAB发票识别系统样式 */

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

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

.upload-area.drag-over {
    border-color: #0d6efd;
    background-color: #e7f1ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

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

/* 设备发票上传区域特殊样式 */
.upload-equipment {
    border-color: #0dcaf0;
}

.upload-equipment:hover {
    border-color: #0dcaf0;
    background-color: #e7f9fd;
}

.upload-equipment:hover .upload-icon {
    color: #0dcaf0;
}

.upload-equipment.drag-over {
    border-color: #0dcaf0;
    background-color: #e7f9fd;
}

/* 文件列表容器 */
.file-list-container {
    max-height: 200px;
    overflow-y: auto;
}

.file-list-container .list-group-item {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* 文件列表 */
#fileList .table {
    margin-bottom: 0;
}

#fileList .table th {
    font-weight: 500;
    border-top: none;
}

#fileList .btn-remove {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 统计卡片 */
.stat-box {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.stat-box h3 {
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

/* 进度条 */
#progressContainer .progress {
    height: 1.5rem;
}

#progressContainer .progress-bar {
    font-size: 0.875rem;
    line-height: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .stat-box h3 {
        font-size: 1.25rem;
    }
}

/* 文件名单元格 */
.file-name-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 卡片阴影增强 */
.card.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* 表格斑马纹 */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 徽章样式 */
.badge {
    font-weight: 500;
}

/* 按钮图标间距 */
.btn i {
    margin-right: 0.5rem;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
