/* =========================================================
   EduLabs – Phong cách chung (Design tokens)
   Màu được trích trực tiếp từ ảnh mẫu. Mọi trang khác của
   hệ thống chỉ cần nhúng file này để dùng cùng một phong cách.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap");

:root {
  /* ---- Màu thương hiệu ---- */
  --brand-50:  #ecf4fe;   /* nền icon thống kê "Học sinh" */
  --brand-100: #dcedfd;   /* nhãn "Tiết 1" */
  --brand-200: #bfdffc;   /* thanh "Hoàn thành" */
  --brand-300: #a5d4fe;   /* chú thích "Hoàn thành" */
  --brand-400: #6e9bee;   /* thanh "Hoàn thành tốt" (đầu) */
  --brand-500: #5a8bea;   /* thanh tiến độ, nút */
  --brand-600: #4679e0;   /* icon chính, logo */
  --brand-700: #2c67db;   /* icon tiêu đề thẻ */
  --brand-800: #1256b1;   /* chữ "Tiết 1" */
  --brand-900: #0f47a3;   /* nhãn nhóm menu (SOẠN GIẢNG…) */

  /* ---- Màu chữ ---- */
  --text-strong: #0b1240;   /* tiêu đề */
  --text:        #1a2150;   /* nội dung */
  --text-muted:  #5b6385;   /* chú thích */
  --text-on-brand: #ffffff;

  /* ---- Nền & viền ---- */
  --bg-app:      #fafbfe;   /* nền vùng làm việc */
  --bg-surface:  #ffffff;   /* thẻ trắng */
  --bg-soft:     #e4ecf8;   /* tiêu đề thẻ, khung "Bắt đầu dạy học" */
  --bg-track:    #e3ebf7;   /* rãnh thanh tiến độ */
  --sidebar-top: #e3ecf8;
  --sidebar-bot: #dde7f6;
  --border:      #d5deee;
  --border-soft: #e6ecf6;
  --divider:     #cbd8eb;

  /* ---- Màu ngữ nghĩa ---- */
  --success-50:  #e8f7f1;  --success-100: #dbf3ea;  --success-500: #4bbc8b;  --success-700: #0c8d65;
  --danger-50:   #fee4dd;  --danger-100:  #fde9e4;  --danger-500:  #f57355;  --danger-700:  #c2553e;
  --warning-50:  #feeee3;  --warning-100: #fdd9c4;  --warning-300: #fed3ba;  --warning-500: #fab71b;
  --violet-50:   #ededfe;  --violet-500:  #605cbf;
  --dot-blue:    #4d8af7;  --dot-red:     #fc9679;  --dot-green:   #54cc99;
  --tiet-2-text: #794a69;

  /* ---- Gradient ---- */
  --grad-brand:  linear-gradient(90deg, #7398e7 0%, #5f87dc 100%);   /* mục menu đang chọn */
  --grad-button: linear-gradient(180deg, #5e8ce6 0%, #4a7bdc 100%);  /* nút Bắt đầu */
  --grad-bar:    linear-gradient(90deg, #4c85ec 0%, #6e9bee 100%);   /* thanh kết quả */
  --grad-sidebar: linear-gradient(180deg, var(--sidebar-top) 0%, var(--sidebar-bot) 100%);

  /* ---- Bo góc, bóng, khoảng cách ---- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(30, 60, 120, .06);
  --shadow-sm: 0 2px 6px rgba(30, 60, 120, .08);
  --shadow-md: 0 4px 14px rgba(30, 60, 120, .10);
  --shadow-brand: 0 4px 12px rgba(70, 121, 224, .35);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px;

  /* ---- Chữ ---- */
  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13.5px; --fs-lg: 15.5px;
  --fs-xl: 18.5px; --fs-2xl: 24px;

  /* ---- Kích thước bố cục ---- */
  --sidebar-w: 282px;
  --topbar-h: 62px;
}

/* ---- Thành phần dùng chung ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-md);
  color: var(--text);
  background: var(--bg-app);
  letter-spacing: -.25px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 15px; height: 15px; }

/* Nút chính */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-xs);
  font-size: var(--fs-sm); font-weight: 600;
  padding: 0 14px; height: 30px; transition: filter .15s, transform .15s;
}
.btn-primary { background: var(--grad-button); color: var(--text-on-brand); box-shadow: var(--shadow-xs); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-outline { background: var(--bg-surface); color: var(--brand-600);
  border: 1px solid var(--border); height: 26px; font-weight: 500; }
.btn-outline:hover { background: var(--brand-50); }

/* Thẻ (card) */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft);
  padding: 0 20px; height: 40px;
  font-size: 16px; font-weight: 700; color: var(--text-strong);
  letter-spacing: -.2px;
}
.card-header .icon { color: var(--brand-700); }
.card-body { padding: 6px 20px 8px; }

/* Nhãn (badge) */
.badge { display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-md);
  padding: 2px 14px; }
.badge-blue  { background: var(--brand-100);   color: var(--brand-800); }
.badge-red   { background: var(--danger-100);  color: var(--tiet-2-text); }
.badge-green { background: var(--success-100); color: var(--success-700); }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
