/* 文档上传界面样式 */

.upload-form {
    max-width: 600px;
    margin: 0 auto;
}

/* 文件上传区域 */
.file-upload-section {
    background: linear-gradient(135deg, #e9f2f7,40%, #f3f1fa 70%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #d3cee8;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 文件上传区域样式 */
.upload-area {
    border: 2px dashed #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
}

/* .upload-area:hover {
    border-color: #f1eff5;
    background: #f1eff5;
}

.upload-area.dragover {
    border-color: #ebe9f4;
    background: #ebe9f4;
    transform: scale(1.02);
} */

.upload-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.supported-formats {
    margin: 20px 0;
}

.formats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 1000px;
}

.format-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #dadada;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.format-tag:hover {
    background: #d3cee8;
    transform: translateY(-1px);
}

.upload-actions {
    margin-top: 20px;
}

/* 上传按钮 */
.upload-browse {
    background: #d4f1fd;
    color: #666;
    border: 2px solid #c8e7f3;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(248, 247, 251);
}

.upload-browse:hover {
    background: #aed7e7;
    border-color: #aed7e7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(248, 247, 251);
}

/* 拖拽上传区域 */
.drag-drop-area {
    border: 2px dashed #007bff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.drag-drop-area:hover {
    border-color: #B9C6CB;
    background: #e9ecef;
}

.drag-drop-area.drag-over {
    border-color: #BEB9D1;
    background: #BEB9D1;
    transform: scale(1.02);
}

.drag-drop-content {
    color: #6c757d;
}

.drag-drop-content i {
    color: #007bff;
    margin-bottom: 16px;
}

.drag-drop-content h3 {
    margin: 16px 0 8px 0;
    color: #495057;
    font-weight: 600;
}

.drag-drop-content p {
    margin-bottom: 20px;
    color: #6c757d;
}

.upload-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 文件列表 */
.file-list {
    margin-bottom: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.file-list h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.file-items {
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f8f9fa;
}

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

.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.file-info i {
    color: #6c757d;
}

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

.file-size {
    color: #6c757d;
    font-size: 14px;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-remove:hover {
    background: #dc3545;
    color: white;
}

/* 上传进度 */
.upload-progress-container {
    margin-bottom: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.upload-progress-container h4 {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.overall-progress {
    margin-bottom: 20px;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 12px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-sm {
    height: 12px;
}

.progress-fill {
    background: #007bff;
    height: 100%;
    width: 0%;
    /* transition: width 0.5s ease; */
    border-radius: 12px;
}

.progress-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.individual-progress {
    max-height: 200px;
    overflow-y: auto;
}

.file-progress {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.file-progress:last-child {
    margin-bottom: 0;
}

.file-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

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

.file-status {
    font-size: 14px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
}

.file-status.success {
    color: #28a745;
    background: #d4edda;
}

.file-status.error {
    color: #dc3545;
    background: #f8d7da;
}

/* 上传信息 */
.upload-info {
    margin-bottom: 20px;
    text-align: center;
}

.help-text {
    color: #6c757d;
    font-size: 14px;
}

/* 模态框动作按钮 */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}


/* 滚动条样式 */
.file-items::-webkit-scrollbar,
.individual-progress::-webkit-scrollbar {
    width: 6px;
}

.file-items::-webkit-scrollbar-track,
.individual-progress::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.file-items::-webkit-scrollbar-thumb,
.individual-progress::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
}

.file-items::-webkit-scrollbar-thumb:hover,
.individual-progress::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 