/* Load Google Fonts after @use to satisfy Sass module ordering */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Quicksand:wght@300..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  /* Colors */
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #00AB0E;
  --danger-color: #FF0000;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  /* Background Colors */
  --bg-primary: #F7F7F7;
  --bg-secondary: #ffffff;
  --bg-sidebar: #ff0000;
  --bg-sidebar-hover: #e9ecef;
  --sidebar-active-bg: #eef2f7;
  --sidebar-active-text: #1f3a5b;
  --sidebar-label-size: 1.25rem;
  --sidebar-icon-bg: #f1f4f8;
  --sidebar-icon-bg-hover: #e7edf5;
  --sidebar-icon-bg-active: #dbe6f6;
  --bg-card: rgba(217, 217, 217, 0.31);
  /* Text Colors */
  --text-primary: #333;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --text-light: #bdc3c7;
  /* Border Colors */
  --border-color: #dee2e6;
  --border-hover: #adb5bd;
  --border-focus: #80bdff;
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  /* Typography */
  --font-family-primary: "Inter", sans-serif;
  --font-size-base: 1.3rem;
  --font-size-sm: 1.175rem;
  --font-size-lg: 1.55rem;
  --font-size-xl: 1.8rem;
  --font-size-xxl: 2.1rem;
  /* Layout */
  --sidebar-width: 90px;
  --sidebar-expanded-width: 300px;
  --navbar-height: 60px;
  /* Cards */
  --card-border-radius: 20px;
  --card-shadow: 0 2px 4px rgba(0,0,0,0.1);
  --card-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* Equal-height pairs */
  --pair-h: 320px;
  /* Avatar default size */
  --avatar-size: clamp(150px, 18vw, 280px);
}

* {
  font-family: var(--font-family-primary);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: calc(100% + 1.05px);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #F8FAFC;
  color: var(--text-primary);
}

body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
}

/* Equal-height pair fixes (charts/tables) */
.equal-pair .match-height {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.equal-pair .match-height .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}
.equal-pair .fixed-h {
  height: var(--pair-h);
  aspect-ratio: auto !important;
}
.equal-pair .fixed-h > .fill-scroll,
.equal-pair .fixed-h canvas {
  height: 100% !important;
}
.equal-pair, .equal-pair .row, .equal-pair [class^=col-] {
  min-height: 0;
}
.equal-pair canvas[width][height] {
  width: 100% !important;
  height: 100% !important;
}
.equal-pair .table-responsive {
  height: 100%;
  max-height: 100%;
}

/* Navbar */
.navbar {
  background-color: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-sm) var(--spacing-lg);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1010;
}

.navbar .container-fluid {
  padding: 0;
}

#navbar-title {
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

#navbar-profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: var(--text-primary);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-button {
  background: none;
  border: none;
  padding: var(--spacing-sm);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
#back-button:hover {
  transform: scale(1.1);
  background-color: var(--bg-secondary);
}

#back-button img {
  width: 32px;
  height: 32px;
}

/* Navbar view-as */
#navbar-viewas-section {
  min-width: 280px;
}

#navbar-viewas-section .viewas-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#navbar-viewas-section .viewas-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

#navbar-viewas-section .viewas-hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

#navbar-viewas-section .viewas-fields {
  display: grid;
  gap: 0.5rem;
}

#navbar-viewas-section .form-label {
  color: var(--text-muted);
  font-weight: 600;
}

#navbar-viewas-section .viewas-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

#navbar-viewas-section .viewas-actions .btn {
  flex: 1;
}

#navbar-viewas-section .viewas-status {
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
}

#navbar-viewas-section .viewas-status.is-empty {
  display: none;
}

@media (max-width: 576px) {
  #navbar-viewas-section {
    min-width: 240px;
  }
  #navbar-viewas-section .viewas-actions {
    flex-direction: column;
  }
}
html.navbar-viewas-open #navbar-component,
html.navbar-viewas-open .navbar {
  z-index: 2000;
}

html.navbar-viewas-open #navbar-component .dropdown-menu {
  z-index: 2001;
}

html.navbar-viewas-open .select2-container--open,
html.navbar-viewas-open .select2-dropdown {
  z-index: 2002;
}

/* Navbar fade helpers */
#navbar-component .fade-anim {
  opacity: 0;
  transition: opacity 150ms ease;
}

#navbar-component .fade-anim.is-visible {
  opacity: 1;
}

/* Containers and grid helpers */
.container-fluid {
  width: 100%;
  padding-right: var(--bs-gutter-x, 1.5rem);
  padding-left: var(--bs-gutter-x, 1.5rem);
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
  margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
  row-gap: var(--bs-gutter-y, 0);
}

.col, .col-auto {
  position: relative;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.col {
  flex: 1 0 0%;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
}

/* Utilities */
.d-none {
  display: none !important;
}

.text-center {
  text-align: center !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.d-flex {
  display: flex !important;
}

/* Global smartphone fit */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .navbar {
    padding: 0.25rem 0.75rem;
    height: auto;
  }
  #navbar-title {
    font-size: 1.425rem;
  }
  .info-card {
    padding: 0.75rem;
    border-radius: 10px;
  }
  .card {
    min-height: 120px;
    padding: 0.75rem;
  }
  h1, .h1 {
    font-size: 1.8rem;
  }
  h2, .h2 {
    font-size: 1.55rem;
  }
  h3, .h3 {
    font-size: 1.425rem;
  }
  .form-control, .form-select, .btn {
    min-height: 42px;
  }
  .btn {
    padding: 0.5rem 0.75rem;
  }
  .select2-container {
    width: 100% !important;
  }
  .chart-container {
    height: 240px;
  }
  .row {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
  }
  .col, .col-auto {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  #content-container {
    align-items: flex-start !important;
  }
}
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width, 90px);
  height: 100vh;
  z-index: 1040;
  background-color: var(--bg-secondary, #fff);
  border-right: 1px solid var(--border-color);
  box-shadow: none;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 220ms ease;
}

#sidebar #brainButton {
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease, justify-content 0.2s ease;
}

#sidebar #brainButton .brain {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

#sidebar #brainButton .brain-wordmark {
  width: auto;
  height: 34px;
  display: inline-block;
  flex-shrink: 0;
  margin-left: 0;
}

#brainButton[aria-expanded=true] .brain-wordmark {
  display: inline-block;
}

#sidebar .nav-pills .nav-link img {
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transition: transform 0.15s ease;
}

#sidebar #dropdownUser3 img {
  width: 36px;
  height: 36px;
}

#sidebar > .nav {
  padding: 0;
}

#sidebar .nav-pills .nav-link {
  position: relative;
  border-radius: 0;
  border-left: 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 0.8rem 1.25rem !important;
  gap: 0.85rem;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

#sidebar .nav-pills .nav-link.active {
  color: var(--sidebar-active-text, #1f3a5b);
  background-color: var(--sidebar-active-bg, #eef2f7);
  font-weight: 600;
}

#sidebar .nav-pills .nav-link:not(.active):hover {
  color: var(--sidebar-active-text, #1f3a5b);
  background-color: var(--bg-sidebar-hover, #e9ecef);
}

#sidebar .sidebar-subnav {
  list-style: none;
  padding: 0.2rem 0 0.35rem;
  margin: 0;
  display: none;
}

#sidebar .sidebar-subnav .nav-link {
  border-bottom: 0;
  justify-content: flex-start;
  padding: 0.4rem 1.25rem 0.4rem 2.75rem;
  gap: 0.5rem;
  font-weight: 400;
}

#sidebar .sidebar-subnav .sidebar-label {
  opacity: 0.85;
  font-size: var(--font-size-sm);
  max-width: none;
  transform: none;
  white-space: normal;
  line-height: 1.3;
}

#sidebar .sidebar-subnav .sidebar-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color, #0d6efd);
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.7;
}

#sidebar .sidebar-subnav .nav-link.active .sidebar-bullet {
  opacity: 1;
}

#sidebar .sidebar-subnav.is-visible {
  display: none;
}

body.sidebar-expanded #sidebar .sidebar-subnav.is-visible,
body.sidebar-pinned #sidebar .sidebar-subnav.is-visible {
  display: block;
}

html[data-access-mode=hide][data-access-role=school] #sidebar li[data-page=district],
html[data-access-mode=hide][data-access-role=teacher] #sidebar li[data-page=district],
html[data-access-mode=hide][data-access-role=teacher] #sidebar li[data-page=school] {
  display: none;
}

/* Content offset (collapsed baseline) */
#content {
  margin-left: var(--sidebar-width, 90px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 250ms ease;
}

/* Expanded (legacy click) remains overlay: do NOT push content */
body.sidebar-expanded #sidebar {
  width: var(--sidebar-expanded-width, 200px);
}
body.sidebar-expanded #sidebar .nav-pills .nav-link {
  justify-content: flex-start;
}
body.sidebar-expanded #sidebar #brainButton {
  justify-content: center !important;
  padding-left: 0;
  padding-right: 0;
  gap: 0.85rem;
}
body.sidebar-expanded #sidebar #brainButton .brain {
  width: 40px;
  height: 40px;
}
body.sidebar-expanded #sidebar #brainButton .brain-wordmark {
  display: inline-block;
}
body.sidebar-expanded #sidebar #brainButton .brain-wordmark {
  height: 40px;
}
body.sidebar-expanded #content {
  margin-left: var(--sidebar-width, 90px);
}
body.sidebar-expanded #sidebar .sidebar-label {
  opacity: 1;
  max-width: 220px;
  margin-left: 0;
  transform: translateX(0);
  transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out, max-width 0.3s ease-in-out;
}

/* Label hidden by default */
.sidebar-label {
  font-size: var(--sidebar-label-size, 1.25rem);
  line-height: 1.2;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out, max-width 0.3s ease-in-out;
}

/* Optional stacked variant: place wordmark under the brain icon */
body.sidebar-logo-stacked #sidebar #brainButton {
  flex-direction: column;
  gap: 0.35rem;
}
body.sidebar-logo-stacked #brainButton .brain-wordmark {
  margin-left: 0;
}

/* No-transition bootstrapping */
body.sidebar-no-transition #sidebar,
body.sidebar-no-transition #content {
  transition: none !important;
}

/* Performance: rely on CSS transitions */
#sidebar {
  transition: width 220ms ease;
}

#content {
  transition: margin-left 250ms ease;
}

/* Pinned state (optional): pushes content */
body.sidebar-pinned #sidebar {
  width: var(--sidebar-expanded-width, 200px);
  z-index: 1015;
}
body.sidebar-pinned #content {
  margin-left: var(--sidebar-expanded-width, 200px);
}
body.sidebar-pinned #sidebar .nav-pills .nav-link {
  justify-content: flex-start;
}
body.sidebar-pinned #sidebar #brainButton {
  justify-content: center !important;
  padding-left: 0;
  padding-right: 0;
  gap: 0.85rem;
}
body.sidebar-pinned #sidebar #brainButton .brain {
  width: 40px;
  height: 40px;
}
body.sidebar-pinned #sidebar #brainButton .brain-wordmark {
  display: inline-block;
}
body.sidebar-pinned #sidebar #brainButton .brain-wordmark {
  height: 40px;
}
body.sidebar-pinned #sidebar .sidebar-label {
  opacity: 1;
  transform: none;
  max-width: 220px;
  margin-left: 0;
}

body:not(.sidebar-expanded):not(.sidebar-pinned) #sidebar .nav-pills .nav-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}
body:not(.sidebar-expanded):not(.sidebar-pinned) #sidebar #brainButton {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}
body:not(.sidebar-expanded):not(.sidebar-pinned) #sidebar #brainButton .brain-wordmark {
  display: none;
}

/* Small screens: convert to bottom bar and center icons */
@media (max-width: 576px) {
  :root {
    --sidebar-width: 60px;
    --sidebar-expanded-width: 180px;
  }
  #sidebar, #content {
    transition: none !important;
  }
  #sidebar * {
    transition: none !important;
  }
  #content {
    margin-left: 0;
    padding-bottom: 56px;
  }
  body.sidebar-expanded #content,
  body.sidebar-pinned #content {
    margin-left: 0;
  }
  #sidebar {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    height: 56px;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 0;
    border-top: 1px solid var(--border-color);
    border-right: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1040;
  }
  #sidebar > .nav {
    flex-direction: row !important;
    justify-content: space-around;
    margin-bottom: 0 !important;
  }
  #sidebar .nav-pills .nav-link {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 0.5rem !important;
    border-bottom: 0 !important;
    gap: 0.25rem;
  }
  #sidebar .sidebar-subnav {
    display: none !important;
  }
  #sidebar .sidebar-label {
    display: none !important;
  }
  #sidebar #brainButton {
    display: none !important;
  }
  #sidebar #brainButton .brain {
    width: 36px;
    height: 36px;
  }
  #sidebar .nav-pills .nav-link img {
    width: 32px;
    height: 32px;
  }
}
#content-container.search-centered {
  align-items: center !important;
  justify-content: center !important;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* center helper for specific column markup */
.w-100.d-flex.align-items-center.justify-content-center > .col-12.col-sm-10.col-md-8.col-lg-6 {
  padding-left: 0;
  padding-right: 0;
  margin: 0 auto;
}

.search-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  padding: 5rem;
  min-height: 720px;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.search-card .card-header {
  background: transparent;
  padding: var(--spacing-sm);
  text-align: center;
  border-bottom: none;
}
.search-card .card-header h2 {
  margin: 0;
  font-weight: 400;
  font-size: var(--font-size-xxl);
  color: var(--text-primary);
}
.search-card .card-body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 0.5rem;
}
.search-card .form-group {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 360px;
}
.search-card .form-select,
.search-card .select2-container {
  width: 100% !important;
  max-width: 360px;
  margin: 0 auto;
}

.student-icon {
  margin-bottom: 0.75rem;
  width: clamp(96px, 22vmin, 320px);
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  padding-right: 40px;
}

.search-icon {
  font-size: large;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.2s ease-in-out;
  color: var(--text-muted);
}
.search-icon:hover {
  color: var(--primary-color);
}

/* Select2 */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 45px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  padding: 0 12px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single:hover {
  border-color: var(--border-hover);
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary);
  font-size: var(--font-size-base);
  line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 43px;
  right: 1px;
  width: 20px;
}

.select2-dropdown {
  border-color: var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.select2-container--default .select2-results > .select2-results__options {
  padding: 4px 0;
}

.select2-results__option {
  padding: 8px 12px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: rgba(0, 0, 0, 0.04);
  color: inherit;
}

.student-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-option .student-name {
  font-weight: 500;
  color: var(--text-primary);
}

/* Stronger selectors for #student-select */
#student-select {
  min-height: 44px;
}

#student-select + .select2-container--default .select2-selection--single,
#student-select ~ .select2-container--default .select2-selection--single {
  height: 44px !important;
  line-height: 44px !important;
  padding: 0.25rem 0.5rem !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
}

#student-select + .select2-container--default .select2-selection--single .select2-selection__rendered,
#student-select ~ .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  padding-left: 6px !important;
}

#student-select + .select2-container--default .select2-selection--single .select2-selection__arrow,
#student-select ~ .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Mirror: Stronger selectors for #teacher-select to match student */
#teacher-select {
  min-height: 44px;
}

#teacher-select + .select2-container--default .select2-selection--single,
#teacher-select ~ .select2-container--default .select2-selection--single {
  height: 44px !important;
  line-height: 44px !important;
  padding: 0.25rem 0.5rem !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
}

#teacher-select + .select2-container--default .select2-selection--single .select2-selection__rendered,
#teacher-select ~ .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  padding-left: 6px !important;
}

#teacher-select + .select2-container--default .select2-selection--single .select2-selection__arrow,
#teacher-select ~ .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .student-icon {
    width: clamp(64px, 28vmin, 160px);
  }
  .search-card {
    padding: 1rem;
    min-height: 420px;
  }
  .search-card .form-group {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .search-card .form-select,
  .search-card .select2-container--default .select2-selection--single {
    height: 40px !important;
    line-height: 40px !important;
  }
}
.card {
  border-radius: var(--card-border-radius);
  background-color: var(--bg-card);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  min-height: 150px;
  padding: var(--spacing-md);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
  color: inherit;
}
.card .card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}
.card .card-title {
  font-weight: 700;
  font-size: 25.3px;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}
.card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.card .card-text {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  text-align: center;
}
.card .chart-container {
  width: 100%;
  height: 120px;
  margin-top: var(--spacing-sm);
}
.card .chart-container canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.chart-container {
  width: 100%;
  height: 400px;
  position: relative;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Info / Detail */
.info-card {
  border: 1px solid var(--border-color, #dee2e6);
  border-radius: 10px;
  padding: var(--spacing-md, 1rem);
  text-align: left;
  height: 100%;
  word-wrap: break-word;
  background-color: var(--bg-secondary, #fff);
  box-shadow: var(--card-shadow, none);
}

.info-card-data {
  border: 1px solid var(--border-color, #dee2e6);
  border-radius: 10px;
  padding: var(--spacing-md, 1rem);
  text-align: left;
  height: 100%;
  word-wrap: break-word;
  background-color: var(--bg-secondary, #fff);
  min-height: 0 !important;
}

.info-card.compact {
  min-height: 0 !important;
}

.card-title-detail {
  font-weight: 700;
  font-size: 17.3px;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card-text-detail .label {
  font-size: 25.3px;
  font-weight: 700;
  display: inline-block;
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-xs, 4px);
  color: var(--text-primary);
}

.card-title-detail p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.label-green {
  color: var(--success-color, #00AB0E);
}

.label-red {
  color: var(--danger-color, #FF0000);
}

/* Responsive tweaks for cards */
@media (max-width: 992px) {
  .card-title-detail {
    font-size: 15.3px;
  }
  .card-text-detail .label {
    font-size: 21.3px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}
@media (max-width: 768px) {
  .card-title-detail {
    font-size: 13.3px;
  }
  .card-text-detail .label {
    font-size: 19.3px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
  }
}
@media (max-width: 576px) {
  .card-title {
    font-size: 19.3px;
  }
  .card-title-detail {
    font-size: 12.3px;
  }
  .card-text-detail .label {
    font-size: 17.3px;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
}
.student-profile .profile-header {
  background-color: rgb(1.762295082, 87.2336065574, 213.237704918);
  color: #fff;
  padding: 1rem;
}
.student-profile .profile-details {
  padding: 1rem;
  background-color: var(--bg-card);
}

.student-name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.student-name-detail {
  font-size: 40px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

/* Avatar */
.avatar-container {
  inline-size: var(--avatar-size);
  block-size: var(--avatar-size);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: var(--spacing-lg) auto;
  box-sizing: border-box;
}

.avatar-img {
  inline-size: 100%;
  block-size: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Page container */
.student-demographics-container {
  padding: var(--spacing-xl) 0;
  padding-top: 1rem;
  background: #F8FAFC;
  --avatar-size: clamp(96px, 14vw, 170px);
  /* remove shadows on this page */
}

.student-growth-container {
  padding: var(--spacing-xl) 0;
  padding-top: 1rem;
  background: #F8FAFC;
}

/* Hero/meta */
.student-demographics-container .student-hero--spaced,
.student-growth-container .student-hero--spaced {
  margin-bottom: var(--spacing-md);
}

.student-demographics-container .student-name-detail,
.student-growth-container .student-name-detail {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.student-demographics-container h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.student-demographics-container h5 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.5rem 0;
}

.student-demographics-container .card-title-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.student-demographics-container .card-text-detail .label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.student-demographics-container .chart-container {
  height: 300px;
}

.student-demographics-container .row.g-3 > [class^=col],
.student-demographics-container .row.g-3 > [class*=" col"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (max-width: 576px) {
  :root {
    --avatar-size: clamp(96px, 28vw, 150px);
  }
  .student-demographics-container .p-4 {
    padding: 0.75rem !important;
  }
  .student-demographics-container .info-card {
    padding: 0.625rem 0.75rem;
  }
  .student-demographics-container .chart-container {
    height: 220px;
  }
  .student-demographics-container .student-name-detail,
  .student-growth-container .student-name-detail {
    font-size: clamp(20px, 5vw, 24px);
  }
}
/* Hero meta key/values */
.student-demographics-container .hero-meta,
.student-growth-container .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
}

.student-demographics-container .hero-meta-item,
.student-growth-container .hero-meta-item {
  min-width: 180px;
  padding-inline: 16px;
  border-left: 1px solid var(--border-color);
}

.student-demographics-container .hero-meta-item:first-child,
.student-growth-container .hero-meta-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.student-demographics-container .hero-meta-label,
.student-growth-container .hero-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.student-demographics-container .hero-meta-value,
.student-growth-container .hero-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Hide subject extended toggle on student demographics */
.student-demographics-container .subject-extended-toggle {
  display: none;
}

@media (max-width: 576px) {
  .student-demographics-container .hero-meta-item,
  .student-growth-container .hero-meta-item {
    min-width: 140px;
  }
}
/* Full-width panels */
.student-demographics-container .info-card.p-4 {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

/* Keep hero responsive height sane */
@media (max-width: 991.98px) {
  .student-demographics-container .info-card:first-of-type > .row.align-items-center,
  .student-growth-container .info-card:first-of-type > .row.align-items-center {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .student-demographics-container .info-card:first-of-type .col-12.col-md-2,
  .student-demographics-container .info-card:first-of-type .col-12.col-md-10,
  .student-growth-container .info-card:first-of-type .col-12.col-md-2,
  .student-growth-container .info-card:first-of-type .col-12.col-md-10 {
    height: auto !important;
  }
  .student-demographics-container .avatar-container,
  .student-growth-container .avatar-container {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }
}
@media (max-width: 575.98px) {
  .student-demographics-container .chart-container {
    height: 200px;
  }
  .student-demographics-container .info-card:first-of-type > .row.align-items-center,
  .student-growth-container .info-card:first-of-type > .row.align-items-center {
    gap: 0.5rem;
  }
}
/* Charts panel split (50/50 rows) */
.student-demographics-container .charts-panel {
  display: flex;
  flex-direction: column;
  height: 100% !important;
}

.student-demographics-container .charts-panel .row {
  height: 100%;
  --bs-gutter-y: 0;
}

.student-demographics-container .charts-panel .row > .col-12 {
  flex: 1 1 50%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.student-demographics-container .charts-panel .chart-container {
  flex: 1 1 auto;
  height: 100% !important;
  min-height: 0;
}

.student-demographics-container .charts-panel .charts-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  row-gap: 0;
  height: 100%;
  min-height: 0;
  flex: 1 1 0;
}

.student-demographics-container .charts-panel .chart-item {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.student-demographics-container .charts-panel .chart-item .chart-container {
  height: 100% !important;
  flex: 1 1 auto;
  min-height: 0;
}

/* KPI row (shared across student pages) */
.student-demographics-container .kpi-row,
.student-growth-container .kpi-row {
  --bs-gutter-x: calc(var(--spacing-sm) + var(--spacing-xs));
  --bs-gutter-y: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.student-demographics-container .kpi-row .info-card,
.student-growth-container .kpi-row .info-card {
  display: flex;
  padding: 0;
  min-height: 6.5rem;
}

.student-demographics-container .kpi-row .info-card .card-body,
.student-growth-container .kpi-row .info-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
}

/* Chart cards */
.student-demographics-container .category-chart-card,
.student-growth-container .category-chart-card,
.student-growth-container .student-growth-category-chart-card {
  --category-accordion-radius: 12px;
  overflow: visible;
  border-radius: var(--category-accordion-radius);
  background-color: #ffffff;
  box-shadow: var(--card-shadow, none);
}

.student-demographics-container .category-chart-card .accordion-flush > .accordion-item,
.student-growth-container .category-chart-card .accordion-flush > .accordion-item,
.student-growth-container .student-growth-category-chart-card .accordion-flush > .accordion-item {
  border: 0;
  border-radius: var(--category-accordion-radius);
  overflow: visible;
  background-color: #ffffff;
}

.student-demographics-container .category-chart-card .accordion-flush > .accordion-item:first-child,
.student-growth-container .category-chart-card .accordion-flush > .accordion-item:first-child,
.student-growth-container .student-growth-category-chart-card .accordion-flush > .accordion-item:first-child {
  border-top-left-radius: var(--category-accordion-radius);
  border-top-right-radius: var(--category-accordion-radius);
}

.student-demographics-container .category-chart-card .accordion-flush > .accordion-item:last-child,
.student-growth-container .category-chart-card .accordion-flush > .accordion-item:last-child,
.student-growth-container .student-growth-category-chart-card .accordion-flush > .accordion-item:last-child {
  border-bottom-left-radius: var(--category-accordion-radius);
  border-bottom-right-radius: var(--category-accordion-radius);
}

.student-demographics-container .category-chart-card .accordion-flush > .accordion-item > .accordion-header .accordion-button,
.student-demographics-container .category-chart-card .accordion-flush > .accordion-item > .accordion-header .accordion-button.collapsed,
.student-growth-container .category-chart-card .accordion-flush > .accordion-item > .accordion-header .accordion-button,
.student-growth-container .category-chart-card .accordion-flush > .accordion-item > .accordion-header .accordion-button.collapsed,
.student-growth-container .student-growth-category-chart-card .accordion-flush > .accordion-item > .accordion-header .accordion-button,
.student-growth-container .student-growth-category-chart-card .accordion-flush > .accordion-item > .accordion-header .accordion-button.collapsed {
  background-color: #ffffff;
  box-shadow: none;
  border-radius: var(--category-accordion-radius);
}

.student-demographics-container .category-chart-card .accordion-flush > .accordion-item > .accordion-header .accordion-button:not(.collapsed),
.student-growth-container .category-chart-card .accordion-flush > .accordion-item > .accordion-header .accordion-button:not(.collapsed),
.student-growth-container .student-growth-category-chart-card .accordion-flush > .accordion-item > .accordion-header .accordion-button:not(.collapsed) {
  color: inherit;
  background-color: #ffffff;
  box-shadow: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.student-demographics-container .category-chart-card .accordion-flush > .accordion-item > .accordion-collapse,
.student-growth-container .category-chart-card .accordion-flush > .accordion-item > .accordion-collapse,
.student-growth-container .student-growth-category-chart-card .accordion-flush > .accordion-item > .accordion-collapse {
  border-bottom-left-radius: var(--category-accordion-radius);
  border-bottom-right-radius: var(--category-accordion-radius);
  background-color: #ffffff;
}

.student-demographics-container .category-chart-card .accordion-body,
.student-growth-container .category-chart-card .accordion-body,
.student-growth-container .student-growth-category-chart-card .accordion-body {
  overflow: visible;
  border-bottom-left-radius: var(--category-accordion-radius);
  border-bottom-right-radius: var(--category-accordion-radius);
  background-color: transparent;
}

.student-demographics-container .category-chart-wrapper,
.student-growth-container .category-chart-wrapper,
.student-growth-container .student-growth-category-chart-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
  padding: var(--spacing-md);
}

.student-demographics-container .category-chart-wrapper--tall,
.student-growth-container .category-chart-wrapper--tall,
.student-growth-container .student-growth-category-chart-wrapper {
  min-height: 432px;
  height: clamp(432px, 40vw, 640px);
  max-height: 640px;
}

@media (min-width: 992px) {
  .student-demographics-container .category-chart-wrapper--tall,
  .student-growth-container .category-chart-wrapper--tall,
  .student-growth-container .student-growth-category-chart-wrapper {
    min-height: 480px;
    height: clamp(480px, 32vw, 700px);
    max-height: 700px;
  }
}
@media (min-width: 1400px) {
  .student-demographics-container .category-chart-wrapper--tall,
  .student-growth-container .category-chart-wrapper--tall,
  .student-growth-container .student-growth-category-chart-wrapper {
    min-height: 592px;
    height: 704px;
    max-height: 704px;
  }
}
.student-demographics-container .category-chart-wrapper canvas,
.student-growth-container .category-chart-wrapper canvas,
.student-growth-container .student-growth-category-chart-wrapper canvas {
  min-height: inherit;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Student toolbar (overlay) */
.student-toolbar, .classroom-toolbar {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  margin: 0;
}

.student-toolbar .student-toolbar-group, .classroom-toolbar .student-toolbar-group {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.06);
}

.student-toolbar .student-toolbar-btn, .classroom-toolbar .student-toolbar-btn {
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.student-toolbar .student-toolbar-btn:hover, .classroom-toolbar .student-toolbar-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.student-toolbar .student-toolbar-btn.active, .classroom-toolbar .student-toolbar-btn.active {
  color: #fff !important;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.student-toolbar-toggle {
  width: 38px;
  height: 38px;
}

/* Classroom-specific toolbars */
.student-toolbar.filter-toolbar, .filter-toolbar.classroom-toolbar {
  top: 128px;
  right: 24px;
  z-index: 1059;
}

@media (max-width: 767.98px) {
  .student-toolbar, .classroom-toolbar {
    top: 86px;
    right: 12px;
  }
  .student-toolbar .student-toolbar-group, .classroom-toolbar .student-toolbar-group {
    display: none;
  }
  .student-toolbar.open .student-toolbar-group, .open.classroom-toolbar .student-toolbar-group {
    display: flex;
    flex-wrap: wrap;
  }
  .student-toolbar.filter-toolbar, .filter-toolbar.classroom-toolbar {
    top: 140px;
    right: 12px;
  }
}
/* Minor helpers */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.student-demographics-container .info-card .card-body {
  text-align: center;
}

.student-demographics-container .info-card .card-text-detail {
  margin: 0;
}

#school-accountability-card.border-success {
  border-color: #dee2e6 !important;
}

/* School Overview: basis navigation buttons (prev/next) */
.subject-toggle {
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.subject-toggle:disabled, .subject-toggle[aria-disabled=true] {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f1f5f9;
  color: #94a3b8;
  pointer-events: none;
}

/* Responsive typography on student pages */
@media (max-width: 768px) {
  .student-name {
    font-size: 48px;
  }
  .student-name-detail {
    font-size: 32px;
  }
  .avatar-container {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 576px) {
  .student-name {
    font-size: 36px;
  }
  .student-name-detail {
    font-size: 24px;
  }
  .avatar-container {
    width: 100px;
    height: 100px;
  }
}
/* Classroom-specific toolbar and filter panel (does not affect student pages) */
/* Position filter toolbar beneath the main toolbar */
.student-toolbar.filter-toolbar,
.classroom-filter-toolbar {
  top: 128px; /* below the main toolbar */
  right: 24px;
  z-index: 1059;
}

@media (max-width: 767.98px) {
  .student-toolbar.filter-toolbar,
  .classroom-filter-toolbar {
    top: 140px;
    right: 12px;
  }
}
/* Toolbar look: white background + blue border */
.student-toolbar.filter-toolbar .student-toolbar-group,
.classroom-filter-toolbar .student-toolbar-group {
  background: #ffffff;
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.06);
}

.student-toolbar.filter-toolbar .student-toolbar-btn,
.classroom-filter-toolbar .student-toolbar-btn {
  height: 38px;
  min-width: 38px;
  background: #ffffff;
  color: #0d6efd;
  border: 1.5px solid rgba(13, 110, 253, 0.6);
}

.student-toolbar.filter-toolbar .student-toolbar-btn:hover,
.classroom-filter-toolbar .student-toolbar-btn:hover {
  background: rgba(13, 110, 253, 0.06);
  border-color: --bs-btn-color;
}

/* Floating filter panel visuals */
#classroom-filter-panel {
  background: rgba(255, 255, 255, 0.94); /* keep transparency */
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12), 0 4px 8px rgba(16, 24, 40, 0.07);
  align-items: stretch;
  backdrop-filter: saturate(120%) blur(1px);
  -webkit-backdrop-filter: saturate(120%) blur(1px);
  animation: none !important;
  transition: none !important; /* remove card animations */
}

#classroom-filter-panel .card-header {
  background: transparent;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#classroom-filter-panel .card-header strong {
  font-size: 15.3px;
  color: var(--text-primary);
}

#classroom-filter-panel .cf-close {
  order: -1;
} /* X on left */
#classroom-filter-panel .card-body {
  padding: 0.75rem 0.75rem 1rem;
}

/* Section headings and option grids like the reference */
#classroom-filter-panel .form-label {
  font-size: 13.8px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0.25rem 0 0.35rem;
}

/* Arrange options in two columns with comfortable spacing */
#classroom-filter-panel .d-flex.gap-3.flex-wrap {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  -moz-column-gap: 24px;
       column-gap: 24px;
  row-gap: 10px;
}

@media (max-width: 420px) {
  #classroom-filter-panel .d-flex.gap-3.flex-wrap {
    grid-template-columns: 1fr;
  }
}
/* Checkbox and label aesthetics */
#classroom-filter-panel .form-check {
  margin: 0;
}

#classroom-filter-panel .form-check-input {
  cursor: pointer;
}

#classroom-filter-panel .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

#classroom-filter-panel .form-check-label {
  color: #344054;
  font-weight: 500;
}

/* Buttons */
#classroom-filter-panel .btn {
  box-shadow: none !important;
}

#classroom-filter-panel #cf-clear {
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.35);
  background: #fff;
}

#classroom-filter-panel #cf-clear:hover {
  background: rgba(13, 110, 253, 0.06);
  border-color: #0d6efd;
}

/* Shared classroom snapshot layout primitives */
.classroom-hero {
  margin-bottom: 0;
}

.classroom-hero--spaced {
  margin-bottom: var(--spacing-md);
}

.classroom-section-stack {
  gap: var(--spacing-lg);
}

.summary-grid {
  display: grid;
  -moz-column-gap: calc(var(--spacing-sm) + var(--spacing-xs));
       column-gap: calc(var(--spacing-sm) + var(--spacing-xs));
  row-gap: var(--spacing-md);
  align-items: stretch;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.summary-grid > * {
  min-width: 0;
}

.summary-grid > .col {
  padding-left: 0;
  padding-right: 0;
}

.summary-grid--8 {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.summary-grid--7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
  .summary-grid--8,
  .summary-grid--7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .summary-grid--8,
  .summary-grid--7 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .summary-grid--8,
  .summary-grid--7 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
.summary-card {
  border-radius: 16px;
  padding: var(--spacing-md);
  box-shadow: var(--card-shadow, none);
}

.summary-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.summary-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Summary card variants */
.summary-grid .assessment-level-card {
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.summary-grid .assessment-level-card:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.summary-grid .assessment-level-card.assessment-level-card-active,
.summary-grid .assessment-level-card[data-active=true] {
  border-color: transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #6AF0C4, #3A9AE5, #2C46E1);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--card-shadow, none), 0 0 0 2px rgba(44, 70, 225, 0.25);
}

.summary-grid .kpi-filter-card,
.summary-grid .selector-filter-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.summary-grid .kpi-filter-card[data-active=true],
.summary-grid .selector-filter-card[data-active=true] {
  border-color: transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #6AF0C4, #3A9AE5, #2C46E1);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--card-shadow, none), 0 0 0 2px rgba(44, 70, 225, 0.25);
}

/* Subject tabs (Classroom pages with subject tabs enabled) */
.classroom-subject-tabs-enabled .student-demographics-container {
  --subject-tab-height: 44px;
  padding-top: var(--subject-tab-height);
}

.classroom-subject-tabs-enabled .ae-hero-shell {
  position: relative;
  max-width: 100%;
}

.classroom-subject-tabs-enabled .ae-hero-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  border-top-left-radius: 0;
  box-shadow: var(--card-shadow, none);
  position: relative;
  z-index: 1;
}

.classroom-subject-tabs-enabled .ae-subject-tabs {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  padding-left: 0;
  padding-right: var(--spacing-lg);
  margin-bottom: -1px;
  margin-top: calc(-1 * var(--subject-tab-height));
  overflow-x: auto;
  max-width: 100%;
  position: relative;
  scrollbar-width: thin;
  z-index: 2;
}

.classroom-subject-tabs-enabled .ae-subject-tabs:empty {
  display: none;
}

.classroom-subject-tabs-enabled .ae-subject-tabs.has-overflow::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 100%;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.96) 85%);
  pointer-events: none;
}

.classroom-subject-tabs-enabled .ae-subject-tab {
  --tab-cap-color: #94a3b8;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: var(--subject-tab-height);
  padding: 0.55rem 1.05rem 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 12px 12px 6px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  z-index: 10;
  transform: translateY(2px);
}

.classroom-subject-tabs-enabled .ae-subject-tab + .ae-subject-tab {
  margin-left: -12px;
}

.classroom-subject-tabs-enabled .ae-subject-tab:first-child {
  border-bottom-left-radius: 0;
}

.classroom-subject-tabs-enabled .ae-subject-tab-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 12px 12px 0 0;
  background: var(--tab-cap-color);
  pointer-events: none;
}

.classroom-subject-tabs-enabled .ae-subject-tab-label {
  position: relative;
  z-index: 1;
}

.classroom-subject-tabs-enabled .ae-subject-tab[data-subject=ELA] {
  --tab-cap-color: rgb(54, 162, 235);
}

.classroom-subject-tabs-enabled .ae-subject-tab[data-subject=MATH] {
  --tab-cap-color: #FFB000;
}

.classroom-subject-tabs-enabled .ae-subject-tab[data-subject=SCIENCE] {
  --tab-cap-color: #22c55e;
}

.classroom-subject-tabs-enabled .ae-subject-tab:not(.is-active):hover {
  color: #475569;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(1px);
  z-index: 20;
}

.classroom-subject-tabs-enabled .ae-subject-tab.is-active {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
  border-bottom-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  margin-bottom: -1px;
  z-index: 30;
}

.classroom-subject-tabs-enabled .ae-subject-tab.is-active .ae-subject-tab-cap {
  height: 6px;
}

.classroom-subject-tabs-enabled .ae-subject-tab:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
  z-index: 40;
}

/* Chrome-first boot: reserve space and show skeletons */
.navbar-shell {
  min-height: 56px;
}

.sidebar-shell {
  width: 260px;
  position: fixed;
  top: 56px;
  bottom: 0;
  overflow: auto;
}

.content-area {
  margin-left: 260px;
  padding-top: 56px;
}

.skel {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  min-height: 12px;
}

.brand-skel {
  width: 140px;
  height: 20px;
  margin: 12px 0;
}

.menu-skel {
  width: 220px;
  height: 12px;
}

.nav-skel > .skel {
  height: 16px;
  margin: 12px;
}

html.auth-redirecting .navbar-shell,
html.auth-redirecting .sidebar-shell {
  display: none;
}

html.auth-redirecting .content-area {
  margin-left: 0;
  padding-top: 0;
}/*# sourceMappingURL=style.css.map */