:root {
  --primary: #4f46e5;
  --text:    #0f172a;
  --bg:      #f8fafc;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0; }

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

.sidebar {
  width: 240px;
  background: #1e1b4b;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 1040;
  transition: transform .2s ease;
}
.sidebar-brand { padding: 16px; font-weight: 700; font-size: 17px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-group { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-group.mt-auto { margin-top: auto; border-bottom: none; }
.nav-group-label { padding: 6px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 700; }
.nav-link-item { display: flex; align-items: center; gap: 8px; padding: 9px 16px; color: #cbd5e1; text-decoration: none; font-size: 14px; }
.nav-link-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link-item.active { background: var(--primary); color: #fff; }
.nav-icon { width: 18px; text-align: center; }

.main-content { flex: 1; margin-left: 240px; padding: 24px; }

.topbar-mobile { display: none; background: #1e1b4b; color: #fff; position: sticky; top: 0; z-index: 1030; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035; }
.sidebar-overlay.show { display: block; }

@media (max-width: 767.98px) {
  .topbar-mobile { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 16px; }
}

.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.page-header-title { font-size: 22px; font-weight: 700; margin: 0; }
.page-header-subtitle { color: #64748b; font-size: 13px; margin: 2px 0 0; }

.card { border: 1px solid #e2e8f0; border-radius: 10px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
