/* Global Upload Progress Styles */
.upload-progress-wrapper {
    margin-top: 8px;
    margin-bottom: 12px;
    font-family: inherit;
    direction: inherit;
}

.upload-progress-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark .upload-progress-card {
    background: #1e293b;
    border-color: #334155;
}

.upload-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.upload-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dark .upload-file-info {
    color: #e2e8f0;
}

.upload-file-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.upload-file-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.upload-file-size {
    color: #64748b;
    font-size: 11px;
    font-weight: normal;
}

.upload-percentage-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e0e7ff;
    color: #4338ca;
    transition: all 0.3s ease;
}

.upload-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.dark .upload-progress-bar-bg {
    background: #334155;
}

.upload-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 10px;
    transition: width 0.15s ease-out;
    position: relative;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.upload-progress-bar-fill.upload-success {
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.upload-progress-bar-fill.upload-error {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.upload-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
}

.dark .upload-status-row {
    color: #94a3b8;
}

.upload-status-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.upload-cancel-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    transition: transform 0.2s ease;
}

.upload-cancel-btn:hover {
    transform: scale(1.15);
}

.upload-preview-img {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}

/* Pulse animation during active upload */
@keyframes uploadPulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

.upload-active .upload-progress-bar-fill {
    animation: uploadPulse 1.5s infinite ease-in-out;
}