:root {
  --brand: #146c43;
  --brand-dark: #0f5132;
  --sidebar-width: 260px;
}

body {
  background: #f4f6f8;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

.app-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--brand-dark), var(--brand));
  color: #fff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 1.5rem;
}

.sidebar-heading {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.55);
  padding: 1rem 1rem .3rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .92rem;
  border-left: 3px solid transparent;
}

.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,.14); border-left-color: #fff; color: #fff; font-weight: 600; }

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

.topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: .5rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.stat-card {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-radius: .75rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7280; border-bottom-width: 1px; }
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.login-card { max-width: 420px; width: 100%; border-radius: 1rem; }

@media (max-width: 991.98px) {
  .app-sidebar { position: fixed; z-index: 1050; left: -100%; transition: left .2s ease; }
  .app-sidebar.show { left: 0; }
}
