/* Minimal “design system” inspired by /ui/src/app/globals.css (Tailwind v4 tokens) */

:root {
  --font-outfit: Outfit, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Brand palette (LAfricaMobile) */
  --color-brand-25: #f5f5ff;
  --color-brand-50: #f0f0ff;
  --color-brand-100: #e0e0ff;
  --color-brand-200: #c2c2ff;
  --color-brand-300: #a3a3ff;
  --color-brand-400: #8080ff;
  --color-brand-500: #3333ff;
  --color-brand-600: #2626cc;
  --color-brand-700: #1a1a99;
  --color-brand-800: #0f0f66;
  --color-brand-900: #080833;

  /* Gray scale */
  --color-gray-25: #fcfcfd;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f2f4f7;
  --color-gray-200: #e4e7ec;
  --color-gray-300: #d0d5dd;
  --color-gray-400: #98a2b3;
  --color-gray-500: #667085;
  --color-gray-600: #475467;
  --color-gray-700: #344054;
  --color-gray-800: #1d2939;
  --color-gray-900: #101828;

  /* Shadows (from globals.css) */
  --shadow-theme-sm: 0px 1px 3px 0px rgba(16, 24, 40, 0.1), 0px 1px 2px 0px rgba(16, 24, 40, 0.06);
  --shadow-theme-md: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
  --shadow-theme-lg: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;

  /* Public survey primary color (can be overridden inline) */
  --pc: var(--color-brand-500);
}

* { box-sizing: border-box; }

body.page {
  margin: 0;
  font-family: var(--font-outfit);
  background: var(--color-gray-50);
  color: var(--color-gray-900);
}

a {
  color: var(--color-brand-600);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: 980px;
  margin: 18px auto;
  padding: 0 12px;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--color-gray-200);
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.appShell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.sidebar {
  width: 290px;
  background: #fff;
  border-right: 1px solid var(--color-gray-200);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  transition: width 200ms ease;
}

.sidebarHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 10px;
}

.sidebarNav {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebarFooter {
  margin-top: auto;
  padding-top: 14px;
}

.sidebarLogoutBtn {
  width: 100%;
  border: 1px solid var(--color-gray-200);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-gray-800);
  font-weight: 600;
}
.sidebarLogoutBtn:hover {
  background: var(--color-gray-50);
}
.sidebarLogoutIcon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--color-gray-500);
}
.sidebarLogoutText {
  white-space: nowrap;
}

.navItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--color-gray-700);
  font-weight: 600;
  white-space: nowrap;
}
.navItem:hover {
  background: var(--color-gray-100);
  text-decoration: none;
}
.navItemActive {
  background: var(--color-brand-50);
  color: var(--color-brand-600);
}

.navIcon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--color-gray-400);
}
.navItemActive .navIcon {
  color: var(--color-brand-600);
}

.shellMain {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.shellContent {
  padding: 16px;
  flex: 1;
}

.contentArea {
  padding: 16px;
  margin: 0 auto;
  width: 95%;
}

.footer {
  margin-top: auto;
  padding: 24px 16px;
  border-top: 1px solid var(--color-gray-200);
  color: var(--color-gray-500);
  font-size: 13px;
  background: #fff;
}

.footer span {
  font-size: larger;
}

@media (max-width: 980px) {
  .sidebar { display: none; }
}

/* Collapsed sidebar (like Next dashboard) */
body.sidebarCollapsed .sidebar {
  width: 90px;
  padding-left: 10px;
  padding-right: 10px;
}
body.sidebarCollapsed .sidebarHeader img {
  height: 30px !important;
}
body.sidebarCollapsed .sidebarHeader .brandTitle,
body.sidebarCollapsed .sidebarHeader .muted,
body.sidebarCollapsed .sidebarNav .navItem span {
  display: none;
}
body.sidebarCollapsed .sidebarNav .navItem {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
body.sidebarCollapsed .sidebarFooter button {
  width: 44px !important;
  padding-left: 0;
  padding-right: 0;
}

body.sidebarCollapsed .sidebarLogoutText {
  display: none;
}

body.sidebarCollapsed .sidebarLogoutBtn {
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brandLogo {
  height: 28px;
  width: auto;
}
.brandTitle {
  font-weight: 650;
  white-space: nowrap;
}
.brandCrumb {
  color: var(--color-gray-500);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.headerBreadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-500);
  font-size: 14px;
}
.headerBreadcrumbLink {
  color: var(--color-gray-500);
  text-decoration: none;
}
.headerBreadcrumbLink:hover {
  text-decoration: underline;
}
.headerBreadcrumbSep {
  color: var(--color-gray-300);
}
.headerBreadcrumbCurrent {
  color: var(--color-gray-700);
  font-weight: 600;
}

.headerUser {
  position: relative;
}

.userMenuBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-gray-800);
  font-weight: 600;
}
.userMenuBtn:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-200);
}

.userAvatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  border: 1px solid var(--color-gray-200);
}

.userName {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  color: var(--color-gray-500);
}

.userMenu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow-theme-md);
  padding: 6px;
  display: none;
  z-index: 1000;
}
.userMenu.isOpen {
  display: block;
}

.userMenuItem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--color-gray-800);
  font-weight: 600;
  text-align: left;
}
.userMenuItem:hover {
  background: var(--color-gray-100);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.muted {
  color: var(--color-gray-500);
  font-size: 13px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 12px 0;
  box-shadow: none;
}

.cardElevated {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-theme-md);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}

.btn {
  background: var(--pc);
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { filter: brightness(0.95); text-decoration: none; }

.btnSecondary {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-800);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btnSecondary:hover { background: var(--color-gray-50); text-decoration: none; }

.wrap { max-width: 980px; margin: 18px auto; padding: 0 12px; }

.logo { height: 40px; width: auto; }

.cardNudge {
  background: var(--color-gray-25);
  border-color: var(--color-gray-200);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-300);
  margin: 6px 0 14px;
  background: #fff;
  color: var(--color-gray-900);
  outline: none;
}
.textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-brand-400);
  box-shadow: 0 0 0 4px rgba(51, 51, 255, 0.12);
}

.btnPrimary {
  background: var(--pc);
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.btnPrimary:hover { filter: brightness(0.95); }

.btnGhost {
  background: transparent;
  color: var(--color-gray-800);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #9595954f;
  cursor: pointer;
  font-weight: 600;
  
}
.btnGhost:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-200);
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--color-gray-100);
  text-align: left;
  font-size: 14px;
}

.pill {
  background: var(--color-gray-100);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--color-gray-700);
}

.danger { color: #b91c1c; }

.centeredPage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 12px;
}


.mx-auto {
  margin-left: auto;
  margin-right: auto
}

.p-4 {
  padding: 1rem
}


.sidebarHeader img {
  height: 50px;
}