/* Wasiliana Ops — dashboard theme (LawSphere layout × Wasiliana/Yangu palette) */
:root {
  --bg: #f5f4f8;
  --card: #ffffff;
  --ink: #0f172a;           /* yangu slate-900 */
  --muted: #64748b;         /* yangu slate-500 */
  --line: #e8e7ee;
  --accent: #673ab7;        /* wasiliana deep purple */
  --accent-2: #d3047d;      /* wasiliana magenta */
  --accent-soft: #efe9fa;
  --blue: #22c55e;          /* yangu green — repurposed as positive accent */
  --green-bg:#e2f6ea; --green-fg:#15803d;   /* yangu green family */
  --amber-bg:#fdf2d9; --amber-fg:#9a6b00;
  --red-bg:#fbe4e4;   --red-fg:#b3261e;
  --gray-bg:#eceff1;  --gray-fg:#5f6b75;
  --blue-bg:#fbe3f2;  --blue-fg:#a80463;    /* magenta tint — "new/ops" badges */
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Inter", "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); display: flex; min-height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar { width: 216px; background: var(--card); border-right: 1px solid var(--line); padding: 20px 14px; position: fixed; top:0; bottom:0; display:flex; flex-direction:column; gap:4px; }
.brand { display:flex; align-items:center; gap:10px; padding: 4px 10px 18px; }
.brand .mark { width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px; }
.brand .name { font-weight:700; font-size:17px; letter-spacing:-.2px; }
.brand .name span { color: var(--muted); font-weight:500; font-size:11px; display:block; }
.nav-item { display:flex; align-items:center; gap:11px; padding:9px 12px; border-radius:10px; color:#4a5760; text-decoration:none; font-size:14px; font-weight:500; }
.nav-item svg { width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.nav-item:hover { background:#f0f4f5; }
.nav-item.active { background:var(--accent); color:#fff; }
.sidebar .foot { margin-top:auto; font-size:11px; color:var(--muted); padding:10px 12px; }

/* ---------- main ---------- */
.main { margin-left:216px; flex:1; padding:22px 28px 40px; }
.topbar { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.topbar h1 { font-size:22px; font-weight:700; letter-spacing:-.3px; }
.search { flex:1; max-width:520px; position:relative; }
.search input { width:100%; padding:9px 14px 9px 36px; border-radius:10px; border:1px solid var(--line); background:var(--card); font-size:13px; color:var(--ink); }
.search svg { position:absolute; left:11px; top:9px; width:16px;height:16px;stroke:var(--muted);fill:none;stroke-width:2; }
.userchip { margin-left:auto; display:flex; align-items:center; gap:9px; font-size:13px; }
.userchip .av { width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600; }
.userchip .role { color:var(--muted); font-size:11px; }

/* ---------- cards & grid ---------- */
.grid { display:grid; gap:16px; }
.cols-4 { grid-template-columns:repeat(4,1fr); }
.cols-3 { grid-template-columns:repeat(3,1fr); }
.cols-2 { grid-template-columns:repeat(2,1fr); }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; }
.card h3 { font-size:13px; font-weight:600; color:var(--muted); margin-bottom:10px; text-transform:uppercase; letter-spacing:.4px; }
.stat .num { font-size:26px; font-weight:700; letter-spacing:-.5px; }
.stat .sub { font-size:12px; color:var(--muted); margin-top:3px; }
.stat .sub b { font-weight:600; }

/* ---------- badges ---------- */
.badge { display:inline-block; padding:3px 10px; border-radius:999px; font-size:11.5px; font-weight:600; white-space:nowrap; }
.b-green { background:var(--green-bg); color:var(--green-fg); }
.b-amber { background:var(--amber-bg); color:var(--amber-fg); }
.b-red   { background:var(--red-bg);   color:var(--red-fg); }
.b-gray  { background:var(--gray-bg);  color:var(--gray-fg); }
.b-blue  { background:var(--blue-bg);  color:var(--blue-fg); }

/* ---------- table ---------- */
table { width:100%; border-collapse:collapse; font-size:13.5px; }
th { text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); font-weight:600; padding:10px 12px; border-bottom:1px solid var(--line); }
td { padding:11px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
tr:last-child td { border-bottom:none; }
tr:hover td { background:#fafcfd; }
td .mono { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; }

/* ---------- misc ---------- */
.btn { background:var(--accent); color:#fff; border:none; padding:8px 16px; border-radius:9px; font-size:13px; font-weight:600; text-decoration:none; display:inline-block; }
.meter { height:8px; border-radius:99px; background:#eef2f4; overflow:hidden; min-width:90px; }
.meter > i { display:block; height:100%; border-radius:99px; background:var(--accent); }
.meter.warn > i { background:#d9a514; }
.meter.bad > i { background:var(--red-fg); }
.list { list-style:none; }
.list li { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); font-size:13.5px; }
.list li:last-child { border-bottom:none; }
.dot { width:8px;height:8px;border-radius:50%;flex-shrink:0; }
.d-green{background:#2e9e56}.d-amber{background:#d9a514}.d-red{background:#c33}.d-gray{background:#aab4bb}
.cal { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal .dow { font-size:11px; color:var(--muted); text-transform:uppercase; text-align:center; padding:6px 0; font-weight:600; }
.cal .day { background:#f8fafb; border:1px solid var(--line); border-radius:9px; min-height:74px; padding:6px 8px; font-size:12px; }
.cal .day .n { color:var(--muted); font-weight:600; }
.cal .day.today { outline:2px solid var(--accent); }
.evt { display:block; margin-top:4px; padding:3px 6px; border-radius:6px; font-size:11px; font-weight:600; }
.note { font-size:12.5px; color:var(--muted); line-height:1.55; }
@media (max-width:1100px){ .cols-4{grid-template-columns:repeat(2,1fr)} .cols-3{grid-template-columns:1fr} }
