:root {
  --teal: #087e83;
  --teal-dark: #07666b;
  --teal-light: #e8f4f4;
  --background: #f3f6f8;
  --border: #e2e8ec;
  --text: #24343e;
  --muted: #71808a;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
}

button {
  font: inherit;
  cursor: pointer;
}

.topbar {
  height: 70px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 22px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.menu-toggle {
  border: 0;
  background: transparent;
  font-size: 23px;
  color: var(--teal);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
}

.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.school-name {
  color: var(--muted);
  font-size: 13px;
}

.notification-button,
.profile-button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--text);
}

.layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

.sidebar {
  width: 255px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 8px 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 19px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.user-card strong,
.user-card small {
  display: block;
}

.user-card small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.menu-heading {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: #94a1a9;
  padding: 0 10px 9px;
}

.secondary-heading {
  margin-top: 24px;
}

.nav-item {
  width: 100%;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  text-align: left;
  color: #586872;
  font-size: 13px;
  margin: 2px 0;
}

.nav-item:hover {
  background: #f1f6f7;
  color: var(--teal-dark);
}

.nav-item.active {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 8px 3px;
  color: #9aa5ac;
  font-size: 11px;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 30px 34px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.eyebrow {
  color: var(--teal);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.4px;
  margin: 0 0 7px;
}

h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 650;
}

.page-heading p:last-child {
  color: var(--muted);
  font-size: 13px;
  margin: 7px 0 0;
}

.date-label {
  color: var(--muted);
  font-size: 12px;
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 15px;
  margin: 0 0 15px;
}

.panel p {
  color: var(--muted);
  font-size: 13px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  font-size: 25px;
  margin-top: 10px;
  color: var(--teal-dark);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.notice {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.notice:last-child {
  border-bottom: 0;
}

.notice small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  background: #f8fafb;
}

.status {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 9px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 11px;
}

.empty-state {
  padding: 28px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer {
  display: flex;
  justify-content: space-between;
  color: #98a3aa;
  font-size: 11px;
  padding: 22px 2px;
}

@media (max-width: 900px) {
  .sidebar {
    width: 215px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .school-name {
    display: none;
  }
}

@media (max-width: 650px) {
  .sidebar {
    display: none;
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 270px;
    overflow-y: auto;
    box-shadow: 5px 0 20px #00000012;
  }

  .sidebar.open {
    display: flex;
  }

  .content {
    padding: 22px 15px;
  }

  .brand {
    min-width: 0;
  }

  .profile-button {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .date-label {
    text-align: right;
  }

  .stats-grid {
    gap: 9px;
  }
}