/* Dr Mohamed Hassan official colors drawn from original website config and index.
   LMS functions retained; only Mohamed Hassan identity is public-facing. */
:root {
  --brand-primary:#0B2D5A;
  --brand-secondary:#0E5B73;
  --brand-accent:#D4A32F;
  --brand-surface:#F8F6F1;
  --brand-text:#1F2937;
  --main-blue:#0B2D5A;
  --light-blue:#0E5B73;
  --welcome-bg:linear-gradient(135deg,#0B2D5A 0%,#0E5B73 74%,#185d69 100%);
  --primary-gradient:linear-gradient(135deg,#F8F6F1 0%,#eef3f3 70%,#f7f2e3 100%);
  --admin-primary:#0B2D5A;
  --admin-secondary:#0E5B73;
  --admin-accent:#D4A32F;
  --admin-bg:#F8F6F1;
  --admin-soft:#f4f6f1;
  --admin-border:#e5e6e1;
}
html,body,input,button,textarea,select {font-family:'Cairo','Tajawal',sans-serif;}
/* Public pages: override brand surfaces, not semantic success/warning/error components. */
body:not(.thkm-admin-body) .btn-primary,
body:not(.thkm-admin-body) button.btn-primary,
body:not(.thkm-admin-body) a.btn-primary {
  background-color:var(--brand-primary) !important;
  border-color:var(--brand-primary) !important;
}
body:not(.thkm-admin-body) .btn-primary:hover,
body:not(.thkm-admin-body) a.btn-primary:hover {
  background-color:var(--brand-secondary) !important;
  border-color:var(--brand-secondary) !important;
}
/* Admin layout: palette taken from Mohamed; no change to grade data or widgets. */
body.thkm-admin-body {
 --admin-primary:#0B2D5A;
 --admin-secondary:#0E5B73;
 --admin-accent:#D4A32F;
 --admin-bg:#F8F6F1;
 --admin-soft:#f6f5ef;
 --admin-border:#e5e6e1;
 --admin-text:#1F2937;
 --clr-primary:#0B2D5A;
 --clr-secondary:#0E5B73;
 --clr-accent:#D4A32F;
}
body.thkm-admin-body .thkm-sidebar-brand {
  background:linear-gradient(145deg,#0B2D5A,#0E5B73 79%,#C58B2B) !important;
}
body.thkm-admin-body .thkm-nav-link.active {
  border-color:rgba(212,163,47,.22) !important;
  background:linear-gradient(135deg,rgba(11,45,90,.08),rgba(212,163,47,.08)) !important;
}
body.thkm-admin-body .admin-card,
body.thkm-admin-body .stat-card {border-color:var(--admin-border);}

/* MH_DARK_COURSE_CTA_V13: align student header controls with dark mode.
   Scoped so admin navigation and semantic success/error colors stay unchanged. */
html[data-theme="dark"] body:not(.thkm-admin-body) {
  --theme-toggle-color:#EAF4F2;
  --notification-color:#EAF4F2;
  --sidebar-color:#EAF4F2;
  --header-bg:#101C30;
  --header-border:#345269;
  --card-bg:#142A3A;
  --text-primary:#EDF6FB;
  --text-secondary:#C5D9E4;
  color-scheme:dark;
}
html[data-theme="dark"] header .theme-toggle,
html[data-theme="dark"] header .sidebar-toggle,
html[data-theme="dark"] header .notification-btn {
  color:#F2F8FC!important;
  background:#162D3F!important;
  border-color:#D4A32F!important;
  box-shadow:0 7px 20px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] header .theme-toggle:hover,
html[data-theme="dark"] header .sidebar-toggle:hover,
html[data-theme="dark"] header .notification-btn:hover {
  color:#071B2B!important;
  background:#D4A32F!important;
}
html[data-theme="dark"] header .theme-toggle:focus-visible,
html[data-theme="dark"] header .sidebar-toggle:focus-visible,
html[data-theme="dark"] header .notification-btn:focus-visible {
  outline:3px solid #F1CD74!important;
  outline-offset:3px!important;
}
html[data-theme="dark"] .mobile-sidebar {
  background:#102737!important;
  color:#EEF6F9!important;
}
html[data-theme="dark"] .mobile-sidebar .menu-item {color:#E5F0F7!important}
html[data-theme="dark"] .mobile-sidebar .menu-item:hover {background:#1B4053!important}
html[data-theme="dark"] body:not(.thkm-admin-body) .footer {background:linear-gradient(135deg,#101A2D,#0E354A)!important;color:#F0F5F9!important}
