/* VIPSMS - Base UI (dark, readable) */
:root{
  --bg: #0b1220;
  --panel: #101a2e;
  --panel2:#0d1629;
  --text: #e8eefc;
  --muted: rgba(232,238,252,.72);
  --border: rgba(255,255,255,.10);
  --primary:#2563eb;
  --info:#7dd3fc;
  --warn:#fbbf24;
  --success:#22c55e;
  --danger:#ef4444;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: var(--info); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.nav{
  position:sticky; top:0; z-index:50;
  background: rgba(16,26,46,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:.3px;
}
.brand img{ width:28px; height:28px; }
.nav-links{ display:flex; flex-wrap:wrap; gap:14px; }
.nav-links a{ color: var(--text); opacity:.9; font-weight:600; }
.nav-links a:hover{ opacity:1; }

.card{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.card2{ background: var(--panel2); }

.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px){
  .grid-2,.grid-3{ grid-template-columns: 1fr; }
}

.h1{ font-size: 22px; font-weight:800; margin:0 0 6px; }
.h2{ font-size: 16px; font-weight:800; margin:0; }
.muted{ color: var(--muted); }
.small{ font-size: 13px; }
.hr{ border:0; border-top:1px solid var(--border); margin:14px 0; }

.input, .textarea, .select{
  width:100%;
  background: var(--panel2);
  border:1px solid rgba(255,255,255,.14);
  color: var(--text);
  border-radius:12px;
  padding:12px 12px;
  outline:none;
}
.textarea{ min-height:140px; resize:vertical; }
.input:focus,.textarea:focus,.select:focus{
  border-color: rgba(125,211,252,.55);
  box-shadow: 0 0 0 4px rgba(125,211,252,.10);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:12px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
  user-select:none;
}
.btn-primary{ background: var(--primary); color:white; }
.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color: var(--text);
}
.btn-danger{ background: var(--danger); color:white; }

.badge{
  display:inline-flex; align-items:center;
  padding:5px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  border:1px solid rgba(125,211,252,.25);
  color: var(--info);
  background: rgba(125,211,252,.12);
}
.badge-warn{ border-color: rgba(251,191,36,.35); color: var(--warn); background: rgba(251,191,36,.10); }
.badge-success{ border-color: rgba(34,197,94,.35); color: var(--success); background: rgba(34,197,94,.10); }
.badge-danger{ border-color: rgba(239,68,68,.35); color: var(--danger); background: rgba(239,68,68,.10); }

.table-wrap{ overflow:auto; border-radius:14px; border:1px solid var(--border); }
table{ width:100%; border-collapse:collapse; min-width:760px; background: var(--panel); }
th,td{ padding:12px; border-bottom:1px solid var(--border); text-align:left; font-size:14px; }
th{ font-size:12px; text-transform:uppercase; letter-spacing:.8px; color: var(--muted); }
tr:hover td{ background: rgba(255,255,255,.02); }

.alert{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  margin:12px 0;
}
.alert-success{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.10); }
.alert-danger{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10); }
.alert-warning{ border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.10); }
