/* ==========================
   GOOGLE FONT
========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{

    min-height:100vh;

    background:linear-gradient(
        135deg,
        #4f46e5,
        #3b82f6,
        #06b6d4
    );

    padding:40px;
}

/* ==========================
   CONTAINER
========================== */

.container{

    width:100%;
    max-width:1300px;

    margin:auto;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.2);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    border-radius:22px;

    padding:35px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);

}

/* ==========================
   TITLE
========================== */

h1{

    text-align:center;

    color:#fff;

    font-size:38px;

    font-weight:700;

}

.subtitle{

    text-align:center;

    color:#e8e8e8;

    margin-top:10px;

    margin-bottom:35px;

}

/* ==========================
   DROP AREA
========================== */

.drop-area{

    border:3px dashed rgba(255,255,255,.4);

    border-radius:20px;

    padding:55px;

    text-align:center;

    color:white;

    cursor:pointer;

    transition:.35s;

}

.drop-area:hover{

    background:rgba(255,255,255,.08);

    transform:translateY(-3px);

}

.drop-area.dragover{

    background:rgba(255,255,255,.18);

    border-color:#fff;

    animation:pulse .8s infinite;

}

.drop-area i{

    font-size:70px;

    margin-bottom:20px;

}

.drop-area h2{

    font-size:28px;

    margin-bottom:12px;

}

.drop-area p{

    margin:15px 0;

}

/* ==========================
   BUTTONS
========================== */

button{

    border:none;

    cursor:pointer;

    transition:.3s;

    border-radius:12px;

    font-weight:600;

    font-size:15px;

}

button:hover{

    transform:translateY(-2px);

}

button:active{

    transform:scale(.98);

}

#browseBtn{

    padding:14px 28px;

    background:linear-gradient(
        45deg,
        #2563eb,
        #06b6d4
    );

    color:white;

}

.primary{

    background:linear-gradient(
        45deg,
        #16a34a,
        #22c55e
    );

    color:white;

}

.success{

    background:linear-gradient(
        45deg,
        #9333ea,
        #7c3aed
    );

    color:white;

}

.danger{

    background:linear-gradient(
        45deg,
        #ef4444,
        #dc2626
    );

    color:white;

}

.primary,
.success,
.danger{

    padding:13px 22px;

}

/* ==========================
   CONTROLS
========================== */

.controls{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:25px;

    margin:35px 0;

}

.quality{

    flex:1;

}

.quality label{

    color:white;

    font-weight:600;

}

input[type=range]{

    width:100%;

    margin-top:12px;

}

.buttons{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

}

/* ==========================
   PROGRESS
========================== */

.progress-wrapper{

    width:100%;

    height:14px;

    background:rgba(255,255,255,.2);

    border-radius:50px;

    overflow:hidden;

    margin-bottom:30px;

}

.progress-bar{

    width:0%;

    height:100%;

    border-radius:50px;

    background:linear-gradient(
        90deg,
        #22c55e,
        #06b6d4
    );

    transition:.35s;

}

/* ==========================
   STATS
========================== */

.stats{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    margin-bottom:35px;

}

.card{

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.18);

    backdrop-filter:blur(12px);

    border-radius:18px;

    padding:22px;

    text-align:center;

    color:white;

    transition:.3s;

}

.card:hover{

    transform:translateY(-6px);

}

.card h3{

    font-size:18px;

    margin-bottom:10px;

}

.card span{

    font-size:28px;

    font-weight:700;

}

/* ==========================
   IMAGE GRID
========================== */

.image-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(320px,1fr));

    gap:25px;

}

/* ==========================
   IMAGE CARD
========================== */

.image-card{

    background:rgba(255,255,255,.12);

    border-radius:20px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.18);

    transition:.35s;

    backdrop-filter:blur(15px);

}

.image-card:hover{

    transform:translateY(-6px);

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

}

.preview{

    width:100%;

    height:220px;

    object-fit:contain;

    background:#fff;

}

.details{

    padding:18px;

}

.details h3{

    color:white;

    margin-bottom:12px;

    word-break:break-word;

}

.details p{

    color:#ececec;

    margin:8px 0;

    font-size:14px;

}

/* ==========================
   CARD BUTTONS
========================== */

.card-buttons{

    display:flex;

    gap:10px;

    padding:18px;

}

.card-buttons button{

    flex:1;

    padding:10px;

    color:white;

}

.convert{

    background:#0ea5e9;

}

.download{

    background:#16a34a;

}

.remove{

    background:#ef4444;

}

.download:disabled{

    background:#777;

    cursor:not-allowed;

}

/* ==========================
   SCROLLBAR
========================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#fff;

    border-radius:20px;

}

/* ==========================
   ANIMATION
========================== */

@keyframes pulse{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.02);

    }

    100%{

        transform:scale(1);

    }

}

/* ==========================
   MOBILE
========================== */

@media(max-width:900px){

.stats{

grid-template-columns:1fr;

}

.controls{

flex-direction:column;

align-items:stretch;

}

.buttons{

width:100%;

}

.buttons button{

flex:1;

}

}

@media(max-width:600px){

body{

padding:15px;

}

.container{

padding:20px;

}

h1{

font-size:30px;

}

.drop-area{

padding:35px 20px;

}

.drop-area i{

font-size:55px;

}

.drop-area h2{

font-size:22px;

}

.image-grid{

grid-template-columns:1fr;

}

.card-buttons{

flex-direction:column;

}

}