.image-upscaler-container {
    max-width: 100%;
    margin: 0 auto;
}

.upload-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #02010100;
    color: #fff;
}

/* Upload Box */
.upload-box {
    position: relative;
    padding: 4rem 4rem;
    text-align: center;
    border: 1px dashed #4651e6;
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    cursor: pointer;
}

.upload-box.dragover {
    border-color: #f093fb;
    background: rgba(240, 147, 251, 0.1);
    transform: scale(1.02);
}

.upload-box.uploading {
    border-color: #f093fb;
    background: rgba(240, 147, 251, 0.05);
}

.upload-content {
    transition: all 0.3s ease;
}

.upload-box.uploading .upload-content {
    opacity: 0;
    visibility: hidden;
}

.upload-box.uploading .upload-progress {
    opacity: 1;
    visibility: visible;
}

.upload-icon {
    margin-bottom: 1.5rem;
    color: #000;
}

.upload-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4651e6;
}

.upload-subtitle {
    color: #5c5c5e;
    margin-bottom: 2rem;
    font-size: 14px;
    font-weight: 400;
}

.upload-button {
    background: #ff436b;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upscaler-container:hover .upload-box .upload-button {
    background: #4651e6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

/* Progress */
.upload-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.progress-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-bar {
    transition: stroke-dashoffset 0.3s ease;
    stroke-linecap: round;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 14px;
    color: #4651e6;
}

.progress-label {
    color: #4651e6;
    font-size: 18px;
}

/* Files Preview */
.files-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: none;
}

.files-preview.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4651e6;
}

.add-more-btn {
    background: #ff436b;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-more-btn:hover {
    background: #4651e6;
    color: #fff;
}

.files-list {
    display: grid;
    gap: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.file-name {
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.85rem;
    color: #e2e8f0;
}

.file-status {
    margin-left: 1rem;
    margin-right: 0.5rem;
}

.status-icon {
    font-size: 1.5rem;
}

.status-pending {
    color: #f093fb;
}

.status-success {
    color: #48bb78;
}

.status-failed {
    color: #f56565;
}

/* Upload Complete */
.upload-complete {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.complete-header {
    margin-bottom: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4651e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    margin: 0 auto 1.5rem;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.complete-title {
    font-size: 22px;
    font-weight: 600;
    color: #4651e6;
    margin-bottom: 0.5rem;
}

.complete-subtitle {
    color: #5c5c5e;
    font-size: 16px;
}

.complete-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.new-upload-btn,
.view-files-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-upload-btn {
    background: #4651e6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.new-upload-btn:hover {
    background: #ff436b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.view-files-btn {
    background: #ff436b;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-files-btn:hover {
    background: #4651e6;
    color: #fff;
}

.disabled-btn {
    opacity: 0.6;
    cursor: not-allowed;
    background: #cccccc !important;
    color: #666666 !important;
    box-shadow: none !important;
    transform: none !important;
}

.disabled-btn:hover {
    background: #cccccc !important;
    color: #666666 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .upload-box {
        padding: 2rem 1rem;
    }
    
    .upload-title {
        font-size: 1.25rem;
    }
    
    .files-preview {
        padding: 1rem;
    }
    
    .complete-actions {
        flex-direction: column;
    }
    
    .new-upload-btn,
    .view-files-btn {
        width: 100%;
    }
    
    .preview-title {
        font-size: 1rem;
    }
    
    .add-more-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .file-name {
        font-size: 0.9rem;
    }
    
    .file-size {
        font-size: 0.75rem;
    }
}