/* Otestuj sa – page-specific styles
   Goal: keep the SAME visual style as the main site.
   Global look (body/header/nav/container/buttons) is defined in the page HTML (same as index/o-mne).
   This file only styles the test UI components.
*/

.hidden{ display:none; }

.test-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.timer{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:baseline;
}

.timer-label{ font-weight: bold; }
.timer-hint{ opacity: 0.75; font-size: 0.95em; }

.progress{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e6f0ff;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar{
  height: 100%;
  width: 0%;
  background: #0073e6;
  transition: width 0.25s ease;
}

/* Question cards */
.q-card{
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  background: #fff;
}

.q-head{ display:flex; justify-content:space-between; gap:10px; }
.q-title{ font-weight: bold; margin: 0 0 6px; }
.q-meta{ opacity: 0.85; font-size: 0.95em; }
.q-year{ opacity: 0.75; font-size: 0.92em; margin-top: 2px; }
.q-prompt{ margin: 10px 0 12px; }

.pill{
  display:inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: bold;
  border: 1px solid #e5eaf2;
}
.pill.mat{ background: #e6f0ff; }
.pill.sjl{ background: #eefbf1; }

.choices{ display:grid; gap:8px; }

.choice{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  cursor: pointer;
}
.choice:hover{ border-color: #cbd6e2; background: #f7faff; }

/* Override global input padding for radios */
.choice input[type="radio"]{
  padding: 0;
  border: none;
  border-radius: 0;
  width: auto;
  min-width: 0;
  height: auto;
  margin-top: 3px;
}
.choice input[type="radio"]:focus{
  outline: 2px solid rgba(0,115,230,0.35);
  outline-offset: 2px;
}

.submit-row{ display:flex; justify-content:flex-end; gap:10px; margin-top: 10px; flex-wrap:wrap; }

/* Results */
.results-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-top: 14px; }
@media (max-width: 900px){ .results-grid{ grid-template-columns:1fr; } }

.result-card{ border: 1px solid #e5eaf2; border-radius: 12px; padding: 14px; background: #fff; }
.result-title{ font-weight: bold; }
.result-score{ font-weight: bold; font-size: 1.25rem; margin-top: 6px; }
.result-sub{ opacity: 0.85; margin-top: 6px; }

.topic-breakdown{ display:grid; grid-template-columns: repeat(2, 1fr); gap:10px; }
@media (max-width: 900px){ .topic-breakdown{ grid-template-columns:1fr; } }

.topic-card{ border:1px solid #e5eaf2; border-radius:12px; padding:12px; background:#fff; }
.topic-title{ font-weight: bold; }
.topic-line{ margin-top: 6px; opacity: 0.85; }

.tag-ok{ color:#0a7a2f; font-weight:bold; }
.tag-warn{ color:#b45309; font-weight:bold; }
.tag-bad{ color:#b91c1c; font-weight:bold; }

.answer-review{ display:grid; gap:10px; margin-top: 10px; }
.review-card{ border:1px solid #e5eaf2; border-radius:12px; padding:12px; background:#fff; }
.review-head{ display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.review-q{ font-weight: bold; }
.review-badge{ font-weight: bold; }
.review-badge.ok{ color:#0a7a2f; }
.review-badge.bad{ color:#b91c1c; }
.review-expl{ margin-top: 8px; }

.report-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }

button.secondary{
  background: #ffffff;
  color: #005bb5;
  border: 1px solid #cbd6e2;
}
button.secondary:hover{ background: #f7faff; }

.consult-box{ margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5eaf2; }
