.upload-container {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.upload-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
}

.file-drop-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

.file-drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(66, 153, 225, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: #4299e1;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(66, 153, 225, 0.1);
}

.file-drop-zone:hover::before,
.file-drop-zone.dragover::before {
    opacity: 1;
}

.file-drop-zone.success {
    border-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.file-drop-zone.error {
    border-color: #f56565;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.file-drop-zone i {
    font-size: 3.5rem;
    color: #a0aec0;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.file-drop-zone:hover i,
.file-drop-zone.dragover i {
    color: #4299e1;
    transform: scale(1.1);
}

.file-drop-zone p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.file-types {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
    font-style: italic;
}

#file-input {
    display: none;
}

.upload-options {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.upload-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.upload-options label:hover {
    color: #2d3748;
}

.upload-options input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
    accent-color: #4299e1;
}

.progress-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(66, 153, 225, 0.3);
}

.progress-fill.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.progress-fill.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.progress-text {
    text-align: center;
    margin-top: 0.75rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.875rem;
}

.config-form {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.config-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.config-group {
    display: flex;
    flex-direction: column;
}

.config-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.config-group input {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    color: #2d3748;
}

.config-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    background: #ffffff;
}

.config-group input:valid {
    border-color: #48bb78;
}

.config-group input:invalid:not(:placeholder-shown) {
    border-color: #f56565;
}

.config-group input.success {
    border-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.config-group input.error {
    border-color: #f56565;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.config-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.validation-message {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.validation-message.success {
    color: #38a169;
}

.validation-message.error {
    color: #e53e3e;
}

.validation-message i {
    margin-right: 0.25rem;
    font-size: 0.8rem;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-section h3::before {
    content: '';
    width: 3px;
    height: 1rem;
    background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
    margin-right: 0.5rem;
    border-radius: 2px;
}

/* File upload animations */
@keyframes uploadSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes uploadError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.file-drop-zone.upload-success {
    animation: uploadSuccess 0.6s ease-out;
}

.file-drop-zone.upload-error {
    animation: uploadError 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .config-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .upload-container,
    .config-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-container,
    .config-form {
        padding: 1.5rem;
    }
    
    .file-drop-zone {
        padding: 2rem 1rem;
    }
    
    .file-drop-zone i {
        font-size: 2.5rem;
    }
    
    .config-group input {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .upload-container,
    .config-form {
        padding: 1rem;
    }
    
    .file-drop-zone {
        padding: 1.5rem 0.5rem;
    }
    
    .file-drop-zone i {
        font-size: 2rem;
    }
    
    .file-drop-zone p {
        font-size: 0.875rem;
    }
    
    .file-types {
        font-size: 0.75rem;
    }
    
    .config-group {
        margin-bottom: 1rem;
    }
    
    .config-actions {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .file-drop-zone:hover {
        transform: none;
        box-shadow: none;
    }
    
    .upload-options label:hover {
        color: #4a5568;
    }
}