:root {
  --void: #0a0e14;
  --deep: #10151d;
  --surface: #161d28;
  --panel: #1c2531;
  --border: #2a3441;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --green: #22c55e;
  --text: #e6edf3;
  --text-muted: #8b98a9;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.navbar-karma {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--void); font-size: 14px;
}
.text-muted-light { color: var(--text-muted); }
.approval-count { position: absolute; top: -6px; right: -10px; font-size: 10px; }

.sidebar {
  width: 240px;
  min-height: calc(100vh - 56px);
  background: var(--deep);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  flex-shrink: 0;
}
.sidebar-heading {
  text-transform: uppercase; font-size: 11px; letter-spacing: .08em;
  color: var(--text-muted); margin: 18px 12px 6px;
}
.sidebar-link {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text-muted); text-decoration: none; font-size: 14px; margin-bottom: 2px;
}
.sidebar-link i { width: 18px; text-align: center; margin-right: 8px; }
.sidebar-link:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.sidebar-link.active { background: rgba(34,211,238,0.12); color: var(--cyan); font-weight: 600; }

.content-area { background: var(--void); min-height: calc(100vh - 56px); }

.card, .panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
}
.card-header { background: var(--panel); border-bottom: 1px solid var(--border); }

.table { color: var(--text); }
.table thead th { border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table td, .table th { border-top: 1px solid var(--border); vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--panel); }

.form-control, .custom-select {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
}
.form-control:focus, .custom-select:focus {
  background: var(--panel); color: var(--text); border-color: var(--cyan);
  box-shadow: 0 0 0 .2rem rgba(34,211,238,.15);
}
.form-control::placeholder { color: var(--text-muted); }

.btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--void); font-weight: 600; }
.btn-primary:hover { background: #0891b2; border-color: #0891b2; color: var(--void); }
.btn-outline-light { border-color: var(--border); }

.state-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--void);
}

.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--cyan); border: 2px solid var(--void);
}

.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at top, var(--deep), var(--void));
}
.login-card { width: 380px; }

.kpi-value { font-size: 28px; font-weight: 700; }
.kpi-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }

.workflow-node {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
  background: var(--panel); display: inline-block; margin: 6px; font-size: 13px;
}
