:root{
  --brand:#111827;
  --brand2:#0f172a;
  --accent:#2563eb;
  --muted:#6b7280;
  --card:#ffffff;
  --bg:#f3f4f6;
}

body.bg-light{ background: var(--bg) !important; }

.navbar.bg-dark{
  background: linear-gradient(90deg, var(--brand2), var(--brand)) !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.navbar-brand{
  font-weight: 700;
  letter-spacing: .2px;
}

.container.py-4{ max-width: 1100px; }

.card{
  border: 0;
  border-radius: 14px;
}

.card.shadow-sm{
  box-shadow: 0 10px 30px rgba(17,24,39,.08) !important;
}

.table{
  margin-bottom: 0;
}

.table thead th{
  border-top: 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-weight: 700;
  color: #111827;
}

.table td, .table th{
  vertical-align: middle;
}

.badge{
  padding: .4rem .55rem;
  border-radius: 999px;
}

.btn{
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary{
  background: var(--accent);
  border-color: var(--accent);
}

.btn-outline-primary{
  border-color: rgba(37,99,235,.5);
  color: var(--accent);
}

.btn-outline-primary:hover{
  background: var(--accent);
  border-color: var(--accent);
}

.form-control{
  border-radius: 10px;
}

.form-control:focus{
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.15);
  border-color: rgba(37,99,235,.6);
}

.codebox{
  background: #0b1220;
  color: #e5e7eb;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  overflow: auto;
}

.kpi{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}
.kpi .kpi-card{
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
  min-width: 190px;
  border: 1px solid rgba(0,0,0,.04);
}
.kpi .label{ color: var(--muted); font-size: 12px; }
.kpi .value{ font-size: 18px; font-weight: 800; color:#111827; }

.small-muted{ color: var(--muted); font-size: 13px; }

.login-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}

.login-card{
  width: 100%;
  max-width: 520px;
}

.brand-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:#111827;
}

.brand-dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}
