:root {
  --sidebar-width: 250px;
  --sidebar-bg: #14213d;
  --accent: #2f6fed;
}

body { background: #f4f6fb; }

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

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand {
  color: #fff;
  text-decoration: none;
  padding: 1rem 1rem 0.75rem;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.65rem 1.1rem;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.sidebar .nav-link.active {
  color: #fff;
  background: rgba(47, 111, 237, 0.25);
  border-left-color: var(--accent);
}

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

.card { border: none; box-shadow: 0 1px 4px rgba(20, 33, 61, 0.08); border-radius: 0.75rem; }

.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; }
.stat-card .stat-label { color: #6c757d; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

.table > :not(caption) > * > * { padding: 0.75rem 1rem; }

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14213d 0%, #2f6fed 100%);
}

.auth-card { width: 100%; max-width: 420px; }

textarea.code-input { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }

@media (max-width: 992px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; min-width: 0; height: auto; position: static; }
}
