/* ===========================
   GENERAL SITE STYLES
   =========================== */
body {
  font-family: Arial, sans-serif;
  background: #fdfdfd;
  color: #222;
  margin: 0;
  line-height: 1.5;
}

header {
  background: #0066cc;
  color: white;
  padding: 1em;
  text-align: center;
  position: relative;
}

header .back {
  color: white;
  text-decoration: none;
  position: absolute;
  left: 1em;
  top: 1em;
}

footer {
  text-align: center;
  padding: 1em;
  background: #f4f4f4;
  margin-top: 40px;
  font-size: 0.9em;
}

footer a {
  color: #0066cc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===========================
   HOMEPAGE QUIZ CARDS
   =========================== */
.quiz-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.quiz-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 260px;
  text-align: center;
}

.button {
  display: inline-block;
  background: #0066cc;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.button:hover {
  background: #004999;
}

.button.disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ===========================
   QUIZ PAGE STYLING
   =========================== */
.container {
  max-width: 800px;
  margin: 2em auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tracker + Reset */
.tracker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tracker {
  font-weight: bold;
  color: #0066cc;
  font-size: 1rem;
}

.reset-btn {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.reset-btn:hover {
  background-color: #c0392b;
}

.question-total {
  text-align: right;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

/* Question and options */
.option {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.option:hover {
  background: #f0f8ff;
}

.correct {
  background-color: #c8f7c5;
}

.incorrect {
  background-color: #f7c5c5;
}

/* Feedback & Rationale */
.feedback {
  font-weight: bold;
  margin-top: 10px;
}

.rationale {
  margin-top: 10px;
  font-style: italic;
  color: #333;
}

/* ===========================
   REPORT ISSUE / NEXT BUTTONS
   =========================== */
.report-wrapper {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.report-toggle {
  background-color: #777;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.report-toggle:hover {
  background-color: #555;
}

/* Report form (hidden by default) */
.report-section {
  margin-top: 10px;
  display: none;
}

#reportForm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

#reportForm input,
#reportForm textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

#reportForm textarea {
  resize: vertical;
  min-height: 60px;
}

#reportForm button {
  align-self: flex-start;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#reportForm button:hover {
  background-color: #004999;
}

.report-status {
  font-size: 0.9rem;
  color: #555;
}

/* ===========================
   NEXT QUESTION BUTTON
   =========================== */
#nextBtn {
  display: block;
  width: 100%;
  margin-top: 25px;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #0066cc;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#nextBtn:hover {
  background-color: #004999;
}

/* ===========================
   UTILITY / MISC
   =========================== */
.container input:focus,
.container textarea:focus,
.option:focus {
  outline: 2px solid #0066cc;
}

.hidden {
  display: none !important;
}

/* ===== Breadcrumbs ===== */
header .breadcrumb {
  max-width: 960px;
  margin: 0 auto 0.5rem auto;
  padding-top: 0.5rem;
  font-size: 0.9rem;
  color: #e6f0ff; /* light text on blue */
}

header .breadcrumb a {
  color: #e6f0ff;
  text-decoration: none;
}

header .breadcrumb a:hover {
  text-decoration: underline;
}

header .breadcrumb-separator {
  margin: 0 0.35rem;
  color: #c0ddff; /* softer separator */
}

/* ===== Header sub-navigation (e.g., "View all questions") ===== */
header .header-subnav {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
}

header .header-subnav-link {
  color: #e6f0ff;           /* light text against blue header */
  text-decoration: none;
}

header .header-subnav-link:hover {
  text-decoration: underline;
}
