/* ============================================================
   MAIN.CSS — Reset, Font, Body, Utilities
   Hệ thống Đánh giá Điểm Rèn Luyện
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f1f5f9;
    color: #0f172a;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ── CSS Design Tokens ── */
:root {
    --color-navy:        #0b1f4d;
    --color-navy-light:  #122660;
    --color-navy-hover:  rgba(255,255,255,0.08);
    --color-primary:     #2563eb;
    --color-primary-dark:#1d4ed8;
    --color-primary-soft:#eff6ff;
    --color-primary-100: #dbeafe;
    --color-accent:      #60a5fa;
    --color-bg:          #f1f5f9;
    --color-card:        #ffffff;
    --color-text:        #0f172a;
    --color-text-secondary: #64748b;
    --color-text-muted:  #94a3b8;
    --color-border:      #dbe3ef;
    --color-border-light:#e2e8f4;
    --color-success:     #16a34a;
    --color-success-bg:  #dcfce7;
    --color-warning:     #d97706;
    --color-warning-bg:  #fef3c7;
    --color-danger:      #dc2626;
    --color-danger-bg:   #fee2e2;
    --color-info:        #0891b2;
    --color-info-bg:     #e0f2fe;

    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   20px;
    --radius-2xl:  24px;
    --radius-full: 9999px;

    --shadow-sm:   0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md:   0 4px 12px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
    --shadow-lg:   0 10px 30px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.06);
    --shadow-xl:   0 20px 50px rgba(15,23,42,0.14), 0 8px 20px rgba(15,23,42,0.08);

    --sidebar-width:       264px;
    --sidebar-collapsed:   80px;
    --header-height:       68px;
    --content-max-wide:    1440px;
    --content-max-normal:  1280px;
    --content-max-narrow:  1100px;
}

/* ── Utilities ── */
.text-muted    { color: var(--color-text-secondary) !important; }
.text-primary  { color: var(--color-primary) !important; }
.text-success  { color: var(--color-success) !important; }
.text-warning  { color: var(--color-warning) !important; }
.text-danger   { color: var(--color-danger) !important; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.fw-600        { font-weight: 600; }
.fw-700        { font-weight: 700; }
.fw-800        { font-weight: 800; }
.fs-12         { font-size: 12px; }
.fs-13         { font-size: 13px; }
.fs-14         { font-size: 14px; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.gap-16        { gap: 16px; }
.flex-wrap     { flex-wrap: wrap; }
.w-100         { width: 100%; }
.mt-4          { margin-top: 4px; }
.mt-8          { margin-top: 8px; }
.mt-12         { margin-top: 12px; }
.mt-16         { margin-top: 16px; }
.mt-20         { margin-top: 20px; }
.mt-24         { margin-top: 24px; }
.mb-4          { margin-bottom: 4px; }
.mb-8          { margin-bottom: 8px; }
.mb-12         { margin-bottom: 12px; }
.mb-16         { margin-bottom: 16px; }
.mb-20         { margin-bottom: 20px; }
.mb-24         { margin-bottom: 24px; }
.p-16          { padding: 16px; }
.p-20          { padding: 20px; }
.p-24          { padding: 24px; }
.hidden        { display: none !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
