:root{
    --bg:#0b1016;
    --panel:#1d2532;
    --card:#253041;
    --accent:#3ea6ff;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#0b1016 url("images/background.jpg") center center no-repeat fixed;
    background-size:cover;
    color:#fff;
    font-family:Arial,sans-serif;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 28px;
    background:#151b22;
}

header input{
    padding:10px;
    border:none;
    border-radius:8px;
    width:220px;
}

#welcome{
    margin:20px;
    padding:24px;
    background:rgba(29,37,50,.90);
    border-radius:18px;
}

#welcome h1{
    margin:0 0 10px;
    font-size:42px;
}

#welcome p{
    margin:0;
    color:#ddd;
    font-size:18px;
}

#legacyPanel,
#modernPanel{
    padding:20px;
}

/* ---------- MODERN UI ---------- */

.row{
    margin-bottom:35px;
}

.row h2{
    margin-bottom:16px;
    font-size:34px;
}

.cards{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
}

.card{
    width:220px;
    background:#253041;
    border-radius:18px;
    padding:18px;
    cursor:pointer;
    transition:.2s;
}

.card:hover,
.card:focus{
    outline:none;
    transform:scale(1.05);
    box-shadow:0 0 0 3px #3ea6ff;
}

.card img{
    width:72px;
    height:72px;
    display:block;
    margin-bottom:14px;
}

.card h3{
    margin:8px 0;
    font-size:20px;
}

.card small{
    color:#cfcfcf;
}

/* ---------- DETAILS PANEL ---------- */

#panel{
    position:fixed;
    right:20px;
    top:90px;
    width:380px;
    background:#1d2532;
    border-radius:18px;
    padding:20px;
    display:none;
    box-shadow:0 0 25px rgba(0,0,0,.45);
}

#panel button{
    background:#3ea6ff;
    color:#fff;
    border:none;
    padding:10px 16px;
    border-radius:10px;
    cursor:pointer;
}

.progress{
    width:100%;
    height:12px;
    background:#444;
    border-radius:8px;
    overflow:hidden;
    margin:15px 0;
}

.fill{
    width:0%;
    height:100%;
    background:#3ea6ff;
    transition:width .3s;
}

/* ---------- LEGACY UI ---------- */

.downloadItem{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#253041;
    border-radius:12px;
    padding:12px;
    margin-bottom:12px;
}

.downloadItem img{
    width:48px;
    height:48px;
    margin-right:12px;
}

.downloadBtn{
    background:#3ea6ff;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
}

.downloadBtn:focus{
    outline:none;
    box-shadow:0 0 0 3px #6cf;
}

/* ---------- STATUS ---------- */

#statusBar{
    position:fixed;
    left:20px;
    bottom:20px;
    background:#1d2532;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    display:none;
}

.hidden{
    display:none;
}

/* ---------- MOBILE ---------- */

@media (max-width:700px){

header{
    flex-direction:column;
    align-items:flex-start;
}

header input{
    margin-top:12px;
    width:100%;
}

#panel{
    left:10px;
    right:10px;
    width:auto;
}

.cards{
    justify-content:center;
}

.card{
    width:180px;
}

}