/* ===== Test Container ===== */
.test {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* ===== Title ===== */
.test_title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* modern sans-serif */
  font-weight: 700;           /* bold for emphasis */
  letter-spacing: 1px;        /* slightly spaced letters */
  color: #1e3a8a;             /* rich blue */
}


/* ===== Grade + Date Row ===== */
.test_header_row {
  display: flex; /* place grade and date on one line */
  justify-content: space-between; /* left + right alignment */
  margin-bottom: 20px;
}

/* ===== Name Line ===== */
.test_name_line {
  display: flex;              /* align text and underline horizontally */
  align-items: center;        /* vertical centering */
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.test_name_line span {
  flex-grow: 1;               /* underline grows to full width */
  border-bottom: 1px solid #000;
  margin-left: 10px;          /* spacing after "Name:" */
  height: 0.9em;              /* makes the underline aligned with the text */
}

/* Test grade styling */
.test_grade {
  font-weight: 700;          /* bold text for emphasis */
  color: #1e3a8a;            /* rich blue */
  font-size: 1.1rem;
}

/* Test date styling */
.test_date {
  font-weight: 600;          /* slightly bold */
  color: #4f46e5;            /* purple-blue */
  font-size: 1rem;
  font-style: italic;        /* subtle emphasis */
}

/* Name input or label styling */
.test_name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;            /* dark gray for readability */
  letter-spacing: 0.5px;     /* slightly spaced letters for clarity */
}


/* ===== Table ===== */
/* Test table general styling */
.test_table {
  width: 100%;
  border-collapse: collapse; /* remove double borders */
  margin-bottom: 15px;
  text-align: center;        /* center horizontally */
}

/* Header and cell styling */
.test_table th,
.test_table td {
  border: 1px solid #000;
  padding: 10px;
  vertical-align: middle;    /* center vertically */
  text-align: center;        /* center horizontally */
}

/* Highlight the practice name cell (2nd row, 1st column) */
.test_table tr:nth-child(2) td:first-child {
  background-color: #d0d0d0;
  font-weight: 600; /* slightly bolder text */
}


/* ===== Ordered List of Tasks ===== */
/* Test tasks ordered list */
ol.test_tasks {
  counter-reset: task-counter; /* Reset custom counter */
  margin: 20px 0;
  padding-left: 0; /* Remove default padding */
}

/* Each task item */
ol.test_tasks li {
  counter-increment: task-counter; /* Increment counter for each li */
  list-style: none; /* Remove default numbers */
  margin: 15px 0; /* Vertical spacing between items */
  padding-left: 45px; /* Space for custom number */
  position: relative; /* For positioning custom number */
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Custom number styling */
ol.test_tasks li::before {
  content: counter(task-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Pretty number style */
  background-color: var(--test-number-bg, #f0f0f0); /* customizable */
  color: var(--test-number-color, #333);
  border-radius: 8px; /* rounded rectangle; change to 50% for circles */
}

