*{box-sizing:border-box}

:root{
  --text:#f8fafc;
  --muted:#94a3b8;
  --blue:#38bdf8;
  --green:#22c55e;
  --yellow:#f59e0b;
  --red:#ef4444;
  --purple:#8b5cf6;
}

body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:radial-gradient(circle at top left,#1e3a8a 0,#07111f 35%),linear-gradient(135deg,#07111f,#020617);
  color:var(--text);
  min-height:100vh;
}

a{text-decoration:none;color:white}

.topbar{
  padding:16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(2,6,23,.75);
  backdrop-filter:blur(18px);
  position:sticky;
  top:0;
  z-index:10;
}

.brand{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:12px;
}

.logo,.logo-big{
  width:42px;
  height:42px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#38bdf8,#2563eb);
  box-shadow:0 10px 25px rgba(56,189,248,.35);
}

.logo-big{
  width:58px;
  height:58px;
  font-size:30px;
  margin:auto;
}

h1{font-size:20px;margin:0}
h2{font-size:17px;margin:0 0 12px}
p{margin:4px 0;color:var(--muted);font-size:12px}

.container{
  max-width:1200px;
  margin:auto;
  padding:16px;
}

.layout{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:16px;
}

.card{
  background:rgba(17,24,39,.88);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 20px 45px rgba(0,0,0,.35);
  border-radius:22px;
  padding:16px;
}

.userbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
  gap:10px;
}

.logout{
  background:#334155;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
}

input,textarea,button{
  width:100%;
  padding:12px 13px;
  margin-top:9px;
  border:none;
  border-radius:13px;
  font-size:14px;
  outline:none;
}

input,textarea{
  background:#f8fafc;
  color:#020617;
}

label{
  display:block;
  margin-top:12px;
  font-size:12px;
  color:#cbd5e1;
  font-weight:bold;
}

button{
  background:linear-gradient(135deg,#38bdf8,#2563eb);
  color:white;
  font-weight:800;
  cursor:pointer;
}

button:disabled{opacity:.6}

small,.small{
  display:block;
  font-size:12px;
  color:#94a3b8;
  margin-top:6px;
}

.order{
  background:linear-gradient(180deg,#1f2937,#111827);
  border:1px solid rgba(255,255,255,.08);
  padding:12px;
  border-radius:16px;
  margin-top:10px;
}

.order-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.order h3{
  margin:0;
  font-size:15px;
  line-height:1.25;
}

.meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}

.meta-box{
  background:#0f172a;
  padding:6px 9px;
  border-radius:10px;
  font-size:12px;
  color:#cbd5e1;
}

.meta-box b{
  display:inline;
  margin-left:4px;
  color:white;
}

.note{
  margin-top:8px;
  font-size:12px;
  line-height:1.35;
  color:#e2e8f0;
  background:#0f172a;
  padding:8px;
  border-radius:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tag{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}

.tag-menunggu{
  background:rgba(56,189,248,.15);
  color:#7dd3fc;
}

.tag-proses{
  background:rgba(245,158,11,.15);
  color:#fbbf24;
}

.download,.spk{
  display:inline-block;
  margin-top:8px;
  padding:8px 10px;
  border-radius:10px;
  color:white;
  font-weight:900;
  font-size:12px;
  width:auto;
}

.download{background:linear-gradient(135deg,#22c55e,#15803d)}
.spk{background:linear-gradient(135deg,#8b5cf6,#6d28d9)}

.actions{
  display:flex;
  gap:8px;
  margin-top:8px;
}

.actions form{flex:1}

.actions button{
  padding:8px 10px;
  font-size:12px;
  margin-top:0;
}

.btn-proses{background:linear-gradient(135deg,#f59e0b,#d97706)}
.btn-selesai{background:linear-gradient(135deg,#22c55e,#15803d)}

.delete-wrap{text-align:right}

.btn-hapus{
  background:linear-gradient(135deg,#ef4444,#991b1b);
  width:auto;
  padding:7px 10px;
  font-size:11px;
  border-radius:9px;
  margin-top:8px;
  display:inline-block;
}

.empty{
  text-align:center;
  padding:30px;
  border:1px dashed #475569;
  border-radius:18px;
  color:#94a3b8;
}

#pasteArea{
  margin-top:9px;
  border:2px dashed #64748b;
  padding:24px;
  text-align:center;
  border-radius:16px;
  background:#0f172a;
  cursor:pointer;
  color:#cbd5e1;
  transition:.2s;
  font-size:13px;
}

#spkPreview{
  max-width:100%;
  margin-top:12px;
  border-radius:14px;
  border:1px solid #334155;
}

#searchOrder{
  margin-bottom:10px;
  background:#0f172a;
  color:white;
  border:1px solid #334155;
}

.refresh{
  display:inline-block;
  background:#334155;
  padding:10px 14px;
  border-radius:12px;
  font-size:12px;
  font-weight:800;
  margin-bottom:8px;
}

.login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}

.login-card{
  width:100%;
  max-width:420px;
  background:rgba(17,24,39,.9);
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:24px;
  text-align:center;
  box-shadow:0 30px 80px rgba(0,0,0,.4);
}

.alert{
  background:rgba(239,68,68,.15);
  color:#fecaca;
  padding:10px;
  border-radius:12px;
  font-size:13px;
  margin-bottom:10px;
}

#progressOverlay{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.82);
  backdrop-filter:blur(10px);
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.progressBox{
  width:100%;
  max-width:420px;
  background:#111827;
  border:1px solid rgba(255,255,255,.1);
  border-radius:24px;
  padding:24px;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
  text-align:center;
}

.progressTitle{font-size:20px;font-weight:900;margin-bottom:8px}
.progressText{color:#94a3b8;font-size:14px;margin-bottom:18px}

.progressTrack{
  width:100%;
  height:14px;
  background:#0f172a;
  border-radius:999px;
  overflow:hidden;
  border:1px solid #334155;
}

.progressFill{
  height:100%;
  width:70%;
  background:linear-gradient(135deg,#38bdf8,#22c55e);
  border-radius:999px;
  animation:loading 1s infinite alternate;
}

@keyframes loading{
  from{width:40%}
  to{width:90%}
}

.image-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
  padding:20px;
}

.hidden{display:none!important}

.image-modal-content{
  position:relative;
  max-width:90%;
  max-height:90%;
}

.image-modal img{
  max-width:100%;
  max-height:90vh;
  border-radius:20px;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
  border:2px solid rgba(255,255,255,.08);
  background:white;
}

.close-image{
  position:absolute;
  top:-15px;
  right:-15px;
  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:#ef4444;
}

@media(max-width:900px){
  .container{padding:12px}
  .layout{grid-template-columns:1fr;gap:12px}
  .card{padding:14px;border-radius:18px}
  .userbar,.order-top{flex-direction:column;align-items:flex-start}
  .actions{display:grid;grid-template-columns:1fr 1fr}
  .topbar{padding:14px 12px}
  h1{font-size:17px}
}
