/* Quy chuẩn màu và bộ kích thước dùng thử trong DESIGN.md. */
:root {
  color-scheme: light;
  --font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --color-background: #f8fafc;
  --color-surface: #fff;
  --color-heading: #000;
  --color-brand: #2f429f;
  --color-foreground: #0f172a;
  --color-muted-foreground: #475569;
  --color-border: #e2e8f0;
  --color-control-border: #64748b;
  --color-primary: #1d4ed8;
  --color-primary-hover: #1e40af;
  --color-primary-active: #1e3a8a;
  --color-on-primary: #fff;
  --color-focus: #1d4ed8;
  --color-success-fg: #166534;
  --color-success-bg: #f0fdf4;
  --color-warning-fg: #92400e;
  --color-warning-bg: #fffbeb;
  --color-danger-fg: #991b1b;
  --color-danger-bg: #fef2f2;
  --color-info-fg: #1e40af;
  --color-info-bg: #eff6ff;
  --color-neutral-fg: #334155;
  --color-neutral-bg: #f1f5f9;
  --header-background: #245a98;
  --header-foreground: #fff;
  --header-hover-foreground: #dbeafe;
  --header-control-border: #93c5fd;
  --header-focus: #fff;
  --header-current-background: transparent;
  --header-current-indicator: #93c5fd;
  --header-brand-foreground: #18356b;
  --header-brand-logo-size: 2.5rem;
  --header-brand-font-size: .75rem;
  --header-brand-radius: .5rem;
  --header-brand-padding-block: .375rem;
  --header-brand-padding-inline: .625rem;
  --header-min-height: 5rem;
  --header-login-background: #c93622;
  --header-login-hover: #b32e1e;
  --header-login-active: #992719;
  --font-size-body: 1rem;
  --font-size-secondary: .875rem;
  --font-small: var(--font-size-secondary);
  --leading-relaxed: 1.625;
  --font-size-page-title: 1.75rem;
  --font-size-section-title: 1.25rem;
  --control-min-height: 2.75rem;
  --radius-control: .5rem;
  --radius-surface: .75rem;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --content-max-width: 80rem;
  --page-gutter: 2rem;
  --page-heading-gap: var(--space-6);
  --shadow-floating: 0 12px 32px rgb(15 23 42 / .14);
  /* Bổ sung cho các trang tổng quan và lịch cũ; giá trị dựng thử. */
  --text-xs: .75rem;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.3;
  --space-5: 1.25rem;
  --space-10: 2.5rem;
  --radius-small: .25rem;
  --radius-full: 9999px;
  --color-secondary-btn-border: #cbd5e1;
  --color-success-border: rgb(22 101 52 / .28);
  --color-warning-border: rgb(146 64 14 / .3);
  --color-danger-border: rgb(153 27 27 / .28);
  --color-info-border: #bfdbfe;
  --color-info-hover-bg: #dbeafe;
  --transition-fast: 150ms ease;
  --z-dropdown: 20;
}

@media (max-width: 47.99rem) {
  :root {
    --font-size-page-title: 1.5rem;
    --page-gutter: 1rem;
    --page-heading-gap: var(--space-4);
  }
}

/* Tương thích các trang quản lý/chi tiết giảng viên sau đồng bộ Git.
   Chỉ bổ sung tên còn thiếu; không ghi đè token đang dùng của nhóm. */
:root {
  --white: #ffffff;
  --black: #000000;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --navy-700: #2f429f;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-800: #166534;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-800: #92400e;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --font-sans: var(--font-family);
  --text-sm: var(--font-size-secondary);
  --text-base: var(--font-size-body);
  --text-lg: 1.125rem;
  --text-xl: var(--font-size-section-title);
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
  --weight-regular: var(--font-weight-regular);
  --weight-medium: var(--font-weight-medium);
  --weight-semibold: var(--font-weight-semibold);
  --weight-bold: var(--font-weight-bold);
  --leading-tight: 1.25;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --tracking-tight: -0.02em;
  --radius-sm: var(--radius-small);
  --radius-md: var(--radius-control);
  --radius-lg: var(--radius-surface);
  --shadow-overlay: var(--shadow-floating);
  --z-base: 0;
  --z-sticky: 10;
  --z-backdrop: 40;
  --z-modal: 50;
  --z-toast: 60;
  --duration-fast: 150ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --container-max-width: var(--content-max-width);
  --color-surface-subtle: var(--slate-100);
  --color-border-strong: var(--slate-300);
  --color-primary-tint: var(--blue-50);
  --color-primary-tint-border: var(--blue-200);
  --color-danger: var(--red-700);
  --color-disabled-bg: var(--slate-100);
  --color-disabled-fg: var(--slate-500);
  --color-disabled-border: var(--slate-300);
  --color-backdrop: rgb(15 23 42 / 0.52);
  --control-radius: var(--radius-md);
  --card-radius: var(--radius-lg);
  --button-primary-bg: var(--color-primary);
  --button-primary-bg-hover: var(--color-primary-hover);
  --button-primary-bg-active: var(--color-primary-active);
  --button-primary-fg: var(--color-on-primary);
  --button-secondary-bg: var(--color-surface);
  --button-secondary-bg-hover: var(--color-surface-subtle);
  --button-secondary-fg: var(--color-foreground);
  --button-secondary-border: var(--color-control-border);
  --button-outline-primary-bg: var(--color-surface);
  --button-outline-primary-bg-hover: var(--color-primary-tint);
  --button-outline-primary-fg: var(--color-primary);
  --button-outline-primary-fg-hover: var(--color-primary-hover);
  --button-outline-primary-border: var(--color-primary);
  --role-badge-min-height: 1.875rem;
  --role-badge-padding-x: 0.875rem;
  --role-badge-padding-y: 0.3125rem;
  --role-badge-radius: var(--radius-md);
  --role-primary-bg: var(--color-info-bg);
  --role-primary-fg: var(--color-info-fg);
  --role-primary-border: var(--color-primary-tint-border);
  --role-secondary-bg: var(--color-neutral-bg);
  --role-secondary-fg: var(--color-neutral-fg);
  --role-secondary-border: var(--color-border-strong);
  --media-placeholder-bg: var(--color-info-bg);
  --media-placeholder-border: var(--blue-100);
  --media-placeholder-icon: var(--color-primary);
  --progress-track-bg: var(--color-border);
  --progress-fill-bg: var(--color-primary);
  --req-submitted-bg: var(--green-50);
  --req-submitted-border: var(--green-200);
  --req-submitted-badge-bg: var(--green-100);
  --req-submitted-badge-fg: var(--color-success-fg);
  --req-pending-bg: var(--slate-50);
  --req-pending-border: var(--slate-300);
  --req-pending-badge-bg: var(--slate-200);
  --req-pending-badge-fg: var(--color-neutral-fg);
  --req-overdue-bg: var(--red-50);
  --req-overdue-border: var(--red-200);
  --req-overdue-badge-bg: var(--red-100);
  --req-overdue-badge-fg: var(--color-danger-fg);
  --sub-ontime-bg: var(--green-50);
  --sub-ontime-border: var(--green-200);
  --sub-ontime-badge-bg: var(--green-100);
  --sub-ontime-badge-fg: var(--color-success-fg);
  --sub-late-bg: var(--amber-50);
  --sub-late-border: var(--amber-200);
  --sub-late-badge-bg: var(--amber-100);
  --sub-late-badge-fg: var(--color-warning-fg);
  --task-not-started-bg: var(--slate-50);
  --task-not-started-border: var(--slate-300);
  --task-not-started-badge-bg: var(--slate-200);
  --task-not-started-badge-fg: var(--color-neutral-fg);
  --task-in-progress-bg: var(--blue-50);
  --task-in-progress-border: var(--blue-200);
  --task-in-progress-badge-bg: var(--blue-100);
  --task-in-progress-badge-fg: var(--color-info-fg);
  --task-done-bg: var(--green-50);
  --task-done-border: var(--green-200);
  --task-done-badge-bg: var(--green-100);
  --task-done-badge-fg: var(--color-success-fg);
  --task-overdue-bg: var(--red-50);
  --task-overdue-border: var(--red-200);
  --task-overdue-badge-bg: var(--red-100);
  --task-overdue-badge-fg: var(--color-danger-fg);
}
