/* WebP to JPG Converter Specific UI */

.hidden { display: none !important; }

.w2j-input-section { margin-bottom: 30px; }

.w2j-results-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px var(--shadow);
    animation: fadeIn 0.4s ease;
}

.w2j-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Preview Area */
.w2j-preview-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.w2j-preview-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.w2j-preview-wrapper {
    width: 100%;
    height: 300px;
    background: #ffffff; /* Solid white background to reflect actual JPG output */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
}

.w2j-preview-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Controls Area */
.w2j-controls-box {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.w2j-controls-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.w2j-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.info-lbl {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.info-val {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .w2j-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .w2j-preview-wrapper {
        height: 250px;
    }
}
