:root {
  --bg: #eeeff4;
  --surface: #ffffff;
  --surface-2: #f3f4f7;
  --text: #173a33;
  --muted: #7a8b88;
  --primary: #1fa26f;
  --secondary: #dae2df;
  --success: #179d62;
  --danger: #d64045;
  --radius: 10px;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body.theme-dark {
  --bg: #171b22;
  --surface: #1f252f;
  --surface-2: #252d39;
  --text: #e8eff7;
  --muted: #96a5b8;
  background: var(--bg);
}

body.theme-dark .layout {
  border-color: #2b3340;
  background: #1b212b;
}

body.theme-dark .sidebar {
  background: #202834;
  border-right-color: #2d3747;
}

body.theme-dark .main {
  background: #1b212b;
}

body.theme-dark .card,
body.theme-dark .auth-card {
  border-color: #2f3948;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: #202833;
  border-color: #334254;
  color: #e8eff7;
}

body.theme-dark .topbar-search {
  background: #202833;
  border-color: #334254;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Outfit", sans-serif;
}

button, input, optgroup, select, textarea {
  font: inherit;
  padding: 7px 11px;
}

.layout {
  width: 100%;
  margin: 0;
  background: #fff;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #047857;
  color: #ffffff;
  padding: 24px 18px;
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-top {
  display: grid;
  gap: 4px;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  bottom: 0;
  background: #047857;
  padding-bottom: 4px;
}

.w-full {
  width: 100%;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 24px;
  color: #0f6950;
}

.nav-btn {
  width: 100%;
  background: transparent;
  color: #607470;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 4px 0;
  cursor: pointer;
}

.nav-icon {
  width: 20px;
  text-align: center;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.nav-icon img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}

.sidebar .nav-icon {
  color: #ffffff;
}

.sidebar .nav-icon img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.sidebar .nav-icon svg path,
.sidebar .nav-icon svg circle,
.sidebar .nav-icon svg rect,
.sidebar .nav-icon svg line,
.sidebar .nav-icon svg polyline {
  stroke: #ffffff;
}

.sidebar .brand,
.sidebar .nav-btn,
.sidebar .nav-btn.active,
.sidebar .nav-btn:hover {
  color: #ffffff !important;
}

.nav-icon svg path,
.nav-icon svg circle,
.nav-icon svg rect,
.nav-icon svg line,
.nav-icon svg polyline {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn.active,
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.main {
  padding: 20px;
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  position: relative;
}

.content-stage {
  position: relative;
  min-height: 220px;
}

.page-preloader {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(252, 252, 253, 0.88);
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.page-preloader-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #d8e5e2;
  border-radius: 10px;
  background: #ffffff;
  color: #375a54;
  font-size: 0.86rem;
  font-weight: 600;
}

.page-preloader-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin-centered 0.65s linear infinite;
}

body.theme-dark .page-preloader {
  background: rgba(27, 33, 43, 0.82);
}

body.theme-dark .page-preloader-inner {
  background: #202833;
  border-color: #334254;
  color: #dbe7f3;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  border-bottom: 1px solid #e5e9e8;
  padding-bottom: 12px;
}

.topbar-search {
  flex: 1;
  min-width: 220px;
  max-width: 520px;
  background: #fff;
  border: 1px solid #dde5e3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  box-shadow: none;
}

.topbar-search input {
  border: none;
  outline: none;
  background: transparent;
  padding: 7px 11px;
}

.search-icon {
  font-size: 1rem;
  color: var(--muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #5b6e6a;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.notification-bell-wrap {
  position: relative;
}

.notification-bell-btn {
  position: relative;
}

.notification-bell-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #d64045;
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1px solid #ffffff;
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, 84vw);
  border: 1px solid #d8e4e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 39, 34, 0.12);
  z-index: 40;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.notification-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notification-dropdown-list {
  display: grid;
  gap: 8px;
}

.notification-item {
  border: 1px solid #e0e9e7;
  border-radius: 8px;
  padding: 8px;
  background: #fcfdfd;
}

.notification-item.unread {
  border-color: #c8ddd8;
  background: #f3faf7;
}

.notification-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.notification-item-title {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.3;
}

.notification-item-remove {
  width: 20px;
  height: 20px;
  border: 1px solid #d8e4e1;
  border-radius: 6px;
  background: #ffffff;
  color: #557470;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.notification-item-remove:hover {
  border-color: #cbdad6;
  background: #f4faf8;
  color: #30514b;
}

.notification-item-body {
  margin-top: 2px;
  color: #425f59;
  font-size: 0.8rem;
  line-height: 1.35;
}

.notification-item-time {
  margin-top: 4px;
  font-size: 0.72rem;
}

.notification-row-actions {
  justify-content: flex-end;
}

.notification-mark-read:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notification-item-empty {
  border: 1px dashed #d7e2df;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.table-pagination {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-sep {
  width: 1px;
  height: 26px;
  background: #d8dfdd;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-upload {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border: 1px solid #d4dfdb;
  border-radius: 50%;
  background: #ffffff;
  color: #2e4f48;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.profile-avatar-upload svg {
  width: 14px;
  height: 14px;
}

.profile-avatar-upload svg path,
.profile-avatar-upload svg circle {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-meta {
  display: grid;
  line-height: 1.1;
  text-align: right;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f3430;
}

.header-user-role {
  text-transform: uppercase;
  font-size: 11px;
}

.top-pill {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.top-pill-soft {
  background: var(--secondary);
  color: #0f2f2a;
}

.top-avatar {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--secondary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
  border: 1px solid #d4dfdb;
  flex-shrink: 0;
}

.top-avatar img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.page-head {
  margin-bottom: 14px;
}

.top-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e2625;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: none;
  border: 1px solid #e2e8e6;
}

.metric {
  background: #fff;
  color: var(--text);
  overflow: hidden;
  position: relative;
  border-left: 4px solid #24a26f;
}

.teacher-attendance-grid .attendance-class-card {
  border-radius: 12px;
}

.teacher-parents-grid .teacher-parent-card {
  border-radius: 12px;
}

.metric h3 {
  font-size: 0.83rem;
  opacity: 1;
  color: #6b807c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric p {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 8px 0 0;
}

.metric-icon {
  position: absolute;
  right: 19px;
  top: 13%;
  width: 66px;
  height: 66px;
  color: var(--secondary);
  opacity: 0.16;
}

.metric-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.overview-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.overview-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe6e4;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.overview-search input {
  border: none;
  outline: none;
  background: transparent;
}

.school-overview-person-card {
  padding: 14px !important;
  text-align: left;
  cursor: default;
  border-left: none !important;
  border: 1px solid #d7e8e4 !important;
  border-radius: 14px !important;
  background: #fff;
}

.school-overview-person-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.school-overview-person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #d6e7e3;
  background: #eef8f5;
  color: #2b645b;
  font-weight: 700;
}

.school-overview-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.school-overview-person-main {
  min-width: 0;
  flex: 1;
}

.school-overview-person-name {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-overview-person-meta {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #436963;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-overview-person-meta strong {
  color: #24463f;
}

.overview-shell {
  display: grid;
  grid-template-columns: 2fr minmax(280px, 340px);
  gap: 14px;
}

.overview-main {
  display: grid;
  gap: 14px;
}

.kpi-big {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 2px 0 8px;
  line-height: 1;
}

.schedule-panel {
  align-self: start;
}

.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-month {
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid #e3e8e7;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
}

.schedule-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.schedule-days span {
  border: 1px solid #e3e8e7;
  border-radius: 8px;
  padding: 8px 0;
  text-align: center;
  font-size: 0.85rem;
}

.schedule-days .active {
  background: #8b7cf1;
  color: #fff;
  border-color: #8b7cf1;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-item {
  border: 1px solid #e4e9e8;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.schedule-item strong {
  font-size: 0.95rem;
}

.schedule-item small {
  color: var(--muted);
}

.school-calendar {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.school-calendar-head,
.school-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 6px;
  min-width: 840px;
}

.school-calendar-head span {
  border: 1px solid #e2e8e6;
  padding: 6px 4px;
  text-align: center;
  font-size: 0.8rem;
  color: #000000;
  text-transform: uppercase;
  background: #f7f9f8;
}

.school-day {
  min-height: 124px;
  border: 1px solid #e2e8e6;
  padding: 6px;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
}

.school-day.empty {
  background: #f8faf9;
}

.school-day-num {
  font-size: 0.82rem;
  color: #4f6661;
  font-weight: 700;
}

.school-day-items {
  display: grid;
  gap: 4px;
  align-content: start;
}

.school-item {
  width: 100%;
  border: 1px solid transparent;
  text-align: left;
  padding: 4px 6px;
  font-size: 0.75rem;
  line-height: 1.2;
  cursor: pointer;
  background: #eef4f1;
  color: #1a4f42;
  -webkit-text-fill-color: currentColor;
  border-radius: 6px;
}

.school-item:focus,
.school-item:active,
.school-item:focus-visible {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.school-item.class {
  background: #e6f2ee;
  border-color: #cfe5dd;
}

.school-item.activity {
  background: #eef0f8;
  border-color: #d9deef;
  color: #2f466f;
}

.school-more {
  font-size: 0.74rem;
  color: #5c706b;
  padding: 2px 4px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card > .card-head .actions {
  gap: 6px;
}

.card > .card-head .actions .btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
}

.btn.btn-standard {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
}

.btn.btn-secondary.btn-modal-cancel {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
  background: #eef5f4;
  color: var(--primary);
  border: 1px solid #d2e3e0;
}

.btn.btn-secondary.btn-modal-clear {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
  background: #eef5f4;
  color: var(--primary);
  border: 1px solid #d2e3e0;
}

.btn.btn-primary.btn-modal-save-attendance {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
  background: var(--primary);
  color: #fff;
}

.actions .btn.btn-secondary[id$="-reset"],
.btn.btn-secondary[id$="-reset"] {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
  background: #eef5f4;
  color: var(--primary);
  border: 1px solid #d2e3e0;
}

.btn.btn-primary[id*="attendance"],
.btn.btn-primary[id*="rollcall"] {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
  background: var(--primary);
  color: #fff;
}

.card > .card-head .actions .btn.btn-primary {
  background: var(--primary);
}

.card > .card-head .actions .btn.btn-secondary {
  background: #eef5f4;
  color: var(--primary);
  border: 1px solid #d2e3e0;
}

.card > .card-head .actions .btn.btn-danger {
  background: #b44756;
}

.teacher-student-attendance-select {
  min-width: 230px;
  max-width: 300px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  border: 1px solid #d2e3e0;
  background: #eef5f4;
  color: var(--primary);
}

.parent-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.parent-select-row input[readonly] {
  flex: 1;
  background: #f8faf9;
}

.parent-picker-panel {
  width: min(520px, calc(100vw - 28px));
}

.parent-picker-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.parent-picker-item {
  width: 100%;
  text-align: left;
  border: 1px solid #d6e3df;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.parent-picker-item:hover {
  border-color: #b9d5ce;
  background: #f5fbf9;
}

.parent-picker-name {
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.parent-picker-email {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.2;
}

.parent-class-enroll-box {
  border: 1px solid #d6e3df;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfa;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.enrollee-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}

.enrollee-status-badge.active {
  background: #e8f6ef;
  color: #1b7a4f;
  border-color: #c4ead7;
}

.enrollee-status-badge.suspended {
  background: #fff4e8;
  color: #9a5a1b;
  border-color: #f2d6bb;
}

.enrollee-actions {
  justify-content: flex-end;
}

.enrollee-delete-x {
  min-width: 28px;
  padding-left: 8px;
  padding-right: 8px;
  font-weight: 800;
}

.enrollee-actions-col {
  text-align: right;
}

.enrollee-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.enrollee-student-name {
  align-items: center;
}

.enrollee-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0;
  vertical-align: middle;
}

.enrollee-status-dot.active {
  background: #22c55e;
}

.enrollee-status-dot.suspended {
  background: #f59e0b;
}

.teacher-students-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.teacher-students-filters .field-stack {
  min-width: 220px;
}

.teacher-students-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #486763;
}

.teacher-students-legend .legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.teacher-students-legend .legend-dot.present {
  background: #22c55e;
}

.teacher-students-legend .legend-dot.absent {
  background: #ef4444;
}

.teacher-students-legend .legend-dot.enrolled {
  background: #dbeafe;
  border-color: #bcd5fb;
}

.teacher-students-box-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.teacher-enrollment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.teacher-enrollment-box {
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.teacher-enrollment-box .actions .btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
}

.teacher-enrollment-box .actions .btn.btn-secondary {
  background: #eef5f4;
  color: var(--primary);
  border: 1px solid #d2e3e0;
}

.teacher-enrollment-box .actions .btn.btn-primary {
  background: var(--primary);
  color: #fff;
}

.teacher-enrollment-box .actions .btn.btn-danger {
  background: #b44756;
  color: #fff;
}

.teacher-enrollment-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.teacher-student-box {
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.teacher-student-box-head {
  margin-bottom: 8px;
}

.student-mini-calendar {
  border: 1px solid #d8e7e3;
  border-radius: 8px;
  padding: 8px;
  background: #f9fdfc;
}

.mini-cal-head {
  font-size: 0.76rem;
  font-weight: 700;
  color: #4d6d67;
  margin-bottom: 6px;
}

.mini-cal-weekdays,
.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.mini-cal-weekdays span {
  font-size: 0.66rem;
  text-align: center;
  color: #6d8782;
}

.mini-cal-day {
  display: grid;
  place-items: center;
  height: 18px;
  border-radius: 5px;
  font-size: 0.66rem;
  color: #48625e;
  background: #eef5f3;
}

.mini-cal-day.empty {
  background: transparent;
}

.mini-cal-day.scheduled {
  background: #dbeafe;
  color: #335d92;
  border: 1px solid #bcd5fb;
}

.mini-cal-day.present {
  background: #22c55e;
  color: #ffffff;
}

.mini-cal-day.absent {
  background: #ef4444;
  color: #ffffff;
}

@media (max-width: 1200px) {
  .teacher-students-box-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-enrollment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .teacher-students-box-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .teacher-students-box-grid {
    grid-template-columns: 1fr;
  }

  .teacher-enrollment-grid {
    grid-template-columns: 1fr;
  }
}

.modal-panel form button[type="submit"].btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
}

.modal-panel form button[type="submit"].btn.btn-primary {
  background: var(--primary);
  color: #fff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 20, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
}

.modal-panel {
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border: 1px solid #dde5e3;
  border-radius: 10px;
  padding: 20px;
}

.modal-panel .form-grid {
  grid-template-columns: 1fr !important;
}

.modal-panel .grid,
.modal-panel .form-grid {
  gap: 12px !important;
}

.modal-panel .muted,
.modal-panel .text-slate-500 {
  color: var(--text) !important;
  opacity: 1 !important;
}

.modal-panel .card-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.teacher-cal-title-text {
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
}

.teacher-students-inline {
  line-height: 1.5;
}

.student-name-link {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #4a657a;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(74, 101, 122, 0.35);
  text-underline-offset: 2px;
}

.student-name-link:hover {
  color: #163f66;
}

.hidden {
  display: none !important;
}

.toast-host {
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 20px));
}

.toast {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #c7ddd6;
  border-left: 4px solid #1f9c6f;
  border-radius: 10px;
  background: #ffffff;
  color: #143b33;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(6px);
  animation: toast-in 0.18s ease forwards;
}

.toast-success {
  border-left-color: #1f9c6f;
}

.toast-warn {
  border-left-color: #c4811f;
}

.toast-error {
  border-left-color: #c94242;
}

.toast-body {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.toast-close {
  border: 1px solid #d6e5e1;
  background: #f7fbf9;
  color: #3e655e;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  line-height: 1;
  font-size: 0.95rem;
  padding: 0;
}

.toast-out {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-bars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 6px 0 10px;
}

.status-bars span {
  height: 16px;
  border-radius: 999px;
  display: block;
}

.status-bars .red {
  background: repeating-linear-gradient(90deg, #ff6262 0 3px, #ffd7d7 3px 6px);
}

.status-bars .green {
  background: repeating-linear-gradient(90deg, #27a86d 0 3px, #cdeedd 3px 6px);
}

.status-bars .blue {
  background: repeating-linear-gradient(90deg, #7c74f1 0 3px, #e0ddff 3px 6px);
}

.metric-2 {
  border-left-color: #2387b7;
}

.metric-3 {
  border-left-color: #5f9c8a;
}

.metric-4 {
  border-left-color: #92a9a2;
}

.metric-wave {
  display: none;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-3-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card form.grid.settings-flat-form,
.card form.form-grid.settings-flat-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.settings-tools-grid .actions {
  align-items: center;
}

.settings-maintenance-toggle {
  font-weight: 600;
  color: #274640;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-maintenance-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.branding-colors-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.color-dual-input {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: center;
}

.color-dual-input input[type="color"] {
  width: 56px;
  height: 40px;
  padding: 0;
  border: 0 !important;
}

.color-dual-input input[type="text"],
.color-dual-input input:not([type]) {
  text-transform: uppercase;
}

input[type="file"],
.upload-input {
  width: 100%;
  border: 1px dashed #9ec6bd !important;
  border-radius: 8px;
  padding: 5px 7px !important;
  background: #f6fcfb !important;
  color: var(--primary);
  font-size: 0.88rem;
}

input[type="file"]::file-selector-button,
.upload-input::file-selector-button {
  border: 1px solid #8ec3b7;
  border-radius: 8px;
  background: #ffffff;
  color: #174f46;
  font-weight: 600;
  padding: 5px 9px;
  margin-right: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  border-bottom: 1px solid #e8eeec;
  padding: 10px 6px;
  font-size: 0.93rem;
}

.row-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.table-selection-count {
  font-size: 0.82rem;
  color: #4f6d67;
  margin-bottom: 6px;
}

.activity-logs-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.activity-logs-meta {
  font-size: 0.74rem;
  line-height: 1.2;
}

#notifications-last-updated,
#notifications-unread-count {
  font-size: 0.72rem;
  line-height: 1.2;
}

.name-with-avatar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.table-avatar {
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d8e6e2;
  background: var(--secondary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.table-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

th.col-actions,
td.col-actions {
  text-align: right;
}

td.col-actions .actions {
  justify-content: flex-end;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #c5d7e7;
  border-radius: 8px;
  padding: 7px 11px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8aa1b8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0b7f63;
  box-shadow: 0 0 0 2px rgba(11, 127, 99, 0.16);
  background: #fcfffe;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  font-weight: 600;
}

.modal-panel .actions .btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 7px 12px;
  min-height: 33px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16, 51, 45, 0.08);
}

.modal-panel .actions .btn.btn-secondary {
  background: #eef5f4;
  color: var(--primary);
  border: 1px solid #d2e3e0;
}

.modal-panel .actions .btn.btn-primary {
  background: var(--primary);
  color: #fff;
}

.modal-panel .actions .btn.btn-danger {
  background: #b44756;
  color: #fff;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: #edf2f0;
  color: #425e58;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-xs {
  padding: 6px 10px;
  font-size: 0.82rem;
}

.divider {
  border-top: 1px solid #e4edf5;
  margin: 14px 0;
}

label {
  font-size: 0.92rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #344f69;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0b7f63;
}

.analytics-card,
.info-card,
.calendar-card {
  border: 1px solid #e1e8e6;
  background: #fff;
}

.analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.analytics-bars {
  height: 180px;
  display: flex;
  align-items: end;
  gap: 10px;
  border-radius: 8px;
  padding: 14px;
  background: #f4f7f6;
}

.analytics-bars span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #93ccb6, #59ae8b);
}

.analytics-line {
  margin-top: 8px;
  height: 70px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 55%, transparent 30px, #1d9a6d 31px, #1d9a6d 34px, transparent 35px),
    radial-gradient(circle at 28% 45%, transparent 28px, #1d9a6d 29px, #1d9a6d 32px, transparent 33px),
    radial-gradient(circle at 52% 60%, transparent 28px, #1d9a6d 29px, #1d9a6d 32px, transparent 33px),
    radial-gradient(circle at 78% 35%, transparent 26px, #1d9a6d 27px, #1d9a6d 30px, transparent 31px),
    #edf5f2;
}

.info-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f7f6;
  border-radius: 12px;
  padding: 10px 12px;
}

.info-list strong {
  font-size: 1.2rem;
}

.info-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-wrap.auth-wrap-branded {
  background: var(--primary);
  align-content: center;
  justify-items: center;
  gap: 14px;
}

.auth-brand-logo {
  width: min(360px, 70vw);
  max-height: 104px;
  object-fit: contain;
  margin-bottom: 50px;
}

.auth-footer-credit {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  line-height: 22px;
}

.auth-footer-credit a {
  color: #ffffff;
  text-decoration: none;
}

.password-field {
  position: relative;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.password-field input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.password-toggle:hover {
  color: var(--primary-dark);
  background: transparent;
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(29, 79, 140, 0.35);
  outline-offset: 1px;
}

@media (max-width: 640px) {
  .name-row {
    grid-template-columns: 1fr;
  }
}

.app-footer-credit {
  margin-top: auto;
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 10px 0 2px;
  text-align: right;
  line-height: 22px;
}

.app-footer-credit a {
  color: var(--primary);
  text-decoration: none;
}

.auth-card {
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  border: 1px solid #dfe7e4;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.card > h3,
.card > h4 {
  margin-bottom: 10px;
  color: #0f2a44;
}

.card form.grid,
.card form.form-grid {
  background: #f8fbfe;
  border: 1px solid #e4edf5;
  border-radius: 10px;
  padding: 12px;
}

.form-grid textarea,
.form-grid .actions,
.form-grid button[type="submit"] {
  grid-column: 1 / -1;
}

.class-title-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c5d7e7;
  border-radius: 8px;
  background: #fff;
  padding: 4px 8px 4px 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.class-title-row:focus-within {
  border-color: #0b7f63;
  box-shadow: 0 0 0 2px rgba(11, 127, 99, 0.16);
}

.class-title-row > input[name="title"],
.class-title-input {
  flex: 1 1 auto;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0;
  padding: 9px 2px;
}

.class-color-swatch {
  width: 24px !important;
  height: 26px !important;
  padding: 0 !important;
  border-radius: 4px;
  border: 0 !important;
  cursor: pointer;
}

.form-inline-two {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-stack {
  display: grid;
  gap: 6px;
}

.field-stack > span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #496963;
}

.weekday-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.weekday-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.weekday-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.weekday-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--secondary);
  background: color-mix(in srgb, var(--secondary) 25%, white);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.84rem;
  transition: all 0.18s ease;
}

.weekday-pill input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.weekday-pill input:focus-visible + span {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.tag.green {
  background: #dbf5e8;
  color: #14754b;
}

.tag.red {
  background: #ffdfe1;
  color: #a6272d;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
    min-height: 100vh;
    border: none;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .cards-4,
  .two-col,
  .settings-3-col,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .branding-colors-row {
    grid-template-columns: 1fr;
  }

  .overview-shell {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-search {
    max-width: none;
  }

  .topbar-right {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

/* Light glass teal redesign */
:root {
  --bg: #eef7f6;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-2: rgba(245, 252, 251, 0.88);
  --text: #103d39;
  --muted: #5e7f7a;
  --primary: #0f8f81;
  --secondary: #d9efec;
  --success: #117d68;
  --danger: #c94156;
}

body {
  background:
    radial-gradient(circle at 8% 10%, #e0f4f1 0%, transparent 34%),
    radial-gradient(circle at 90% 12%, #d7f0ed 0%, transparent 36%),
    linear-gradient(180deg, #eff9f8 0%, #e8f4f3 100%);
  color: var(--text);
}

.layout {
  background: rgba(245, 252, 251, 0.5);
}

.sidebar {
  background: var(--primary) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  color: #ffffff !important;
}

.sidebar-bottom {
  background: var(--primary) !important;
  border-top: unset;
  padding: 0;
}

.brand {
  color: #ffffff !important;
  padding: 0;
  margin-bottom: 8px;
  display: grid;
  gap: 8px;
  align-items: start;
}

.brand-logo-img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  display: block;
}

.nav-btn {
  color: #ffffff !important;
  background: transparent !important;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  opacity: 0.95;
  padding: 12px 18px;
  margin: 0;
  gap: 12px;
  font-weight: 500;
}

.nav-btn.active,
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-left-color: var(--secondary);
  color: #ffffff !important;
  opacity: 1;
}

.nav-btn .nav-icon {
  color: #ffffff !important;
}

.nav-btn.active .nav-icon,
.nav-btn:hover .nav-icon {
  color: #ffffff;
}

.main {
  background: transparent;
}

.topbar {
  border-bottom: 1px solid rgba(121, 189, 181, 0.22);
}

.top-title {
  color: #103d39;
}

.top-sep {
  background: rgba(118, 186, 178, 0.34);
}

.user-name {
  color: #123f3a;
}

.card,
.metric,
.auth-card,
.modal-panel {
  background: var(--surface) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(111, 181, 173, 0.28) !important;
  box-shadow: none !important;
}

.modal-panel {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.metric {
  border-left: 4px solid var(--primary) !important;
}

.metric h3 {
  color: var(--secondary);
}

.metric p {
  color: var(--primary);
}

input, select, textarea {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(117, 186, 177, 0.42) !important;
  color: #113e3a;
}

input::placeholder,
textarea::placeholder {
  color: #84a6a0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.btn {
  border-radius: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: rgba(232, 245, 243, 0.95);
  color: var(--primary);
  border: 1px solid rgba(112, 182, 174, 0.34);
}

.btn-danger {
  background: #ca465c;
}

table {
  background: transparent;
}

th, td {
  border-bottom: 1px solid rgba(121, 190, 182, 0.26);
}

th {
  color: var(--primary);
}

th:has(input[type="checkbox"]),
th:has(.row-check),
th:has(.student-row-check-all),
th:has(.user-row-check-all),
th:has(.class-row-check-all),
th:has(.event-row-check-all) {
  width: 35px;
}

button.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.88;
  color: transparent !important;
}

button.btn-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border: 2px solid #e2e8f0;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin-centered 0.65s linear infinite;
}

button.btn-secondary.btn-loading::after {
  border-color: var(--primary);
  border-top-color: transparent;
}

/* Sidebar-only loader alignment for menu buttons */
.sidebar .nav-btn.btn-loading {
  color: #ffffff !important;
  opacity: 1;
  padding-right: 34px;
}

.sidebar .nav-btn.btn-loading::after {
  left: auto;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border-color: rgba(255, 255, 255, 0.9);
  border-top-color: transparent;
  animation: btn-spin-nav 0.65s linear infinite;
}

.sidebar .nav-btn.btn-loading svg {
  opacity: 1;
}

button.btn-loading svg {
  opacity: 0;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

@keyframes btn-spin-centered {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes btn-spin-nav {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.modal-close-icon,
.delete-action-icon {
  min-width: 34px;
  padding-left: 8px;
  padding-right: 8px;
}

.modal-close-icon svg,
.delete-action-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.student-profile-loading {
  font-size: 0.9rem;
  color: #5e7f7a;
}

.student-profile-standard {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.student-profile-watermark {
  position: absolute;
  right: -11px;
  top: 72px;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.student-profile-watermark img {
  width: 185px;
  height: 185px;
  object-fit: contain;
}

.student-profile-main {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  width: 68%;
}

.student-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #dfe9e6;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.student-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.student-profile-lines {
  display: grid;
  gap: 6px;
  font-size: 0.98rem;
}

.student-profile-lines strong {
  color: #183f39;
}

.modal-backdrop {
  background: rgba(9, 27, 25, 0.18);
}

.dual-confirm-text {
  font-size: 0.98rem;
  color: #234d47;
  margin: 10px 0 15px;
}

.school-calendar-head span {
  background: rgba(240, 250, 248, 0.94);
  border-color: rgba(117, 185, 177, 0.3);
  color: #000000;
  text-transform: uppercase;
}

.school-day {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(115, 185, 176, 0.3);
}

.school-day.empty {
  background: rgba(244, 251, 250, 0.7);
}

.school-day-num {
  color: #2f6059;
}

.school-item.class {
  background: rgba(16, 143, 129, 0.15);
  border-color: rgba(16, 143, 129, 0.34);
  color: #105f55;
}

.school-item.activity {
  background: rgba(33, 129, 155, 0.12);
  border-color: rgba(33, 129, 155, 0.28);
  color: #215b6e;
}

.divider {
  border-top: 1px solid rgba(121, 190, 182, 0.28);
}

.metric.school-overview-person-card {
  border-left: none !important;
}

/* Custom CSS */
.topbar-right .user-meta .header-user-role {
    font-size: 11px;
    line-height: 20px;
}
