/* Enhanced Order Form Styles */
/* File Preview and Upload Progress Styles */

.file-preview-container {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.file-preview-header {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.file-preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.file-preview-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.file-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

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

.file-remove-btn {
    padding: 6px;
    background-color: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.file-remove-btn:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Upload Progress Styles */
.upload-progress-container {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 10px;
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

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

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

/* Enhanced file input button */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #ced4da;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]:hover {
    border-color: #007bff;
    background-color: #e7f1ff;
}

input[type="file"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-preview-item {
        padding: 10px;
    }
    
    .file-name {
        font-size: 13px;
    }
    
    .file-size {
        font-size: 11px;
    }
    
    .file-icon {
        font-size: 20px;
        margin-right: 10px;
    }
}
