:root {
  --sidebar-width: 220px;
  --sidebar-bg: linear-gradient(160deg, #0009b7 0%, #2a98ff 100%);
  --sidebar-text: rgba(255,255,255,0.82);
  --sidebar-active: #ffffff;
  --topbar-height: 52px;
}

body {
  background: #f0f4f8;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: .875rem;
}

/* ─── Auth page ─── */
.auth-bg { background: linear-gradient(135deg, #c9c9c9 0%, #05478d 100%) }

/* ─── Sidebar wrapper (adds padding + radius) ─── */
#sidebar-wrapper {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: #e8eef5;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* ─── Sidebar inner (the colored pill) ─── */
#sidebar {
  width: 100%;
  height: 100%;
  background: var(--sidebar-bg);
  border-radius: 0 16px 16px 0;
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  overflow-y: auto;
  box-shadow: 0 4px 24px rgba(2,136,209,0.18);
}

.sidebar-section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 4px 10px;
}

.sidebar-link {
  color: var(--sidebar-text);
  border-radius: 10px;
  padding: .45rem .75rem;
  font-size: .82rem;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
}
.sidebar-link:hover { background: rgba(255,255,255,.15); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,.22); color: #fff; font-weight: 600; }

.navbar-brand { text-decoration: none; }
.navbar-brand span { font-size: .95rem; }

/* ─── Topbar ─── */
.topbar {
  height: var(--topbar-height);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 #e5e7eb;
}

/* ─── Content wrapper ─── */
#page-content-wrapper { min-width: 0; }

/* ─── Stat cards ─── */
.stat-card { transition: transform .15s, box-shadow .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08) !important; }
.stat-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* ─── Tables ─── */
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 600; }
.table td { font-size: .82rem; }

/* ─── Cards ─── */
.card { border-radius: 14px !important; }

/* ─── Quill editor ─── */
.ql-toolbar { border-radius: 8px 8px 0 0; }
.ql-container { border-radius: 0 0 8px 8px; font-size: .875rem; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
