:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --border: #e2e8f0;
}

html {
  font-size: 15px;
  min-height: 100%;
}

body {
  color: var(--text);
  background: radial-gradient(circle at top right, #e0ecff, #f8fbff 38%, #f4f7fb 70%);
  min-height: 100vh;
}

.app-shell {
  max-width: 1280px;
}

.navbar-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 1rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-pill .nav-link {
  border-radius: 10px;
  color: #334155;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
}

.nav-pill .nav-link.active,
.nav-pill .nav-link:hover {
  background: var(--primary-soft);
  color: #1d4ed8;
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #2563eb;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: #1d4ed8;
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: #d7e1ef;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.form-control:focus,
.form-select:focus,
.btn:focus {
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.2);
  border-color: #8bb7ff;
}

.table-modern {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.table-modern thead th {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-width: 1px;
  border-color: var(--border);
  padding: 0.9rem 0.85rem;
  background: #f8fafc;
}

.table-modern tbody td {
  border-color: #eef2f7;
  padding: 0.85rem;
  vertical-align: middle;
}

.table-modern tbody tr:hover {
  background: #f8fbff;
}

.page-footer {
  color: #64748b;
  padding: 1.1rem 0 2rem;
}

.auth-wrap {
  min-height: calc(100vh - 220px);
}

.auth-card {
  max-width: 430px;
}

.metric {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fbff;
}