/* JPG to PNG Converter Specific UI */

.hidden { display: none !important; }

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

.j2p-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;
}

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

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

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

.j2p-preview-wrapper {
    width: 100%;
    height: 300px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    /* Transparency Grid Background for PNG feel */
    background-image: linear-gradient(45deg, var(--bg-input) 25%, transparent 25%), linear-gradient(-45deg, var(--bg-input) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--bg-input) 75%), linear-gradient(-45deg, transparent 75%, var(--bg-input) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.j2p-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 */
.j2p-controls-box {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.j2p-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;
}

.j2p-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) {
    .j2p-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .j2p-preview-wrapper {
        height: 250px;
    }
}
