/* optiPDF minimal UI */
:root{
  --bg:#0b1020;
  --card:#101a33;
  --muted:#8fa0c6;
  --text:#e8eeff;
  --accent:#6aa6ff;
  --border:rgba(255,255,255,.10);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 800px at 20% 0%, #17244a, var(--bg));
  color: var(--text);
}
.wrap{max-width:860px; margin:0 auto; padding:28px 16px 48px}
.hero{display:flex; flex-direction:column; gap:8px; margin-bottom:18px}
.logo{font-size:26px; font-weight:800; letter-spacing:.2px}
.tag{margin:0; color:var(--muted); line-height:1.45}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.drop{
  position:relative;
  border:2px dashed rgba(106,166,255,.55);
  background: rgba(0,0,0,.18);
  border-radius:16px;
  padding:26px;
  cursor:pointer;
  outline:none;
}
.drop:focus{box-shadow:0 0 0 3px rgba(106,166,255,.25)}
.drop.dragover{background: rgba(106,166,255,.08)}
.drop-inner{display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center}
.drop-title{font-size:34px; font-weight:900; letter-spacing:.6px}
.drop-sub{color:var(--muted)}
.filemeta{margin-top:6px; color:var(--text); font-weight:600}
.file{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.controls{margin-top:14px}
.label{display:block; font-size:13px; color:var(--muted); margin:12px 0 6px}
select, input[type="number"]{
  width:100%;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius:10px;
  padding:10px 12px;
  outline:none;
}
.row{display:flex; gap:14px}
.col{flex:1}

.seg{
  display:flex; gap:10px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  border-radius:10px;
  padding:10px 12px;
}
.seg label{display:flex; gap:8px; align-items:center; font-size:14px}

.advanced{
  margin-top:12px;
  border:1px dashed var(--border);
  border-radius:12px;
  padding:12px;
}
.grid{display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px}
.hint{margin-top:6px; font-size:12px; color:var(--muted)}

.checks{display:flex; flex-wrap:wrap; gap:14px; margin:12px 0 0}
.check{display:flex; gap:8px; align-items:center; font-size:14px}

.btn{
  margin-top:14px;
  width:100%;
  border:0;
  border-radius:12px;
  padding:12px 14px;
  font-weight:800;
  background: linear-gradient(90deg, #3e7bff, #65b6ff);
  color:#071022;
  cursor:pointer;
}
.btn:disabled{opacity:.55; cursor:not-allowed}

.status{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  min-height:20px;
}
.note{
  margin-top:12px;
  font-size:12px;
  color:var(--muted);
  line-height:1.45;
}
code{background:rgba(0,0,0,.25); padding:2px 6px; border-radius:6px; border:1px solid var(--border)}
.foot{margin-top:14px; color:var(--muted); font-size:12px}

@media (max-width:860px){
  .row{flex-direction:column}
  .grid{grid-template-columns:1fr}
  .drop-title{font-size:28px}
}
