/*
 * BorneoSchematics Panel
 * Copyright (c) 2026 BorneoSchematics — All Rights Reserved.
 * Licensed exclusively to GsmGenesis.
 * Made with love in India.
 */
/* Borneo Admin — shadcn/ui-inspired design system (light + dark) */
:root{
  --background:#ffffff; --foreground:#0a0a0a;
  --card:#ffffff; --card-foreground:#0a0a0a;
  --muted:#f5f5f5; --muted-foreground:#737373;
  --border:#e5e5e5; --input:#e5e5e5; --ring:#a3a3a3;
  --primary:#171717; --primary-foreground:#fafafa;
  --accent:#f5f5f5; --accent-foreground:#171717;
  --sidebar:#fafafa; --sidebar-border:#ececec;
  --green:#16a34a; --green-soft:#dcfce7;
  --red:#dc2626; --red-soft:#fee2e2;
  --amber:#d97706; --amber-soft:#fef3c7;
  --radius:12px;
  --shadow:0 1px 2px rgba(0,0,0,.04);
}
:root[data-theme="dark"]{
  /* Dhru Fusion-style neutral warm charcoal — professional, low-glare, eyes par zor nahi */
  --background:#23262c; --foreground:#cdd2d9;
  --card:#2b2f37; --card-foreground:#cdd2d9;
  --muted:#323740; --muted-foreground:#8a909b;
  --border:#373c44; --input:#373c44; --ring:#4a5059;
  --primary:#e6e9ee; --primary-foreground:#1a1d22;
  --accent:#323740; --accent-foreground:#cdd2d9;
  --sidebar:#1b1e23; --sidebar-border:#2a2e34;
  --green:#57ca85; --green-soft:#16301f;
  --red:#ec7c76; --red-soft:#331817;
  --amber:#e3ab48; --amber-soft:#332612;
  --shadow:0 1px 2px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--background);color:var(--foreground);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;font-size:14px}
a{color:inherit;text-decoration:none}
.muted{color:var(--muted-foreground)}

/* Layout shell */
.a-shell{display:flex;min-height:100vh}
.a-side{width:256px;flex-shrink:0;background:var(--sidebar);border-right:1px solid var(--sidebar-border);
  display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto}
.a-brand{display:flex;align-items:center;gap:9px;padding:16px 16px 8px;font-weight:600}
.a-brand .logo{width:26px;height:26px;border-radius:7px;background:var(--primary);color:var(--primary-foreground);
  display:grid;place-items:center;font-weight:800;font-size:14px}
.a-quick{margin:8px 12px;display:flex;gap:8px}
.a-quick .btn{flex:1}
.a-navgroup{font-size:11px;font-weight:500;color:var(--muted-foreground);padding:14px 20px 6px;letter-spacing:.02em}
.a-nav{display:flex;align-items:center;gap:10px;margin:1px 10px;padding:8px 10px;border-radius:8px;
  color:var(--foreground);font-weight:500;cursor:pointer}
.a-nav:hover{background:var(--accent)}
.a-nav.active{background:var(--accent);font-weight:600}
.a-nav .ico{width:16px;height:16px;flex-shrink:0;opacity:.8}
.a-nav .tag{margin-left:auto;font-size:10px;font-weight:600;color:var(--green);background:var(--green-soft);
  padding:1px 6px;border-radius:6px}
.a-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 16px;border-top:1px solid var(--sidebar-border)}
.a-user .av{width:30px;height:30px;border-radius:8px;background:var(--muted);display:grid;place-items:center;font-weight:700}
.a-user .nm{font-weight:600;font-size:13px;line-height:1.2}
.a-user .em{font-size:11px;color:var(--muted-foreground)}

.a-main{flex:1;min-width:0;display:flex;flex-direction:column}
.a-top{height:56px;display:flex;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid var(--border);
  position:sticky;top:0;background:var(--background);z-index:5}
.a-search{display:flex;align-items:center;gap:8px;background:var(--muted);border:1px solid var(--border);
  border-radius:8px;padding:7px 10px;color:var(--muted-foreground);font-size:13px;min-width:220px}
.a-top .spacer{flex:1}
.icon-btn{width:34px;height:34px;border-radius:8px;border:1px solid var(--border);background:var(--card);
  display:grid;place-items:center;cursor:pointer;color:var(--foreground)}
.icon-btn:hover{background:var(--accent)}
.a-content{padding:24px;display:flex;flex-direction:column;gap:16px;width:100%;max-width:1200px;margin:0;box-sizing:border-box}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;
  border-radius:8px;padding:8px 13px;font-weight:500;font-size:13px;cursor:pointer;font-family:inherit;
  background:var(--card);color:var(--foreground)}
.btn-primary{background:var(--primary);color:var(--primary-foreground)}
.btn-primary:hover{opacity:.9}
.btn-outline{border-color:var(--border);background:var(--card)}
.btn-outline:hover{background:var(--accent)}
.btn-sm{padding:6px 10px;font-size:12px}

/* Cards */
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.card-p{padding:20px}
.card-h{padding:18px 20px 0}
.card-h h3{margin:0;font-size:15px;font-weight:600}
.card-h p{margin:3px 0 0;font-size:13px;color:var(--muted-foreground)}

/* KPI grid */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.kpis{grid-template-columns:1fr}}
.kpi{padding:18px 20px}
.kpi .top{display:flex;justify-content:space-between;align-items:flex-start}
.kpi .lbl{font-size:13px;color:var(--muted-foreground)}
.kpi .ico{width:18px;height:18px;color:var(--muted-foreground)}
.kpi .val{font-size:30px;font-weight:700;letter-spacing:-.02em;margin:10px 0 8px}
.kpi .sub{font-size:12px;color:var(--muted-foreground)}
.badge{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:2px 8px;border-radius:20px}
.badge-up{color:var(--green);background:var(--green-soft)}
.badge-down{color:var(--red);background:var(--red-soft)}
.badge-neutral{color:var(--muted-foreground);background:var(--muted)}
.badge-green{color:var(--green);background:var(--green-soft)}
.badge-red{color:var(--red);background:var(--red-soft)}
.badge-amber{color:var(--amber);background:var(--amber-soft)}

/* Table */
.tbl-wrap{overflow-x:auto}
table.tbl{width:100%;border-collapse:collapse;font-size:13px}
table.tbl th{text-align:left;color:var(--muted-foreground);font-weight:500;padding:10px 14px;border-bottom:1px solid var(--border)}
table.tbl td{padding:12px 14px;border-bottom:1px solid var(--border)}
table.tbl tr:last-child td{border-bottom:none}
.cell-user{display:flex;align-items:center;gap:10px}
.cell-user .av{width:28px;height:28px;border-radius:7px;background:var(--muted);display:grid;place-items:center;font-weight:700;font-size:11px}
.cell-user .nm{font-weight:600}
.cell-user .id{font-size:11px;color:var(--muted-foreground)}
.dot{width:7px;height:7px;border-radius:50%;display:inline-block}

.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 20px 14px}
.input{background:var(--card);border:1px solid var(--input);border-radius:8px;padding:8px 11px;font-size:13px;color:var(--foreground);font-family:inherit;outline:none}
.input:focus{border-color:var(--ring)}
.h1{font-size:22px;font-weight:700;letter-spacing:-.01em;margin:0}
.page-sub{color:var(--muted-foreground);font-size:13px;margin:2px 0 0}
.chart-box{padding:8px 12px 16px;height:300px}
