:root{
  --bg:#0b0c10;
  --card:#111218;
  --muted:#9aa0a6;
  --text:#e6e6e6;
  --acc:#8ab4f8;
  --danger:#ef4444;
  --ok:#22c55e;
  --border:#1f2430;
  --shadow: 0 6px 24px rgba(0,0,0,.25);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 800px at 70% -10%, #0f172a 10%, #0b0c10 60%);
  color:var(--text);
}

.container{ width:min(1100px, 92%); margin-inline:auto; }
header{ padding:40px 0 10px; }
h1{ margin:0; font-weight:800; letter-spacing:.2px; }
.tag{ font-size:.6em; background:#19202d; color:var(--acc); padding:.25em .5em; border-radius:8px; margin-left:.3rem; }
.sub{ color:var(--muted); margin:.25rem 0 0; }

.grid{ display:grid; grid-template-columns: 1fr 1.5fr; gap:18px; }
@media (max-width: 900px){ .grid{ grid-template-columns: 1fr; } }

.card{
  background: linear-gradient(180deg, #12131a, #0f1016);
  border:1px solid var(--border);
  border-radius:16px; padding:18px 18px 14px;
  box-shadow: var(--shadow);
}

.field{ margin:12px 0; }
label{ display:block; margin-bottom:6px; color:var(--muted); font-size:.95rem; }
.input, input, select{
  width:100%; padding:10px 12px; border-radius:10px; border:1px solid #242938;
  background:#0b0d14; color:var(--text); outline:none;
}
.input:focus, input:focus, select:focus{ border-color:#2b3348; }

.actions{ display:flex; gap:10px; margin-top:10px; }
.btn{
  padding:9px 14px; border-radius:10px; border:1px solid #263146; background:#151a25; color:var(--text);
  cursor:pointer;
}
.btn:hover{ background:#1a2231; }
.btn.primary{ background:linear-gradient(180deg,#1f2937,#111827); border-color:#2a3a56; color:#eaf1ff; }
.btn.primary:hover{ filter:brightness(1.05); }
.btn.ghost{ background:transparent; border-color:#2b3348; color:var(--muted); }

.list-header{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.controls{ display:flex; gap:10px; align-items:center; }
.right{ text-align:right; }

.table{ width:100%; border-collapse:collapse; margin-top:8px; }
.table th, .table td{ border-top:1px solid #1f2430; padding:10px 8px; vertical-align:middle; }
.table thead th{ text-align:left; color:#cfd4dc; font-weight:600; }
.table tbody tr:hover{ background:#0e121b; }
.table button{ padding:6px 10px; border-radius:8px; border:1px solid #2b3348; background:#141824; color:var(--text); cursor:pointer; }
.table .del{ border-color:#3a2330; background:#201418; color:#f8b4b4; }
.table .edit{ color:#cde1ff; }

.status{ min-height:22px; margin:6px 0; color:var(--muted); }
.pagination{ display:flex; gap:10px; align-items:center; justify-content:flex-end; padding-top:8px; }

.foot{ display:flex; flex-direction:column; gap:10px; padding:18px 0 36px; color:var(--muted); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.toast{
  position:fixed; right:18px; bottom:18px; padding:10px 14px; background:#0f1420; border:1px solid #273045;
  color:#dbeafe; border-radius:10px; box-shadow: var(--shadow); opacity:0; transform:translateY(10px);
  transition: all .25s ease;
}
.toast.show{ opacity:1; transform:translateY(0); }

.hint{ color:var(--muted); font-size:.9rem; margin-top:8px; }
