:root {
  --brand: rgb(241, 164, 86);
  --brand-dark: #412702;
  --brand-soft: #f4ecdf;
  --ink: #2c1c08;
  --muted: #725f49;
  --surface: #ffffff;
  --line: #e5d7c5;
  --soft: #f4ecdf;
  --accent: rgb(200, 117, 34);
}

* {
  letter-spacing: 0;
}

body {
  color: var(--ink);
  background:
    linear-gradient(200deg, rgba(200, 117, 34, 0.28), rgb(255, 255, 255) 550px),
    var(--soft);
  min-height: 100vh;
}

.app-page {
  padding-bottom: 48px;
}

.auth-page {
  display: flex;
  flex-direction: column;
}

.app-navbar {
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.app-footer {
  background: rgba(255, 250, 244, 0.92);
  border-top: 1px solid var(--line);
}

.navbar-brand {
  color: var(--brand-dark);
  font-weight: 700;
}

.nav-logo {
  width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(65, 39, 2, 0.08);
}

.panel-pad {
  padding: clamp(20px, 3vw, 32px);
}

.section-title {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 750;
  color: var(--ink);
}

.kicker {
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.btn-primary,
.btn-success {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-primary:hover,
.btn-success:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-outline-primary {
  color: var(--brand-dark);
  border-color: var(--brand);
}

.btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.form-control,
.form-select {
  border-color: var(--line);
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(241, 164, 86, 0.24);
}

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

.student-login {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: clamp(18px, 4vw, 44px);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  width: min(1120px, 100%);
  min-height: 620px;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(241, 164, 86, 0.45);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(65, 39, 2, 0.14);
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(28px, 5vw, 56px);
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(241, 164, 86, 0.42),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(65, 39, 2, 0.98), rgba(112, 65, 9, 0.93));
}

.login-hero::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -24%;
  width: 56%;
  aspect-ratio: 1;
  border: 42px solid rgba(241, 164, 86, 0.28);
  border-radius: 50%;
  z-index: -1;
}

.login-hero-top,
.login-status-grid,
.login-hint,
.login-deadline {
  display: flex;
  align-items: center;
}

.login-hero-top {
  justify-content: center;
}

.login-logo {
  width: min(340px, 48vw);
  /* height: auto; */
  padding: 10px 14px;
}

.login-pill,
.login-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-pill {
  color: #412702;
  background: var(--brand);
  padding: 8px 12px;
}

.login-hero-copy {
  max-width: 590px;
  padding: 46px 0;
}

.login-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.25rem);
  font-weight: 850;
  line-height: 1.02;
}

.login-hero-copy p:not(.kicker) {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.login-status-grid {
  gap: 12px;
  flex-wrap: wrap;
}

.login-status-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.login-status-card i {
  color: var(--brand);
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 52px);
  background: rgba(255, 250, 244, 0.96);
}

.login-badge {
  color: var(--brand-dark);
  background: rgba(241, 164, 86, 0.22);
  border: 1px solid rgba(241, 164, 86, 0.45);
  padding: 7px 11px;
}

.login-card h2 {
  color: var(--brand-dark);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 850;
}

.login-form .form-control {
  min-height: 58px;
  background-color: #fff;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--brand-dark);
  background: rgba(241, 164, 86, 0.18);
  border: 1px solid rgba(241, 164, 86, 0.45);
  border-radius: 8px;
  transform: translateY(-50%);
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.password-toggle:hover {
  background: rgba(241, 164, 86, 0.32);
  transform: translateY(-50%) scale(1.04);
}

.login-hint {
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-hint i,
.login-deadline i {
  color: var(--accent);
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(65, 39, 2, 0.18);
}

.login-deadline {
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  color: var(--brand-dark);
  background: rgba(241, 164, 86, 0.149);
  border: 1px solid rgba(241, 164, 86, 0.737);
  border-radius: 8px;
  font-size: 0.92rem;
}

.student-profile {
  max-width: 1180px;
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  min-height: 210px;
  padding: clamp(24px, 4vw, 44px);
  color: #fff;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(241, 164, 86, 0.45),
      transparent 28%
    ),
    linear-gradient(135deg, rgba(65, 39, 2, 0.98), rgba(125, 72, 10, 0.94));
  border: 1px solid rgba(241, 164, 86, 0.35);
  border-radius: 8px;
  box-shadow: 0 20px 56px rgba(65, 39, 2, 0.15);
}

.profile-hero::after {
  content: "";
  position: absolute;
  right: -88px;
  bottom: -120px;
  width: 280px;
  aspect-ratio: 1;
  border: 34px solid rgba(241, 164, 86, 0.2);
  border-radius: 50%;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: clamp(76px, 10vw, 112px);
  aspect-ratio: 1;
  color: var(--brand-dark);
  background: linear-gradient(135deg, #fff6ec, var(--brand));
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.profile-hero-copy {
  position: relative;
  z-index: 1;
}

.profile-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 3.35rem);
  font-weight: 850;
  line-height: 1.05;
}

.profile-hero-copy p:not(.kicker) {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.profile-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-status.is-complete {
  color: #14532d;
  background: #dcfce7;
}

.profile-status.is-pending {
  color: #7c2d12;
  background: #ffedd5;
}

.profile-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: #14532d;
  background: #eaf7ec;
  border: 1px solid #b7dec0;
  border-radius: 8px;
}

.profile-card {
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(241, 164, 86, 0.42);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(65, 39, 2, 0.08);
  padding: clamp(18px, 3vw, 28px);
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-card-header h2 {
  margin: 12px 0 0;
  color: var(--brand-dark);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 850;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.profile-grid-featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 90px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.profile-info:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 164, 86, 0.78);
  box-shadow: 0 12px 24px rgba(65, 39, 2, 0.1);
}

.profile-info i {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--brand-dark);
  background: rgba(241, 164, 86, 0.18);
  border-radius: 8px;
}

.profile-info span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-info strong {
  display: block;
  color: #120b02;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.profile-info-rtl {
  flex-direction: row-reverse;
  text-align: right;
}

.profile-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.admin-dashboard {
  max-width: 1220px;
}

.admin-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  background:
    radial-gradient(
      circle at 86% 20%,
      rgba(241, 164, 86, 0.42),
      transparent 26%
    ),
    linear-gradient(135deg, rgba(65, 39, 2, 0.98), rgba(142, 82, 12, 0.92));
  border: 1px solid rgba(241, 164, 86, 0.38);
  border-radius: 8px;
  box-shadow: 0 20px 56px rgba(65, 39, 2, 0.15);
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3.6rem);
  font-weight: 850;
  line-height: 1.04;
}

.admin-hero p:not(.kicker) {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.admin-hero-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 10px;
  min-width: 154px;
  min-height: 126px;
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.admin-hero-badge i {
  color: var(--brand);
  font-size: 2rem;
}

.admin-search-card,
.admin-result,
.admin-empty-state {
  /* background: rgba(255, 250, 244, 0.94); */
  border: 1px solid rgba(241, 164, 86, 0.44);
  border-radius: 8px;
  /* box-shadow: 0 14px 34px rgba(65, 39, 2, 0.08); */
  padding: clamp(18px, 3vw, 28px);
}

.admin-search-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-search-heading h2,
.admin-actions-card h2,
.admin-empty-state h2 {
  margin: 12px 0 0;
  color: var(--brand-dark);
  font-size: clamp(1.28rem, 2.4vw, 1.85rem);
  font-weight: 850;
}

.admin-search-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: stretch;
}

.admin-input {
  position: relative;
}

.admin-input > i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 4;
  color: var(--accent);
  transform: translateY(-50%);
}

.admin-input .form-control {
  min-height: 58px;
  padding-left: 42px;
  background: #fff;
}

.admin-input .form-floating > label {
  padding-left: 42px;
}

.admin-search-button {
  min-width: 168px;
}

.admin-result {
  padding: 0;
  overflow: hidden;
}

.admin-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.94),
      rgba(244, 236, 223, 0.78)
    ),
    var(--brand-soft);
  border-bottom: 1px solid rgba(241, 164, 86, 0.38);
}

.admin-result-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-result-title h2 {
  margin: 10px 0 4px;
  color: var(--brand-dark);
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  font-weight: 850;
}

.admin-result-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-avatar,
.admin-empty-icon {
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: linear-gradient(135deg, #fff6ec, var(--brand));
  border-radius: 8px;
}

.admin-avatar {
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

.admin-status-stack {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-chip-warning {
  color: #7c2d12;
  background: #ffedd5;
}

.admin-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.admin-actions-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.admin-actions-card p {
  color: var(--muted);
}

.admin-actions-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-empty-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: #14532d;
  background: #eaf7ec;
  border: 1px solid #b7dec0;
  border-radius: 8px;
  font-weight: 700;
}

.admin-empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
}

.admin-empty-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  font-size: 2rem;
}

.admin-empty-state p {
  max-width: 470px;
  margin: 10px auto 0;
  color: var(--muted);
}

.stats-dashboard {
  max-width: 1220px;
}

.stats-hero {
  min-height: 210px;
}

.stats-hero-meter {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 156px;
  aspect-ratio: 1;
  color: #fff;
  background:
    radial-gradient(closest-side, rgba(65, 39, 2, 0.96) 72%, transparent 73%),
    conic-gradient(
      var(--brand) var(--progress, 82%),
      rgba(255, 255, 255, 0.2) 0
    );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.stats-hero-meter span {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.stats-hero-meter small {
  display: block;
  max-width: 96px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
}

.stats-table-card {
  overflow: hidden;
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid rgba(241, 164, 86, 0.44);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(65, 39, 2, 0.08);
}

.stats-table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid rgba(241, 164, 86, 0.38);
}

.stats-table-header h2 {
  margin: 12px 0 0;
  color: var(--brand-dark);
  font-size: clamp(1.3rem, 2.6vw, 1.95rem);
  font-weight: 850;
}

.stats-table {
  margin-bottom: 0;
}

.stats-table thead th {
  padding: 16px 18px;
  color: var(--brand-dark);
  background: rgba(241, 164, 86, 0.16);
  border-bottom: 1px solid rgba(241, 164, 86, 0.38);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.stats-table tbody td {
  padding: 16px 18px;
  border-color: rgba(229, 215, 197, 0.78);
}

.stats-table tbody tr {
  transition: background-color 0.18s ease;
}

.stats-table tbody tr:hover {
  background: rgba(241, 164, 86, 0.08);
}

.stats-program {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  color: var(--brand-dark);
  font-weight: 800;
}

.stats-program i {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--brand-dark);
  background: rgba(241, 164, 86, 0.18);
  border-radius: 8px;
}

.stats-progress-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 72px;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.stats-progress {
  height: 12px;
  overflow: hidden;
  background: rgba(65, 39, 2, 0.1);
  border-radius: 999px;
}

.stats-progress span {
  display: block;
  height: 100%;
  min-width: 4px;
  background: linear-gradient(90deg, var(--brand), #c87522);
  border-radius: inherit;
}

.stats-progress-row strong {
  color: var(--brand-dark);
  font-size: 0.92rem;
}

.stats-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 850;
}

.stats-count.is-success {
  color: #14532d;
  background: #dcfce7;
}

.stats-count.is-warning {
  color: #7c2d12;
  background: #ffedd5;
}

.stats-count.is-total {
  color: var(--brand-dark);
  background: rgba(65, 39, 2, 0.1);
}

.daily-tracking {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 18px;
}

.tracking-chart-card,
.recent-students-card {
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid rgba(241, 164, 86, 0.44);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(65, 39, 2, 0.08);
}

.tracking-chart-card {
  overflow: hidden;
}

.tracking-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(241, 164, 86, 0.35);
}

.tracking-card-header h2 {
  margin: 12px 0 0;
  color: var(--brand-dark);
  font-size: clamp(1.22rem, 2.2vw, 1.72rem);
  font-weight: 850;
}

.tracking-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--brand-dark);
  background: rgba(241, 164, 86, 0.16);
  border: 1px solid rgba(241, 164, 86, 0.42);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.tracking-chart-wrap {
  position: relative;
  min-height: 360px;
  padding: 18px;
  background: #fff;
}

.daily-chart-board {
  display: grid;
  gap: 18px;
  min-height: 330px;
}

.daily-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.daily-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.daily-line-chart {
  width: 100%;
  overflow-x: auto;
  padding: 8px 2px 2px;
}

.daily-line-chart svg {
  display: block;
  width: max(100%, 720px);
  height: 330px;
  min-width: 720px;
  background: linear-gradient(
    180deg,
    rgba(255, 250, 244, 0.94),
    rgba(255, 255, 255, 0.96)
  );
  border: 1px solid rgba(229, 215, 197, 0.86);
  border-radius: 8px;
}

.daily-grid-line {
  stroke: rgba(65, 39, 2, 0.12);
  stroke-width: 1;
}

.daily-grid-line.muted-line {
  stroke: rgba(65, 39, 2, 0.06);
}

.daily-line {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 8px rgba(65, 39, 2, 0.12));
}

.daily-point {
  fill: #fff;
  stroke: var(--line-color);
  stroke-width: 4;
}

.daily-point-label {
  fill: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
}

.daily-axis-label,
.daily-date-label {
  fill: #725f49;
  font-size: 12px;
  font-weight: 800;
}

.daily-date-label {
  text-anchor: middle;
}

.recent-students-card {
  overflow: hidden;
}

.recent-students-list {
  display: grid;
  gap: 06px;
  padding: 06px;
}

.recent-student-item {
  display: flex;
  align-items: flex-start;
  gap: 06px;
  padding: 06px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.recent-student-item:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 164, 86, 0.78);
  box-shadow: 0 10px 22px rgba(65, 39, 2, 0.08);
}

.recent-student-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #14532d;
  background: #dcfce7;
  border-radius: 8px;
}

.recent-student-item strong,
.recent-student-item span,
.recent-student-item small {
  display: block;
}

.recent-student-item strong {
  color: var(--brand-dark);
  font-size: 0.96rem;
}

.recent-student-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.recent-student-item small {
  color: #8a765f;
  font-size: 0.78rem;
}

.tracking-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: var(--muted);
  text-align: center;
}

.tracking-empty.compact {
  min-height: 150px;
}

.tracking-empty i {
  color: var(--accent);
  font-size: 2.2rem;
}

.auth-card {
  width: min(100%, 430px);
}

.auth-logo {
  max-width: 240px;
  height: auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fffaf4;
}

.info-box label {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.info-box strong {
  overflow-wrap: anywhere;
}

.stats-summary {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9),
      rgba(244, 236, 223, 0.82)
    ),
    var(--brand-soft);
  border: 1px solid rgba(241, 164, 86, 0.55);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(65, 39, 2, 0.08);
  padding: clamp(18px, 2.6vw, 34px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  overflow: hidden;
  background: #fffaf4;
  border: 1px solid rgba(65, 39, 2, 0.13);
  border-radius: 8px;
  color: var(--brand-dark);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--stat-color, var(--brand));
}

.stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: var(--stat-color, var(--brand-dark));
  background: var(--stat-bg, rgba(241, 164, 86, 0.18));
  border-radius: 8px;
  font-size: 1.25rem;
}

.stat-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-card strong {
  display: block;
  color: var(--stat-color, var(--brand-dark));
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1;
}

.stat-card-success {
  --stat-color: #2f7d32;
  --stat-bg: rgba(47, 125, 50, 0.12);
}

.stat-card-warning {
  --stat-color: #c2410c;
  --stat-bg: rgba(241, 164, 86, 0.2);
}

.stat-card-total {
  --stat-color: #412702;
  --stat-bg: rgba(65, 39, 2, 0.11);
}

.stat-card-percent {
  --stat-color: #a35d13;
  --stat-bg: rgba(241, 164, 86, 0.22);
}

.hero-band {
  background:
    linear-gradient(135deg, rgba(65, 39, 2, 0.96), rgba(120, 72, 15, 0.92)),
    var(--brand-dark);
  color: #fff;
  border-radius: 8px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(241, 164, 86, 0.35);
}

.hero-band .muted {
  color: rgba(255, 255, 255, 0.82);
}

.table {
  --bs-table-bg: transparent;
}

.notice-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

@media (max-width: 576px) {
  .page-shell {
    padding-top: 20px;
  }

  .navbar-brand span,
  .btn span {
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-hero {
    min-height: 420px;
  }

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

  .profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-status {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .profile-grid-featured,
  .profile-columns {
    grid-template-columns: 1fr 1fr;
  }

  .admin-hero,
  .admin-search-heading,
  .admin-result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-search-form,
  .admin-result-grid {
    grid-template-columns: 1fr;
  }

  .admin-search-button {
    width: 100%;
  }

  .admin-status-stack {
    align-items: flex-start;
  }

  .stats-hero-meter {
    width: 132px;
  }

  .stats-table-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-tracking {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .student-login {
    padding: 12px;
  }

  .login-hero,
  .login-card {
    padding: 22px;
  }

  .login-hero {
    min-height: 360px;
  }

  .login-hero-top {
    align-items: center;
  }

  .login-logo {
    width: min(190px, 100%);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .profile-avatar {
    width: 78px;
  }

  .profile-grid-featured,
  .profile-columns,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions .btn {
    width: 100%;
  }

  .admin-result-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-avatar {
    width: 62px;
    height: 62px;
  }

  .stats-hero-meter {
    width: 118px;
  }

  .tracking-card-header {
    flex-direction: column;
  }

  .daily-line-chart svg {
    height: 290px;
  }
}

#mouse-dot {
    width: 08px;
    height: 08px;
    background: #00000095;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    /* box-shadow: 0 0 0px; */
}