/* ================================
   Board / Governance Portal Styles
   ================================ */

/* Reset / Base */
html, body {
  height: 100%;
  background: #f4f6f8;
  color: #1f2937;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Topbar */
.topbar {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 12px 24px rgba(0,0,0,.04);
  height: 64px;
  z-index: 1000;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 64px; /* below topbar */
  left: 0;
  width: 260px;
  height: calc(100vh - 64px);
  background: #111827;   /* slate-900 */
  color: #e5e7eb;        /* gray-200 */
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.sidebar .section-title {
  color: #9ca3af; /* gray-400 */
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1rem 0.25rem;
}

.sidebar .nav-link {
  color: #9ca3af;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.15rem 0.5rem;
  transition: background 0.2s, color 0.2s;
}

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

.sidebar .nav-link.active {
  background: rgba(13,110,253,0.18);
  color: #fff;
}

.sidebar .label {
  display: inline;
}

/* Main content */
.main {
  margin-top: 64px;
  margin-left: 260px;
  padding: 1.5rem;
}

.card {
  background: #fff;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 12px 24px rgba(0,0,0,.04);
}

.card .card-title {
  font-weight: 600;
}

/* KPI Tiles */
.kpi {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kpi .kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: rgba(13,110,253,0.12);
  color: #0d6efd;
}

.kpi .kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.kpi .kpi-label {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Tables */
.table thead th {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.table td {
  vertical-align: middle;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  color: #fff; /* force white text */
}

/* Utility */
.muted {
  color: #6b7280 !important;
}

/* Sidebar collapse for medium screens */
@media (max-width: 1199.98px) {
  .sidebar {
    width: 88px;
  }
  .main {
    margin-left: 88px;
  }
  .sidebar .label {
    display: none;
  }
}

/* On small screens use offcanvas */
@media (max-width: 767.98px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
    padding: 1rem;
  }
}