.webp-converter {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.webp-header {
    text-align: center;
    margin-bottom: 2rem;
}

.webp-header h2 {
    margin: 0 0 0.5rem;
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 600;
}

.webp-subtitle {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.webp-dropzone {
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.webp-dropzone:hover,
.webp-dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.webp-upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.webp-dropzone p {
    margin: 0 0 0.5rem;
    color: #374151;
    font-weight: 500;
}

.webp-file-hint {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 400;
}

#webp-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.webp-progress {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.webp-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.webp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 0.3s ease;
}

.webp-progress-text {
    color: #374151;
    font-weight: 500;
}

.webp-results {
    margin-top: 2rem;
}

.webp-result-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #10b981;
}

.webp-result-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

.webp-result-info {
    flex: 1;
}

.webp-result-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.webp-size-comparison {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.webp-size-original {
    color: #ef4444;
    font-weight: 500;
}

.webp-size-converted {
    color: #10b981;
    font-weight: 500;
}

.webp-savings {
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.webp-download-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-left: auto;
}

.webp-download-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.webp-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .webp-converter {
        padding: 1rem;
    }
    
    .webp-result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .webp-result-preview {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .webp-download-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
