/* V257 — Make the unified student header follow the active light/dark theme. */
.student-global-header,
.student-global-nav,
.student-global-menu,
.student-global-tools .icon-btn,
.student-global-back{
  transition:background .22s,color .22s,border-color .22s,box-shadow .22s!important;
}

html[data-theme="light"] .student-global-header{
  background:color-mix(in srgb,var(--surface) 96%,transparent)!important;
  color:var(--ink)!important;
  border-bottom-color:#18b99a!important;
  box-shadow:var(--shadow-sm)!important;
  backdrop-filter:blur(16px);
}

html[data-theme="light"] .student-global-menu,
html[data-theme="light"] .student-global-tools .icon-btn,
html[data-theme="light"] .student-global-back{
  background:var(--surface)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}

html[data-theme="light"] .student-global-menu:hover,
html[data-theme="light"] .student-global-tools .icon-btn:hover,
html[data-theme="light"] .student-global-back:hover{
  background:var(--surface-2)!important;
  color:var(--ink)!important;
  border-color:#18b99a!important;
}

html[data-theme="light"] .student-global-nav{
  background:var(--surface)!important;
  border-color:var(--line)!important;
  box-shadow:var(--shadow)!important;
}

html[data-theme="light"] .student-global-nav a{
  color:var(--text)!important;
}

html[data-theme="light"] .student-global-nav a:hover,
html[data-theme="light"] .student-global-nav a.active{
  color:#fff!important;
  background:#16b99b!important;
  border-color:#72ead3!important;
}

/* Keep logout styling stronger than the generic nav-link rule above. */
html[data-theme="light"] .student-global-nav .student-global-logout{
  color:var(--danger)!important;
  border-color:color-mix(in srgb,var(--danger) 35%,var(--line))!important;
  background:color-mix(in srgb,var(--danger) 5%,var(--surface))!important;
}

html[data-theme="light"] .student-global-nav .student-global-logout:hover{
  color:#fff!important;
  background:var(--danger)!important;
  border-color:var(--danger)!important;
}
