:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0d12;
  color: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(72, 104, 255, 0.14), transparent 34rem),
    #0a0d12;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.staffHeader {
  height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid #222936;
  background: rgba(10, 13, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
}

.brandMark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff;
  color: #0b0e14;
  display: grid;
  place-items: center;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.pageTitle {
  margin: 0;
  font-size: 34px;
}

.pageSubtitle {
  margin: 8px 0 30px;
  color: #939dac;
}

.card {
  border: 1px solid #242c39;
  border-radius: 18px;
  background: rgba(17, 22, 30, 0.92);
  overflow: hidden;
}

.cardHeader {
  padding: 22px 24px;
  border-bottom: 1px solid #242c39;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cardBody {
  padding: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.stat {
  padding: 24px;
}

.statValue {
  font-size: 36px;
  font-weight: 800;
}

.statLabel {
  color: #939dac;
  margin-top: 6px;
}

.button {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  background: #edf2ff;
  color: #111722;
  font-weight: 700;
}

.button.secondary {
  color: #dbe3ef;
  background: #1b2230;
  border: 1px solid #303a4a;
}

.button.danger {
  color: #ffbaba;
  background: transparent;
  border: 1px solid #5b3237;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 15px 10px;
  border-bottom: 1px solid #242c39;
  text-align: left;
}

.table th {
  color: #8994a4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  background: #192837;
  color: #8fd5ff;
}

.badge.admin {
  background: #302443;
  color: #d8b6ff;
}

.badge.active {
  background: #173126;
  color: #8fe0ad;
}

.form {
  max-width: 720px;
}

.formGroup {
  margin-bottom: 22px;
}

.formGroup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.input {
  width: 100%;
  background: #0d1118;
  color: #f4f7fb;
  border: 1px solid #303846;
  border-radius: 11px;
  padding: 13px 14px;
  outline: none;
}

.input:focus {
  border-color: #7188ff;
  box-shadow: 0 0 0 3px rgba(113, 136, 255, 0.14);
}

.formHelp {
  color: #838e9d;
  font-size: 13px;
  margin-top: 7px;
}

.status {
  margin-top: 18px;
  min-height: 24px;
  color: #aab5c4;
}

.status.error {
  color: #ff9c9c;
}

.status.success {
  color: #8de1ad;
}

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

.loginCard {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid #242c39;
  border-radius: 22px;
  background: rgba(17, 22, 30, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.loginBrand {
  margin-bottom: 32px;
}

.loginBrand h1 {
  margin: 18px 0 7px;
  font-size: 30px;
}

.loginBrand p {
  margin: 0;
  color: #909aaa;
}

.loginButton {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
}

.staffNote {
  text-align: center;
  margin-top: 24px;
  color: #707b89;
  font-size: 13px;
}

.twoColumn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.empty {
  color: #8c96a5;
  padding: 18px 0;
}

@media (max-width: 800px) {
  .grid,
  .twoColumn {
    grid-template-columns: 1fr;
  }

  .staffHeader {
    padding: 0 18px;
  }

  .page {
    width: min(100% - 24px, 1180px);
  }
}

.teacherBroadcastForm {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.teacherBroadcastInput {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  color: inherit;
  background: transparent;
  border: 1px solid #394150;
  border-radius: 10px;
  font: inherit;
}

.teacherBroadcastInput:focus {
  outline: none;
  border-color: #7c8cff;
}

.teacherBroadcastButton {
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.teacherBroadcastButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.teacherBroadcastStatus {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
}