body { margin: 0; font-family: 'Sarabun', 'Segoe UI', sans-serif; background: #f4f7fa; color: #0A2540; }
.navbar { background: #0A2540; color: #fff; padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.nav-brand { font-family: 'Prompt', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.nav-brand span { color: #FF6B35; }
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a { color: #dbe7f1; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: #FF6B35; }
.nav-user { background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 20px; font-size: 13px; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
.footer { text-align: center; color: #8a9baa; font-size: 12px; padding: 24px; }
h1 { font-family: 'Prompt', sans-serif; font-weight: 700; color: #0A2540; }
h2 { font-family: 'Prompt', sans-serif; font-weight: 700; color: #0A2540; }
.card { background: #fff; border-radius: 14px; padding: 20px 24px; box-shadow: 0 2px 10px rgba(10,37,64,.07); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kpi { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 2px 10px rgba(10,37,64,.07); border-top: 4px solid #4EAE9A; }
.kpi .num { font-family: 'Prompt', sans-serif; font-weight: 800; font-size: 30px; color: #0A2540; }
.kpi .lbl { color: #5a7186; font-size: 13px; }
.btn { display: inline-block; background: #0A2540; color: #fff; border: none; padding: 9px 18px; border-radius: 8px; font-family: 'Sarabun', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #16365f; }
.btn-orange { background: #FF6B35; }
.btn-orange:hover { background: #e85a26; }
.btn-green { background: #4EAE9A; }
.btn-green:hover { background: #3d9785; }
.btn-outline { background: transparent; border: 1px solid #5a7186; color: #dbe7f1; }
.btn-outline:hover { border-color: #FF6B35; color: #FF6B35; background: transparent; }
.btn-danger { background: #E63946; }
.btn-danger:hover { background: #c92a36; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(10,37,64,.07); }
th { background: #0A2540; color: #fff; text-align: left; padding: 10px 14px; font-size: 13px; font-weight: 700; }
td { padding: 10px 14px; border-bottom: 1px solid #eef2f6; font-size: 14px; }
tr:hover td { background: #f7fafc; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-green { background: #d9f2ec; color: #1f7a64; }
.badge-red { background: #fde3e5; color: #b32632; }
.badge-gray { background: #e8edf2; color: #5a7186; }
.badge-blue { background: #e0ecf7; color: #1d5f9e; }
.badge-orange { background: #ffe8dc; color: #c14d1a; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.flash-success { background: #d9f2ec; color: #1f7a64; }
.flash-error { background: #fde3e5; color: #b32632; }
input[type=text], input[type=password], input[type=number], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid #cfdbe6; border-radius: 8px; font-family: 'Sarabun', sans-serif; font-size: 14px; box-sizing: border-box; }
textarea { min-height: 90px; }
label { display: block; margin: 10px 0 4px; font-weight: 700; font-size: 13px; color: #334e66; }
.question { border-left: 4px solid #4EAE9A; padding-left: 14px; margin-bottom: 18px; }
.option-row { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; }
.option-row input[type=checkbox] { margin-top: 4px; width: 16px; height: 16px; }
.timer { position: fixed; top: 14px; right: 20px; background: #FF6B35; color: #fff; font-family: 'Prompt', sans-serif; font-weight: 800; padding: 8px 16px; border-radius: 30px; font-size: 18px; z-index: 50; box-shadow: 0 3px 12px rgba(255,107,53,.4); }
.timer.warn { background: #E63946; }
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 6px 24px rgba(10,37,64,.10); }
.auth-logo { text-align: center; font-family: 'Prompt', sans-serif; font-weight: 800; font-size: 26px; color: #0A2540; margin-bottom: 4px; }
.auth-logo span { color: #FF6B35; }
.auth-sub { text-align: center; color: #5a7186; font-size: 13px; margin-bottom: 20px; }
.correct { background: #d9f2ec; }
.incorrect { background: #fde3e5; }
.answer-note { font-size: 12px; color: #5a7186; }
