/* ===== Additional styles for Image Upscaler ===== */

/* Upload area with image preview */
.upload-area.has-image {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Factor buttons hover animation */
.factor-btn {
    position: relative;
    overflow: hidden;
}

.factor-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.factor-btn:hover::after {
    opacity: 0.05;
}

.factor-btn.active::after {
    opacity: 0;
}

/* Progress bar animation */
.progress-fill {
    position: relative;
}

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

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

/* File item animations */
.file-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .file-action-btn {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .file-list-actions {
        gap: 4px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .file-item:hover {
        background: var(--bg);
    }

    .file-action-btn {
        background: var(--bg);
    }

    .file-action-btn:hover {
        background: var(--surface);
    }
}