:root{
  --bg:#0b1220;
  --card:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:#243244;
  --btn:#2563eb;
  --btn2:#374151;
  --danger:#ef4444;
  --ok:#22c55e;
  --warn:#f59e0b;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 600px at 20% 10%, #0f1b35 0%, var(--bg) 55%);
  color:var(--text);
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 18px 10px;
  gap:14px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  width:44px;
  height:44px;
  border-radius:12px;
  background:#0b1020;
  padding:6px;
  border:1px solid rgba(255,255,255,0.08);
}
h1{margin:0;font-size:18px;line-height:1.1;}
.sub{margin:4px 0 0;color:var(--muted);font-size:13px;}

.actions{display:flex;gap:10px;align-items:center;}

.container{
  max-width:980px;
  margin:0 auto;
  padding:18px;
  display:grid;
  gap:16px;
}

.card{
  background: rgba(17,24,39,0.75);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

h2{margin:0 0 10px;font-size:16px;}
.muted{color:var(--muted);margin:6px 0 12px;font-size:13px;}

.btn{
  border:none;
  border-radius:12px;
  padding:10px 12px;
  color:white;
  background:var(--btn);
  cursor:pointer;
  font-weight:600;
}
.btn:disabled{
  opacity:0.55;
  cursor:not-allowed;
}
.btn.secondary{background:var(--btn2);}
.btn.danger{background:var(--danger);}

.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:10px 0 12px;
}

.status{
  margin-left:auto;
  font-size:13px;
  color:var(--muted);
}

.tableWrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:520px;
  background:rgba(0,0,0,0.15);
}
thead th{
  text-align:left;
  font-size:13px;
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  color:#d1d5db;
}
tbody td{
  padding:8px 10px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
input.cell{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  outline:none;
}
input.cell:focus{
  border-color: rgba(37,99,235,0.8);
  box-shadow:0 0 0 3px rgba(37,99,235,0.2);
}

.iconBtn{
  background:transparent;
  border:1px solid rgba(255,255,255,0.12);
  color:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.iconBtn:hover{border-color:rgba(255,255,255,0.25);}

.hint{
  margin:12px 0 0;
  color:var(--muted);
  font-size:12px;
}

.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 18px 18px;
  color:var(--muted);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.15);
  font-size:12px;
}
.badge::before{
  content:"";
  width:9px;height:9px;border-radius:50%;
  background:var(--warn);
}
.badge.online::before{background:var(--ok);}
.badge.offline::before{background:var(--danger);}

.list{
  margin:8px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
}
