/* Layout */
.lookup { max-width: 1160px; margin: 0 auto; padding: 24px 16px 72px; color:#0f2540; }
/* ========== HEADLINE RECOLOR + UNDERLINE EFFECT ========== */
.lk-head {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}

/* Tiêu đề chính */
.lk-head h1 {
  display: inline-block;
  position: relative;
  color: #0072ce;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: 0.25px;
  background: linear-gradient(90deg, #0072ce 0%, #00b3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 6px rgba(0, 114, 206, 0.15);
  transition: all 0.3s ease;
}

/* underline động */
.lk-head h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #00b3ff, #0072ce);
  border-radius: 6px;
  transform: translateX(-50%);
  transition: width 0.35s ease;
  opacity: 0.8;
}

.lk-head h1:hover::after {
  width: 80%;
}

/* Dòng mô tả */
.lk-head .sub {
  font-size: 1.06rem;
  line-height: 1.6;
  margin-top: 10px;
  color: #334155;
}

/* Từ khóa trong mô tả */
.lk-head .sub strong {
  color: #0077e6;
  font-weight: 700;
  position: relative;
  transition: color 0.3s ease;
}

.lk-head .sub strong:hover {
  color: #0097ff;
}


/* Tabs */
.lk-tabs { display:flex; gap:10px; border-bottom:1px solid #e6edf5; margin: 8px 0 16px; }
.lk-tabs .tab {
  padding:10px 14px; border:1px solid transparent; border-radius:10px 10px 0 0;
  background:#f8fafc; color:#556372; font-weight:600; cursor:pointer;
}
.lk-tabs .tab.is-active { background:#fff; border-color:#e6edf5; color:#0f2540; }
.lk-tabs .tab:disabled { opacity:.5; cursor:not-allowed; }

/* Search Bar */
.lk-search {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:#fff; border:1px solid #e6edf5; border-radius:14px; padding:12px;
  box-shadow: 0 8px 20px rgba(17,37,59,.06);
}
.input-wrap { display:flex; gap:8px; flex:1; }
.input-wrap input{
  flex:1; border:1px solid #d8e3ee; border-radius:10px; padding:12px 14px; font:inherit;
}
.input-wrap input:focus{ outline:none; border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.15); }
.btn-primary{
  background: linear-gradient(90deg,#0ea5e9,#3b82f6); color:#fff;
  border:0; padding:12px 16px; border-radius:10px; cursor:pointer; font-weight:700;
}
.btn-ghost{
  border:1px dashed #cbd5e1; background:#fff; color:#0f2540; padding:12px 16px; border-radius:10px; cursor:pointer;
}
.right{ display:flex; align-items:center; gap:8px; }

/* Legend */
.lk-legend { padding: 14px 2px 6px; }
.lk-legend h3 { margin:4px 0 8px; font-size:1.05rem; color:#0f2540; }
.legend { list-style:none; display:flex; flex-wrap:wrap; gap:10px 14px; margin:0; padding:0; }
.legend li{ display:flex; align-items:center; gap:8px; color:#556372; }
.dot{ width:10px; height:10px; border-radius:50%; display:inline-block; box-shadow:0 0 0 2px #fff inset, 0 0 0 1px rgba(0,0,0,.05); }
.dot.wait{ background:#f59e0b; }  .dot.valid{ background:#22c55e; }
.dot.reject{ background:#ef4444; } .dot.review{ background:#06b6d4; }
.dot.pending{ background:#64748b; } .dot.pass{ background:#3b82f6; }
.dot.fail{ background:#334155; }

/* Cards */
.card{
  background:#fff; border:1px solid #e6edf5; border-radius:16px; padding:14px;
  box-shadow:0 10px 24px rgba(17,37,59,.06);
}
.lk-result{ display:grid; gap:12px; margin-top:12px; }
.lk-summary{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.lk-summary h2{ margin:2px 0; font-size: clamp(20px,2.4vw,28px); }
.lk-summary .muted{ color:#6b7b8c; }
.badge{
  display:inline-block; padding:6px 10px; border-radius:999px; font-weight:800; font-size:12px; color:#fff;
  background:#64748b; box-shadow:0 6px 14px rgba(100,116,139,.3);
}
.badge.wait{ background:#f59e0b; } .badge.valid{ background:#10b981; }
.badge.reject{ background:#ef4444; } .badge.review{ background:#06b6d4; }
.badge.pending{ background:#475569; } .badge.pass{ background:#2563eb; }
.badge.fail{ background:#334155; }

.meta{ display:grid; grid-template-columns:repeat(2, minmax(140px,1fr)); gap:8px 16px; }
.meta dt{ color:#6b7b8c; font-weight:600; }
.meta dd{ margin:0; color:#0f2540; }

/* Timeline */
.lk-steps h3{ margin:4px 0 10px; }
.timeline{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.timeline li{
  display:grid; grid-template-columns: 28px 1fr auto; align-items:flex-start; gap:10px;
  padding:10px; border:1px solid #e6edf5; border-radius:12px; background:#fafcff;
}
.timeline .icon{
  width:28px; height:28px; border-radius:50%;
  display:grid; place-items:center; color:#fff; font-weight:800;
}
.icon.wait{ background:#f59e0b; } .icon.valid{ background:#10b981; }
.icon.reject{ background:#ef4444; } .icon.review{ background:#06b6d4; }
.icon.pending{ background:#475569; } .icon.pass{ background:#2563eb; }
.icon.fail{ background:#334155; }
.timeline .t-title{ margin:0; font-weight:700; }
.timeline .t-time{ color:#6b7b8c; white-space:nowrap; }

/* Detail table */
.detail{ width:100%; border-collapse: collapse; }
.detail th, .detail td{ text-align:left; padding:10px 12px; border:1px solid #e6edf5; }
.detail th{ background:#f8fafc; width:160px; color:#0f2540; }

/* Empty */
.empty{ text-align:center; color:#6b7b8c; }
.empty code{ background:#f1f5f9; padding:2px 6px; border-radius:6px; border:1px solid #e6edf5; }

/* Responsive */
@media (max-width: 720px){
  .lk-search{ flex-direction:column; align-items:stretch; }
  .right{ justify-content:flex-end; }
  .meta{ grid-template-columns:1fr; }

  .nav{
      font-size: 9px
  }
    .lk-tabs .tab {
        font-size: 9px;
        -webkit-text-size-adjust: none;
    }
}

/* Responsive */
@media (max-width: 420px) {

    .lk-tabs .tab {
        font-size: 9px;
        -webkit-text-size-adjust: none;
    }
    .nav {
        font-size: 9px;
        -webkit-text-size-adjust: none;
    }
}
/* =============================
   TRA CỨU ĐIỂM THI — NÂNG CẤP
============================= */

.lk-score {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

/* --- Khung nhập liệu --- */
.score-search .score-grid {
  display: grid;
  grid-template-columns: 2fr 2fr auto;
  gap: 14px;
  align-items: end;
}

.score-search label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #0f2540;
  font-weight: 600;
}

.score-search select,
.score-search input {
  border: 1.8px solid #c7d7e9;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  color: #0f2540;
  background: #fff;
  transition: all 0.25s ease;
}

.score-search select:hover,
.score-search input:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.25);
}

.score-search select:focus,
.score-search input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.25);
}

.score-search .act {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .score-search .score-grid { grid-template-columns: 1fr; }
  .score-search .act { justify-content: flex-start; }
}

/* --- Phần tiêu đề kết quả --- */
.score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.score-header h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #0f172a;
  font-weight: 700;
}

.score-header .muted {
  color: #475569;
  font-size: 0.95rem;
}

/* --- Hộp tổng điểm --- */
.sum {
  display: flex;
  gap: 12px;
}

.sum > div {
  background: linear-gradient(180deg, #ebf4ff 0%, #ffffff 90%);
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 10px 16px;
  text-align: center;
  min-width: 100px;
  box-shadow: 0 3px 8px rgba(37,99,235,0.12);
}

.sum span {
  display: block;
  font-size: 13px;
  color: #1e3a8a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sum strong {
  display: block;
  font-size: 22px;
  color: #0f172a;
  font-weight: 700;
}

/* --- Bảng điểm --- */
.score-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  background: #fff;
}

.score-table th,
.score-table td {
  padding: 13px 16px;
  border: 1px solid #e2e8f0;
  font-size: 1rem;
}

.score-table th {
  background: #f1f5ff;
  color: #0f2540;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid #bfdbfe;
}

.score-table td {
  color: #1e293b;
  font-weight: 500;
  background: #ffffff;
}

.score-table tr:nth-child(even) td {
  background: #f8fbff;
}

.score-table tr:hover td {
  background: #eaf3ff;
  transition: background 0.2s ease;
}

.score-table td.r {
  text-align: right;
  font-weight: 600;
  color: #0f172a;
}

/* Ẩn tuyệt đối mọi element có thuộc tính hidden */
[hidden] { display: none !important; }
/* =========================================================
   POLISH / OVERRIDE — làm rõ & nổi khối giao diện
   (dán ở CUỐI FILE sau các style cũ)
========================================================= */

/* Ẩn tuyệt đối các panel ko dùng */
[hidden] { display: none !important; }

/* ---------- Headline & sub ---------- */
.lk-head h1 {
  letter-spacing: .2px;
  color: #0f172a;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(15,23,42,.04);
}
.lk-head .sub { color: #475569; }

/* ---------- Tabs ---------- */
.lk-tabs { margin: 12px 0 18px; border-bottom: 2px solid #e2e8f0; }
.lk-tabs .tab {
  background: #f8fbff;
  color: #374151;
  border: 1px solid #dbe7f5;
  transition: all .2s ease;
}
.lk-tabs .tab:hover { background: #eef6ff; border-color: #bfdbfe; color: #0f2540; }
.lk-tabs .tab.is-active {
  background: #ffffff;
  border-color: #bfdbfe #bfdbfe #ffffff #bfdbfe; /* liền mép dưới */
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(37,99,235,.08);
}

/* ---------- Search bar (inputs + button) ---------- */
.lk-search {
  border: 1.5px solid #d6e3f2;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.input-wrap input {
  border: 1.8px solid #c7d7e9;
  color: #0f172a;
  background: #fff;
  transition: all .25s ease;
}
.input-wrap input:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,.22);
}
.input-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.25);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg,#1095ff,#2563eb);
  box-shadow: 0 6px 14px rgba(37,99,235,.25);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost{
  border: 1.4px dashed #cbd5e1;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.btn-ghost:hover{ border-color:#60a5fa; background:#f8fbff; }

/* ---------- Cards ---------- */
.card{
  border: 1.5px solid #dbe7f5;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.lk-summary h2{ color:#0b1220; font-weight: 800; }
.lk-summary .muted{ color:#475569; }

/* Badge mạnh màu hơn */
.badge{ letter-spacing:.2px; }
.badge.pending{ background:#334155; }
.badge.pass{ background:#2563eb; box-shadow:0 6px 16px rgba(37,99,235,.35); }

/* Meta list */
.meta dt{ color:#64748b; text-transform:uppercase; letter-spacing:.3px; font-size:.88rem; }
.meta dd{ color:#0f172a; font-weight:600; }

/* ---------- Timeline ---------- */
.timeline li{
  background: #f9fbff;
  border: 1.5px solid #dbe7f5;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.timeline li:hover{
  background:#eef6ff;
  border-color:#bfdbfe;
  box-shadow: 0 6px 14px rgba(37,99,235,.10);
}
.timeline .t-title{ color:#0f172a; }
.timeline .t-time{ color:#5b6b7c; }

/* ---------- Detail table ---------- */
.detail{
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.detail th, .detail td { border:1px solid #e2e8f0; }
.detail th{ background:#f1f5ff; color:#0f2540; font-weight:700; }
.detail tr:nth-child(even) td{ background:#f9fbff; }

/* ---------- Empty state ---------- */
.empty { color:#556372; }
.empty code{
  background:#ebf3ff;
  border:1px solid #bfdbfe;
  color:#0f2540;
}

/* ---------- Responsive fine-tune ---------- */
@media (max-width: 720px){
  .lk-tabs{ gap: 8px; }
  .lk-summary{ align-items:flex-start; }
}
/* ========== FONT FIX & HEADLINE POLISH ========== */

/* import font hiện đại, mượt, tối ưu tiếng Việt */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

body {
  font-family: "Be Vietnam Pro", "Inter", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* headline rõ nhưng không bị gãy nét */
.lk-head h1 {
  font-weight: 700;              /* giảm từ 800 → 700 */
  color: #0f172a;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.04);
  font-family: "Be Vietnam Pro", "Inter", sans-serif;
}

/* dòng mô tả nhẹ, dễ đọc */
.lk-head .sub {
  font-weight: 400;
  font-size: 1.05rem;
  color: #475569;
}
/* ========== INFO TAB (Kế hoạch/Kỳ thi/Mã hồ sơ) ========== */
.info-search .info-grid{
  display:grid;
  grid-template-columns: 2fr 2fr 1.2fr auto;
  gap:14px;
  align-items:end;
}

.info-search label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#0f2540;
  font-weight:600;
}

.info-search select,
.info-search input{
  border:1.8px solid #c7d7e9;
  border-radius:10px;
  padding:10px 14px;
  font:inherit;
  color:#0f172a;
  background:#fff;
  transition:all .25s ease;
}

.info-search select:hover,
.info-search input:hover{
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(96,165,250,.22);
}

.info-search select:focus,
.info-search input:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37,99,235,.25);
}

.info-search .act{ display:flex; justify-content:flex-end; }
@media (max-width: 960px){
  .info-search .info-grid{ grid-template-columns: 1fr 1fr; }
  .info-search .act{ grid-column: 1 / -1; justify-content:flex-start; }
}
@media (max-width: 560px){
  .info-search .info-grid{ grid-template-columns: 1fr; }
}

/* Nhất quán card */
.lk-info .card{ border:1.5px solid #dbe7f5; box-shadow:0 12px 28px rgba(15,23,42,.06); }
