/* Custom Styles for Image Converter */
#dropZone {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,249,255,0.9) 100%);
    backdrop-filter: blur(10px);
}

#dropZone.dragover {
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(147,51,234,0.1) 100%);
    border-color: #3b82f6;
    transform: scale(1.02);
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.3s ease-out;
}

.file-item .remove {
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
    border: none;
    background: none;
}

.file-item .remove:hover {
    background: #fee2e2;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    animation: fadeIn 0.3s ease-out;
}

.result-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-card .preview {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

details summary::-webkit-details-marker {
    display: none;
}

@media (max-width: 640px) {
    #dropZone {
        padding: 24px 16px;
    }
    
    .result-card .preview {
        height: 120px;
    }
}