:root{
    --bg:#f4f6fb;
    --card:#ffffff;
    --text:#111;
    --muted:#666;
    --primary:#4f46e5;
    --border:#e5e7eb;
}

body.dark{
    --bg:#0f1115;
    --card:#181b22;
    --text:#eee;
    --muted:#aaa;
    --border:#2a2f3a;
}

*{
    box-sizing:border-box;
    font-family:Inter,system-ui,sans-serif;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    transition:.3s;
}

/* TOPBAR */
.topbar{
    background:var(--card);
    border-bottom:1px solid var(--border);
    padding:14px 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
nav a{
    margin:0 8px;
    color:var(--muted);
    text-decoration:none;
    font-weight:500;
}
nav a:hover{color:var(--primary)}

/* MAIN */
.container{
    max-width:920px;
    margin:60px auto;
    padding:0 20px;
}

.main-card{
    background:var(--card);
    border-radius:18px;
    padding:40px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
    text-align:center;
}

h1{
    margin:0;
    font-size:32px;
    font-weight:800;
}
h1 span{color:var(--primary)}

select{
    margin:20px 0;
    padding:12px 16px;
    border-radius:10px;
    border:1px solid var(--border);
    background:var(--card);
    color:var(--text);
}

/* DROP */
.drop-zone{
    margin:30px 0;
    padding:50px;
    border:2px dashed var(--border);
    border-radius:16px;
    cursor:pointer;
    transition:.3s;
}
.drop-zone:hover{
    border-color:var(--primary);
    background:rgba(79,70,229,.04);
}

/* SLIDER */
.slider{
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:30px;
}

#previewSlider{
    display:flex;
    gap:16px;
    overflow:hidden;
    scroll-behavior:smooth;
}

.card{
    min-width:220px;
    background:var(--card);
    border-radius:14px;
    padding:14px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    text-align:center;
}
.card img{
    max-width:100%;
    border-radius:10px;
}
.card a{
    display:inline-block;
    margin-top:10px;
    color:var(--primary);
    text-decoration:none;
    font-weight:600;
}

/* SLIDER BUTTONS */
.slider button{
    width:44px;
    height:44px;
    border-radius:50%;
    border:none;
    background:var(--card);
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    font-size:22px;
    cursor:pointer;
}

/* ZIP */
.zip{
    margin-top:35px;
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
}
.zip button{
    background:var(--primary);
    color:#fff;
    padding:12px 22px;
    border-radius:12px;
    border:none;
    font-weight:600;
}
#resetBtn{
    background:#e5e7eb;
    color:#111;
}

/* DARK TOGGLE */
.switch{
    width:50px;height:26px;position:relative;
}
.switch input{display:none}
.switch span{
    position:absolute;inset:0;
    background:#ccc;border-radius:20px;
}
.switch span:before{
    content:"";
    position:absolute;
    width:20px;height:20px;
    background:#fff;
    top:3px;left:3px;
    border-radius:50%;
    transition:.3s;
}
.switch input:checked + span:before{
    transform:translateX(24px);
}

.progress-area{
    margin-top:25px;
}
.progress-text{
    font-weight:600;
    margin-bottom:8px;
}
.progress-bar{
    width:100%;
    height:12px;
    background:var(--border);
    border-radius:20px;
    overflow:hidden;
}
.progress-fill{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,#4f46e5,#6366f1);
    transition:width .4s ease;
}

