/* webadmin/assets/admin.css */
:root{
  --bg:#070a11;
  --panel: rgba(18,24,37,.82);
  --panel2: rgba(10,12,18,.70);
  --text:#e9eefc;
  --muted:rgba(233,238,252,.72);
  --line:rgba(255,255,255,.10);
  --shadow:0 18px 55px rgba(0,0,0,.55);
  --r:16px;
  --orange:#ff8c28;
  --blue:#4cc3ff;
  --green:#62ff7b;
}
*{box-sizing:border-box}
body{
  margin:0;
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Noto Sans',sans-serif;
  background: var(--bg) url("/assets/img/texture_bg.png") center/cover fixed;
}
a{color:inherit;text-decoration:none}
.container{max-width:1180px;margin:0 auto;padding:22px 18px}
.topbar{
  position:sticky;top:0;z-index:20;
  background:linear-gradient(to bottom, rgba(20,24,33,.96), rgba(12,15,22,.90));
  border-bottom:1px solid rgba(255,140,40,.35);
  box-shadow:0 10px 35px rgba(0,0,0,.65);
}
.topbar .inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px}
.brand{display:flex;align-items:center;gap:12px}
.brand svg{height:46px;width:auto}
.nav{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.nav a{
  padding:10px 12px;border-radius:12px;
  border:1px solid transparent;
  color:rgba(233,238,252,.86);
  font-weight:900;font-size:13px;letter-spacing:.2px;
  background:rgba(255,255,255,.04);
}
.nav a:hover{border-color:rgba(255,255,255,.10);background:rgba(255,255,255,.07)}
.nav a.active{border-color:rgba(255,140,40,.45);background:linear-gradient(180deg, rgba(255,140,40,.22), rgba(0,0,0,.18))}
.card{
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--r);
  background:linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow:var(--shadow);
  padding:18px;
}
.stack{display:grid;gap:14px}
.h1{margin:0 0 6px;font-size:26px;font-weight:1000}
.small{color:var(--muted);font-size:13px;line-height:1.45}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:980px){.grid2,.grid3{grid-template-columns:1fr}}
.label{display:block;font-size:12.5px;color:var(--muted);margin:0 0 6px;font-weight:900;letter-spacing:.2px}
.input, select.input, textarea.input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.35);
  color:var(--text);
  outline:none;
}
textarea.input{min-height:160px;resize:vertical}
.input:focus{
  border-color:rgba(76,195,255,.55);
  box-shadow:0 0 0 4px rgba(76,195,255,.14);
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 14px;border-radius:12px;
  font-weight:950;font-size:13px;letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
}
.btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.10)}
.btn.primary{
  border-color:rgba(255,140,40,.55);
  background:linear-gradient(180deg, rgba(255,140,40,.35), rgba(0,0,0,.20));
}
.btn.danger{
  border-color:rgba(255,80,80,.55);
  background:linear-gradient(180deg, rgba(255,80,80,.25), rgba(0,0,0,.20));
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
}
.table th,.table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
}
.table th{
  font-size:12px;
  color:rgba(233,238,252,.80);
  text-transform:uppercase;
  letter-spacing:.12em;
  background:rgba(255,255,255,.04);
}
.table tr:hover td{background:rgba(255,255,255,.03)}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.notice{
  border:1px solid rgba(98,255,123,.35);
  background:rgba(98,255,123,.08);
  padding:12px;border-radius:14px;
}
.error{
  border:1px solid rgba(255,154,60,.35);
  background:rgba(255,154,60,.08);
  padding:12px;border-radius:14px;
}
.thumb{width:92px;height:52px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.35)}
.rowdrag{cursor:grab;opacity:.85}
.rowdrag:active{cursor:grabbing}
.kbd{font-size:12px;color:rgba(233,238,252,.72)}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 0}
.toolbar .btn{padding:9px 12px}
.editor{
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  padding:12px;
  background:rgba(0,0,0,.32);
  min-height:220px;
  outline:none;
}
.editor:focus{border-color:rgba(76,195,255,.55); box-shadow:0 0 0 4px rgba(76,195,255,.14);}

/* Toggle switch */
.switch{display:inline-flex;align-items:center;gap:10px}
.switch input{display:none}
.switch .track{
  width:54px;height:30px;border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  position:relative; transition:.2s;
}
.switch .thumb{
  width:24px;height:24px;border-radius:999px;
  position:absolute; top:2.5px; left:3px;
  background:rgba(233,238,252,.85);
  transition:.2s;
}
.switch input:checked + .track{
  border-color:rgba(98,255,123,.45);
  background:linear-gradient(180deg, rgba(98,255,123,.25), rgba(0,0,0,.20));
}
.switch input:checked + .track .thumb{ left:26px; background:#62ff7b; }

/* Modal */
.modal{position:fixed;inset:0;display:none;place-items:center;z-index:50}
.modal.open{display:grid}
.modal .backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
.modal .box{position:relative;width:min(920px,calc(100% - 26px))}
.modal .box .card{padding:18px}
.modal .top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.modal .close{cursor:pointer}

/* Small helpers */
.help{color:rgba(233,238,252,.72);font-size:12px;line-height:1.4}
.errline{margin-top:10px;border:1px solid rgba(255,120,80,.35);background:rgba(255,120,80,.08);padding:10px;border-radius:12px}

/* nicer checkbox in badge (if any left) */
.badge input{transform:translateY(1px)}
