/* WebP to PNG Converter Styles */

.webp-to-png-tool {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e2e8f0;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #020617;
    border-radius: 1.5rem;
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.15);
}

/* Drop Zone */
.webp-to-png-tool .drop-zone {
    border: 2px dashed rgba(220, 38, 38, 0.4);
    background: rgba(15, 23, 42, 0.6);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.webp-to-png-tool .drop-zone:hover {
    border-color: #dc2626;
    background: rgba(30, 41, 59, 0.8);
}

/* Buttons */
.webp-to-png-tool .btn {
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.webp-to-png-tool .btn:hover {
    background: #ef4444;
}

.webp-to-png-tool .btn-muted {
    background: #475569;
}

.webp-to-png-tool .btn-muted:hover {
    background: #64748b;
}

/* Editor Header */
.webp-to-png-tool .editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.webp-to-png-tool .editor-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Image Grid */
.webp-to-png-tool .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.webp-to-png-tool .card {
    background: #1e293b;
    padding: 1rem;
    border-radius: 0.75rem;
    position: relative;
}

.webp-to-png-tool .preview {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #0f172a;
    border-radius: 0.5rem;
}

.webp-to-png-tool .file-name {
    font-size: 11px;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webp-to-png-tool .dl-btn {
    width: 100%;
    margin-top: 8px;
    font-size: 12px;
    padding: 5px;
    text-align: center;
    box-sizing: border-box;
}

/* Utility */
.webp-to-png-tool .hidden {
    display: none !important;
}
