*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:"Inter","Segoe UI",sans-serif;
}

/* =========================
BODY
========================= */
body{
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
padding:30px;

background:
radial-gradient(circle at top left,#1e3a8a 0%,transparent 40%),
radial-gradient(circle at bottom right,#0ea5e9 0%,transparent 45%),
linear-gradient(180deg,#020617,#020617);

color:#e5e7eb;
}

/* =========================
CONTAINER
========================= */
.container{
width:min(95%,720px);

padding:40px;

border-radius:24px;

background:rgba(2,6,23,.80);

backdrop-filter:
blur(20px)
saturate(150%);

border:1px solid
rgba(148,163,184,.18);

box-shadow:
0 25px 60px rgba(0,0,0,.55),
inset 0 0 0 1px
rgba(255,255,255,.03);
}

/* =========================
HERO
========================= */
.hero{
text-align:center;
margin-bottom:30px;
}

.hero h1{
font-size:34px;
font-weight:800;

margin-bottom:12px;

background:
linear-gradient(
90deg,
#38bdf8,
#818cf8
);

-webkit-background-clip:text;
color:transparent;
}

.hero p{
color:#94a3b8;
line-height:1.6;
font-size:15px;
}

/* =========================
UPLOAD BOX
========================= */
.upload-box{
display:block;

width:100%;

padding:35px;

text-align:center;

border-radius:18px;

border:2px dashed
rgba(56,189,248,.45);

background:
rgba(15,23,42,.65);

cursor:pointer;

transition:.3s;
}

.upload-box:hover{
transform:translateY(-2px);

border-color:#38bdf8;

background:
rgba(56,189,248,.08);
}

.upload-icon{
font-size:42px;
margin-bottom:10px;
}

.upload-title{
font-size:17px;
font-weight:600;
color:white;
}

.upload-box small{
display:block;
margin-top:8px;
color:#94a3b8;
}

/* =========================
CANVAS
========================= */
canvas{
width:100%;

margin-top:24px;

border-radius:18px;

display:none;

border:1px solid
rgba(56,189,248,.35);

box-shadow:
0 15px 30px
rgba(0,0,0,.4);

background:#0f172a;
}

/* =========================
CONTROLS
========================= */
.controls{
margin-top:24px;
}

/* =========================
LABEL
========================= */
.controls label{
display:block;

margin-top:18px;
margin-bottom:8px;

color:#cbd5e1;
font-size:14px;
}

/* =========================
QUALITY HEADER
========================= */
.quality-header{
display:flex;
justify-content:space-between;
align-items:center;
}

#qualityValue{
color:#38bdf8;
font-weight:700;
}

/* =========================
RANGE
========================= */
input[type="range"]{
width:100%;
accent-color:#38bdf8;
cursor:pointer;
}

/* =========================
NUMBER INPUT
========================= */
input[type="number"]{
width:100%;

padding:12px;

border-radius:12px;

border:1px solid
rgba(148,163,184,.25);

background:
rgba(15,23,42,.8);

color:white;

transition:.3s;
}

input[type="number"]:focus{
outline:none;

border-color:#38bdf8;

box-shadow:
0 0 0 3px
rgba(56,189,248,.15);
}

/* =========================
SELECT
========================= */
select{
width:100%;

padding:12px;

border-radius:12px;

border:1px solid
rgba(148,163,184,.25);

background:
rgba(15,23,42,.8);

color:white;

cursor:pointer;
}

select:focus{
outline:none;

border-color:#38bdf8;
}

/* =========================
STATS
========================= */
.stats{
display:grid;

grid-template-columns:
repeat(3,1fr);

gap:12px;

margin-top:24px;
}

.stat-card{
background:
rgba(15,23,42,.8);

padding:16px;

border-radius:14px;

text-align:center;

border:1px solid
rgba(148,163,184,.12);
}

.stat-card span{
display:block;

font-size:11px;

color:#94a3b8;
}

.stat-card strong{
display:block;

margin-top:8px;

color:white;

font-size:13px;

line-height:1.4;
}

/* =========================
INDICATOR
========================= */
.indicator{
margin-top:24px;
}

.indicator span{
display:block;

margin-bottom:8px;

color:#93c5fd;

font-size:13px;
}

/* =========================
PROGRESS BAR
========================= */
.progress-wrapper{
width:100%;

height:10px;

border-radius:999px;

overflow:hidden;

background:
rgba(148,163,184,.2);
}

.progress-bar{
width:0%;

height:100%;

border-radius:999px;

background:
linear-gradient(
90deg,
#38bdf8,
#22d3ee,
#818cf8
);

transition:.35s ease;

box-shadow:
0 0 15px
rgba(56,189,248,.8);
}

/* =========================
BUTTON AREA
========================= */
.action-buttons{
display:grid;

grid-template-columns:
1fr 1fr;

gap:12px;

margin-top:24px;
}

/* =========================
BUTTON
========================= */
button{
padding:14px;

border:none;

border-radius:14px;

cursor:pointer;

font-weight:600;

transition:.3s;
}

/* Download */
#compressBtn{
background:
linear-gradient(
135deg,
#38bdf8,
#0ea5e9
);

color:#020617;
}

#compressBtn:hover{
transform:
translateY(-2px);

box-shadow:
0 0 20px
rgba(56,189,248,.8);
}

/* Reset */
#resetBtn{
background:
linear-gradient(
135deg,
#334155,
#1e293b
);

color:white;
}

#resetBtn:hover{
transform:
translateY(-2px);

box-shadow:
0 0 20px
rgba(148,163,184,.4);
}

/* =========================
DISABLED
========================= */
button:disabled{
opacity:.45;
cursor:not-allowed;

transform:none;
box-shadow:none;
}

/* =========================
RESPONSIVE
========================= */
@media(max-width:700px){

.container{
padding:24px;
}

.hero h1{
font-size:28px;
}

.stats{
grid-template-columns:1fr;
}

.action-buttons{
grid-template-columns:1fr;
}

}