/* css/style.css - modern UI for JPG to PNG converter */

.jpg2png-container {
    max-width: 720px;
    margin: 1.25rem auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(30,30,30,0.06);
    background: #fff;
    border: 1px solid #e9e9e9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    overflow: hidden;
}

.jpg2png-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #f2f2f2;
}

.jpg2png-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.jpg2png-dropzone {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s ease, border-color 0.12s ease;
    border-top: 1px dashed transparent;
}

.jpg2png-dropzone i {
    color: #7b8a97;
}

.jpg2png-droptext {
    margin: 0;
    font-size: 15px;
    color: #55606a;
}

.jpg2png-dropzone .jpg2png-browse {
    background: none;
    border: none;
    color: #0b79ff;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
}

.jpg2png-dropzone.jpg2png-dragover {
    background: linear-gradient(90deg, rgba(11,121,255,0.03), rgba(11,121,255,0.02));
    border-top-color: #dfeeff;
    outline: 2px dashed rgba(11,121,255,0.18);
}

.jpg2png-preview {
    display: flex;
    gap: 18px;
    padding: 16px 18px;
    border-top: 1px solid #f6f6f6;
    align-items: center;
}

.jpg2png-preview-image-wrap {
    width: 160px;
    height: 120px;
    flex: 0 0 160px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
}

.jpg2png-preview-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.jpg2png-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jpg2png-label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: #4a4f55;
    gap: 6px;
}

.jpg2png-label input[type="text"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    font-size: 14px;
}

.jpg2png-label input[type="range"] {
    width: 220px;
    margin-top: 6px;
}

.jpg2png-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.jpg2png-buttons button {
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 6px 14px rgba(15, 27, 40, 0.04);
}

.jpg2png-convert {
    background: linear-gradient(180deg, #0b79ff, #0664d6);
    color: #fff;
}

.jpg2png-reset {
    background: #f6f7f9;
    color: #2b3036;
}

.jpg2png-footer {
    padding: 12px 18px;
    border-top: 1px solid #f2f2f2;
    font-size: 12px;
    color: #7b8288;
    text-align: left;
}

/* Responsive */
@media (max-width: 640px) {
    .jpg2png-preview {
        flex-direction: column;
        align-items: stretch;
    }
    .jpg2png-preview-image-wrap {
        width: 100%;
        height: 200px;
    }
}
