/* ==========================================
   ToolNova - PNG a JPG
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#0f172a;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.container{
    width:100%;
    max-width:800px;
    background:#1e293b;
    border-radius:20px;
    padding:40px;
    box-shadow:0 20px 50px rgba(0,0,0,.35);
}

h1{
    text-align:center;
    color:white;
    font-size:36px;
    margin-bottom:10px;
}

p{
    text-align:center;
    color:#94a3b8;
    margin-bottom:30px;
}

#dropZone{
    border:3px dashed #3b82f6;
    border-radius:18px;
    padding:60px 30px;
    text-align:center;
    cursor:pointer;
    transition:.3s;
    background:#0f172a;
}

#dropZone:hover{
    border-color:#60a5fa;
    background:#172554;
}

#dropZone.dragover{
    border-color:#22c55e;
    background:#052e16;
}

#dropZone p{
    color:white;
    font-size:22px;
    margin-bottom:10px;
}

#dropZone span{
    color:#94a3b8;
    font-size:15px;
}

.preview{
    margin-top:35px;
    display:flex;
    justify-content:center;
}

.preview img{
    max-width:100%;
    max-height:420px;
    display:none;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.buttons{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin-top:35px;
}

button{
    padding:15px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    transition:.3s;
    color:white;
}

button:hover{
    transform:translateY(-3px);
}

#convert{
    background:#3b82f6;
}

#convert:hover{
    background:#2563eb;
}

#download{
    background:#10b981;
}

#download:hover{
    background:#059669;
}

#download:disabled{
    background:#475569;
    cursor:not-allowed;
    transform:none;
}

#clear{
    background:#ef4444;
}

#clear:hover{
    background:#dc2626;
}

@media(max-width:768px){

.container{
    padding:25px;
}

h1{
    font-size:28px;
}

.buttons{
    grid-template-columns:1fr;
}

#dropZone{
    padding:40px 20px;
}

#dropZone p{
    font-size:18px;
}

}