:root {
  --sidebar-w: 232px;
  --sidebar-bg: #0f1419;
  --topbar-bg: #161b22;
  --border: #21262d;
}

body {
  background: #0d1117;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 1rem 0.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem 1rem 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
  color: #fff;
}
.sidebar .brand i { color: #58a6ff; }

.sidebar .nav-link {
  color: #adb5bd;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sidebar .nav-link:hover { background: #1a1f26; color: #fff; }
.sidebar .nav-link.active { background: #1f6feb22; color: #58a6ff; }
.sidebar .nav-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e7681;
  padding: 1rem 0.75rem 0.25rem 0.75rem;
}

.main { flex: 1; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
}
.topbar .page-title { font-size: 1.1rem; margin: 0; font-weight: 500; }

.content { padding: 1.5rem; max-width: 1500px; }

.card {
  background: #161b22;
  border-color: var(--border);
}
.card-header { background: transparent; border-color: var(--border); }

.metric { padding: 0.75rem; }
.metric .label { font-size: 0.75rem; color: #8b949e; text-transform: uppercase; letter-spacing: 0.05em; }
.metric .value { font-size: 1.75rem; font-weight: 600; color: #fff; margin-top: 0.25rem; }
.metric .trend { font-size: 0.8rem; }
.trend.up { color: #3fb950; }
.trend.down { color: #f85149; }

.table { color: #c9d1d9; }
.table thead th { color: #8b949e; font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

.badge.bg-secondary { background: #30363d !important; }
.tag { font-size: 0.72rem; padding: 0.2rem 0.5rem; border-radius: 4px; background: #21262d; color: #c9d1d9; margin-right: 0.25rem; }

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

.stub-page {
  text-align: center;
  padding: 4rem 2rem;
  color: #8b949e;
}
.stub-page .icon { font-size: 3rem; color: #30363d; }
