/* ==========================================
   OfficeMitra - JPG to PDF
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f4f7fb;
    color:#333;
}

header{
    background:#0d6efd;
    color:#fff;
    padding:30px 20px;
    text-align:center;
}

header h1{
    font-size:34px;
    margin-bottom:8px;
}

header p{
    font-size:16px;
    opacity:.9;
}

.container{
    max-width:1100px;
    margin:40px auto;
    padding:20px;
}

.upload-box{
    background:#fff;
    border:3px dashed #0d6efd;
    border-radius:12px;
    padding:50px 20px;
    text-align:center;
    cursor:pointer;
    transition:.3s;
}

.upload-box:hover{
    background:#eef5ff;
}

.upload-box button{
    background:#0d6efd;
    color:#fff;
    border:none;
    padding:14px 28px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

.upload-box button:hover{
    background:#0b5ed7;
}

.upload-box p{
    margin-top:18px;
    color:#666;
}

#previewContainer{
    margin-top:40px;
}

#previewContainer h2{
    margin-bottom:20px;
}

#imageList{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:20px;
}

.image-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 3px 10px rgba(0,0,0,.12);
    transition:.3s;
}

.image-card:hover{
    transform:translateY(-4px);
}

.image-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.image-name{
    padding:12px;
    text-align:center;
    font-size:14px;
    word-break:break-word;
}

.settings{
    margin-top:40px;
    background:#fff;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.settings h2{
    margin-bottom:20px;
}

.settings label{
    display:block;
    margin-top:18px;
    margin-bottom:8px;
    font-weight:bold;
}

.settings select{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:15px;
}

.action{
    text-align:center;
    margin-top:35px;
}

#convertBtn{
    background:#198754;
    color:#fff;
    border:none;
    padding:15px 40px;
    font-size:18px;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

#convertBtn:hover{
    background:#157347;
}

#status{
    margin-top:25px;
    text-align:center;
    font-weight:bold;
    color:#0d6efd;
}

footer{
    margin-top:60px;
    padding:20px;
    text-align:center;
    background:#fff;
    border-top:1px solid #ddd;
    color:#666;
}

@media(max-width:768px){

    header h1{
        font-size:28px;
    }

    .upload-box{
        padding:35px 15px;
    }

    #imageList{
        grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
    }

    .image-card img{
        height:150px;
    }

}