/* ===========================
   Toolora PDF Merger
   Premium UI - Part 1
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Plus Jakarta Sans', system-ui, sans-serif;
}

body{
    background:#eef4fb;
    color:#0d1526;
    min-height:100vh;
    overflow-x:hidden;
}

/* Background */

.bg{
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at top left,#2f5fed22,transparent 40%),
    radial-gradient(circle at bottom right,#2448c422,transparent 40%),
    linear-gradient(135deg,#eef4fb,#ffffff);
    z-index:-1;
}

/* Navbar */

.navbar{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:rgba(255,255,255,.75);
    backdrop-filter:blur(18px);
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    position:sticky;
    top:0;
    z-index:100;
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#2f5fed;
}

.logo i{
    margin-right:10px;
}

.navbar ul{
    display:flex;
    list-style:none;
    gap:30px;
}

.navbar a{
    text-decoration:none;
    color:#3a4459;
    font-weight:500;
    transition:.3s;
}

.navbar a:hover{
    color:#2f5fed;
}

/* Hero */

.hero{
    text-align:center;
    padding:70px 20px 40px;
}

.hero h1{
    font-size:48px;
    font-weight:700;
    margin-bottom:20px;
}

.hero p{
    max-width:700px;
    margin:auto;
    color:#697590;
    line-height:1.8;
    font-size:18px;
}

/* Main Container */

.container{
    width:min(900px,92%);
    margin:auto;
    margin-bottom:60px;
}

/* Upload Card */

.upload-card{
    background:white;
    border-radius:25px;
    padding:50px;
    text-align:center;
    border:none;
    transition:.3s;
    box-shadow:0 20px 45px rgba(0,0,0,.08);
}

.upload-card:hover{
    transform:translateY(-6px);
}

.upload-icon{
    font-size:70px;
    color:#2f5fed;
    margin-bottom:20px;
}

.upload-card h2{
    font-size:30px;
    margin-bottom:10px;
}

.upload-card p{
    color:#697590;
    margin-bottom:30px;
}

/* Browse Button */

#browseBtn{
    border:none;
    background:#2f5fed;
    color:white;
    padding:19px 46px;
    border-radius:99px;
    font-size:17px;
    cursor:pointer;
    transition:.3s;
    font-weight:800;
    box-shadow:0 10px 24px -10px rgba(47,95,237,.55);
}

#browseBtn:hover{
    background:#2448c4;
    transform:scale(1.05);
}
/* ===========================
   File List
=========================== */

.file-list{
    margin-top:35px;
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.file-list h3{
    margin-bottom:20px;
    color:#2f5fed;
    font-size:22px;
}

#pdfList{
    list-style:none;
}

#pdfList li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 18px;
    margin-bottom:12px;
    border-radius:12px;
    background:#eef4fb;
    border:1px solid #e4e9f2;
    transition:.3s;
}

#pdfList li:hover{
    background:#eaf1ff;
}

.file-name{
    display:flex;
    align-items:center;
    gap:10px;
    word-break:break-word;
}

.file-name i{
    color:#ff4d5e;
    font-size:20px;
}

.remove-btn{
    border:none;
    background:#ff4d5e;
    color:#fff;
    width:38px;
    height:38px;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

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

/* ===========================
   Controls
=========================== */

.controls{
    display:flex;
    justify-content:center;
    gap:20px;
    margin:35px 0;
    flex-wrap:wrap;
}

.controls button{
    border:none;
    padding:15px 30px;
    border-radius:14px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    transition:.3s;
}

#mergeBtn{
    background:#2f5fed;
    color:#fff;
}

#mergeBtn:hover{
    background:#2448c4;
    transform:translateY(-3px);
}

#clearBtn{
    background:#eef4fb;
    color:#0d1526;
}

#clearBtn:hover{
    background:#e4e9f2;
}

/* ===========================
   Progress
=========================== */

.progress-box{
    background:#fff;
    border-radius:18px;
    padding:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.progress{
    width:100%;
    height:14px;
    background:#e4e9f2;
    border-radius:20px;
    overflow:hidden;
}

.progress-bar{
    width:0%;
    height:100%;
    background:#2f5fed;
    transition:width .4s ease;
}

#status{
    text-align:center;
    margin-top:15px;
    color:#697590;
    font-weight:500;
}

/* ===========================
   Footer
=========================== */

footer{
    text-align:center;
    padding:30px;
    color:#697590;
    font-size:15px;
}

/* ===========================
   Animations
=========================== */

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.hero,
.upload-card,
.file-list,
.controls,
.progress-box{
    animation:fadeUp .6s ease;
}

/* ===========================
   Responsive
=========================== */

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        gap:15px;
        padding:18px;
    }

    .navbar ul{
        gap:18px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:16px;
    }

    .upload-card{
        padding:30px 20px;
    }

    .upload-icon{
        font-size:55px;
    }

    .controls{
        flex-direction:column;
    }

    .controls button{
        width:100%;
    }

    #pdfList li{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .remove-btn{
        align-self:flex-end;
    }
}