:root{
  --bg:#050812;
  --card:#0b1220;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --border:rgba(148,163,184,.2);
  --accent:#38bdf8;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}

.wrap{max-width:1100px;margin:0 auto;padding:16px}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.brand{font-weight:900}

.nav{display:flex;gap:10px;flex-wrap:wrap}
.nav a{
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  text-decoration:none;
  color:var(--text);
  opacity:.9;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--accent);
  color:#001018;
  border:none;
  border-radius:10px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
}

.btn.secondary{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border);
}

.btn.danger{background:#ef4444;color:#fff}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media(max-width:900px){
  .grid{grid-template-columns:1fr}
}

/* ===== Form styling (global) ===== */
label{
  display:block;
  font-weight:800;
  margin:14px 0 8px;
}

input[type=text],
input[type=url],
input[type=number],
input[type=datetime-local],
select,
textarea,
input[type=file]{
  width:100%;
  background:#070f1f;
  border:1px solid var(--border);
  border-radius:12px;
  color:var(--text);
  padding:12px 12px;
  outline:none;
}

textarea{
  min-height:140px;
  resize:vertical;
  line-height:1.45;
}

textarea[name=content_html]{min-height:360px}
textarea[name=iframe_embed]{min-height:180px}

small.help{
  display:block;
  color:var(--muted);
  margin-top:6px;
}

.table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
}
.table th,.table td{
  border-top:1px solid var(--border);
  padding:10px;
  text-align:left;
  vertical-align:top;
}

.badge{
  display:inline-block;
  padding:4px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
}

.row-actions{display:flex;gap:8px;flex-wrap:wrap}

.msg{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  color:var(--muted);
  margin-bottom:12px;
}
