/* ==========================================
   Image to PDF Tool
   Version : 1.0
   Author  : John + ChatGPT
==========================================*/

/*==========================
    GOOGLE FONT
==========================*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/*==========================
    RESET
==========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#f5f7fb;
    color:#1f2937;
}

/*==========================
    VARIABLES
==========================*/

:root{

    --primary:#2563eb;
    --primary-hover:#1d4ed8;

    --white:#ffffff;

    --text:#1f2937;

    --gray:#6b7280;

    --border:#d9dee7;

    --bg:#f5f7fb;

    --radius:14px;

    --shadow:0 8px 25px rgba(0,0,0,.08);

}

/*==========================
    HEADER
==========================*/

header{

    background:var(--white);

    box-shadow:0 2px 10px rgba(0,0,0,.05);

    padding:18px 40px;

    position:sticky;

    top:0;

    z-index:999;

}

.logo{

    font-size:22px;

    font-weight:700;

    color:var(--primary);

}

/*==========================
    MAIN
==========================*/

.container{

    max-width:1200px;

    margin:auto;

    padding:40px 20px;

}

.container h1{

    text-align:center;

    font-size:38px;

    margin-bottom:12px;

}

.subtitle{

    text-align:center;

    color:var(--gray);

    margin-bottom:40px;

    line-height:1.7;

}

/*==========================
    DROP AREA
==========================*/



#dropArea{

    background:var(--white);

    border:3px dashed var(--primary);

    border-radius:20px;

    padding:25px 20px;

    text-align:center;

    transition:.3s;

    cursor:pointer;

}

#dropArea:hover{

    background:#eef5ff;

}

#dropArea i{

    font-size:45px;

    color:var(--primary);

    margin-bottom:12px;

}

#dropArea h2{

    margin-bottom:6px;

    font-size:1.4rem;

}

#dropArea p{

    color:var(--gray);

    margin-bottom:10px;

    line-height:1.4;

}

.browseBtn{

    display:inline-block;

    padding:12px 24px;

    background:var(--primary);

    color:#fff;

    border-radius:10px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.browseBtn:hover{

    background:var(--primary-hover);

}

#dropArea small{

    display:block;

    margin-top:10px;

    color:var(--gray);

    font-size:.85rem;

}
/*==========================
    BUTTON
==========================*/

/*==========================
 PREVIEW HEADER
==========================*/

.previewHeader{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:45px;

    margin-bottom:20px;

}

.previewHeader button{

    background:#ef4444;

    color:white;

    border:none;

    padding:10px 18px;

    border-radius:8px;

    cursor:pointer;

}

.previewHeader button:hover{

    opacity:.9;

}

/*==========================
 PREVIEW GRID
==========================*/

#previewContainer{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));

    gap:20px;

    min-height:120px;

}

/* Placeholder */

.empty{

    background:white;

    border-radius:12px;

    padding:40px;

    text-align:center;

    color:var(--gray);

}

/*==========================
 SETTINGS
==========================*/

.settings{

    background:white;

    margin-top:50px;

    padding:30px;

    border-radius:16px;

    box-shadow:var(--shadow);

}

.settings h2{

    margin-bottom:25px;

}

.settingGrid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

}

.setting{

    display:flex;

    flex-direction:column;

}

.setting label{

    margin-bottom:10px;

    font-weight:600;

}

.setting select{

    padding:12px;

    border-radius:10px;

    border:1px solid var(--border);

    font-size:15px;

}

/*==========================
 ACTION BUTTON
=========/*==========================
    ACTION BUTTON
==========================*/

.action{

    display:flex;

    justify-content:center;

    align-items:center;

    margin:30px 0 15px;

}

#convertBtn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    min-width:240px;

    background:var(--primary);

    color:#fff;

    border:none;

    padding:15px 34px;

    font-size:17px;

    font-weight:600;

    border-radius:12px;

    cursor:pointer;

    transition:all .3s ease;

    box-shadow:0 8px 20px rgba(37,99,235,.25);

}

#convertBtn:hover{

    background:var(--primary-hover);

    transform:translateY(-2px);

    box-shadow:0 12px 25px rgba(37,99,235,.35);

}

#convertBtn:active{

    transform:translateY(0);

    box-shadow:0 5px 12px rgba(37,99,235,.25);

}

#convertBtn i{

    font-size:18px;

}

/*==========================
 FOOTER
==========================*/

footer{

    text-align:center;

    padding:25px;

    color:var(--gray);

}

/*==========================
 RESPONSIVE
==========================*/

@media(max-width:768px){

.container h1{

    font-size:28px;

}

#dropArea{

    padding:40px 15px;

}

.previewHeader{

    flex-direction:column;

    gap:15px;

}

}
/* ==========================================
   IMAGE PREVIEW CARD
========================================== */

.preview-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    position:relative;
}

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

.preview-info{
    padding:12px;
}

.preview-name{
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.preview-size{
    margin-top:4px;
    font-size:13px;
    color:#6b7280;
}

.remove-btn{
    position:absolute;
    top:10px;
    right:10px;
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:#ef4444;
    color:#fff;
    cursor:pointer;
    font-size:15px;
}

.remove-btn:hover{
    background:#dc2626;
}

.dragging{
    opacity:.6;
}
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 30px;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#222;
    font-weight:600;
    font-size:15px;
    transition:.3s;
}

.brand:hover{
    opacity:.8;
}

.brand img{
    width:32px;
    height:32px;
    object-fit:contain;
}

.logo{
    font-size:22px;
    font-weight:700;
}
