/* select.css — test-selection landing page */
.select-header {
  background: var(--ielts-navy);
  color: var(--on-dark-text);
}
.select-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.select-brand { font-size: 20px; font-weight: 700; }
.select-brand span { font-weight: 400; opacity: 0.85; }
.select-brand .unio-logo-word { font-weight: 700; opacity: 1; font-size: 20px; }
.select-nav .btn { background: transparent; color: var(--on-dark-text); border-color: rgba(255,255,255,0.4); }
.select-nav .btn:hover { background: rgba(255,255,255,0.1); }

.select-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.candidate-picker {
  background: var(--ielts-white);
  border: 1px solid var(--ielts-border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.candidate-picker-text { display: flex; flex-direction: column; gap: 2px; max-width: 420px; }
.candidate-picker-text strong { font-size: 15px; }
.candidate-picker-note { font-size: 12px; color: var(--ielts-text-muted); }
.candidate-picker-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.candidate-picker select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--ielts-border);
  font-size: 14px;
  min-width: 160px;
  background: var(--ielts-white);
  color: var(--ielts-text);
}
.candidate-confirm-msg { font-size: 12.5px; color: var(--ielts-correct); font-weight: 600; width: 100%; }
.candidate-confirm-msg.hidden { display: none; }

@media (max-width: 600px) {
  .candidate-picker { flex-direction: column; align-items: stretch; }
  .candidate-picker-controls { width: 100%; }
  .candidate-picker-controls select { flex: 1; }
}

.loading-text { color: var(--ielts-text-muted); }

.book-block { margin-bottom: 32px; }
.book-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.book-desc { color: var(--ielts-text-muted); font-size: 13px; margin: 0 0 14px; }

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.test-grid-4col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .test-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
.test-card {
  position: relative;
  background: var(--ielts-white);
  border: 1px solid var(--ielts-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.test-band-result {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--unio-yellow, #F4BE2A);
  color: var(--unio-dark, #1b1b24);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
}
.test-band-result strong { font-weight: 800; }
.test-card h3 { margin: 0; font-size: 16px; padding-right: 64px; }
.test-meta { font-size: 12.5px; color: var(--ielts-text-muted); }
.test-meta-tag { font-size: 12px; color: var(--unio-blue); font-weight: 600; margin-top: 2px; }
.test-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.test-actions .btn { flex: 1; text-align: center; text-decoration: none; font-size: 13px; padding: 8px 10px; }

.writing-test-block { margin-bottom: 20px; }
.writing-test-title { font-size: 14.5px; font-weight: 700; margin: 0 0 8px; color: var(--ielts-text-muted); }
.test-card-soon { opacity: 0.65; }
.test-card-soon h3 { padding-right: 0; }

@media (max-width: 480px) {
  .select-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .test-grid, .test-grid-4col { grid-template-columns: 1fr; }
}

/* "Xem lại" attempt-history modal (select.js / reading-select.js) */
.history-table-wrap { overflow-x: auto; margin: 4px 0 0; }
.history-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.history-table th, .history-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--ielts-border); }
.history-table th { color: var(--ielts-text-muted); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.02em; }
.history-table td.history-cell-correct { color: var(--ielts-correct); font-weight: 700; }
.history-table td.history-cell-wrong { color: var(--ielts-incorrect); font-weight: 700; }
.history-table .btn { padding: 5px 10px; font-size: 12px; text-decoration: none; }
