/**
 * 文件上传进度样式
 */

.upload-progress {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

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

.progress-text {
    font-weight: 500;
    color: #495057;
}

.progress-percent {
    font-weight: 600;
    color: #007bff;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
}

.upload-speed {
    font-weight: 500;
}

.upload-size {
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-progress {
        margin: 10px 0;
        padding: 12px;
        font-size: 13px;
    }
    
    .progress-details {
        flex-direction: column;
        gap: 4px;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .upload-progress {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .progress-text {
        color: #e2e8f0;
    }
    
    .progress {
        background-color: #4a5568;
    }
    
    .progress-details {
        color: #a0aec0;
    }
}
