body {
  font-family: system-ui, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  margin: 0;
  padding: 0;
}

h1 {
  margin-top: 0;
  color: #f8fafc;
}

/* TAB BUTTONS */
.tabs {
  display: flex;
  background: #1e293b;
}

.tab-button {
  flex: 1;
  padding: 12px;
  background: #1e293b;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 1rem;
}

.tab-button.active {
  background: #334155;
  color: #fff;
}

/* TAB CONTENT */
.tab {
  display: none;
  padding: 20px;
}

.tab.active {
  display: block;
}

/* FORM ELEMENTS */
.controls, .answer-row, .checkboxes {
  margin-bottom: 16px;
}

select, input, button {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #e2e8f0;
}

button {
  background: #2563eb;
  border-color: #2563eb;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

/* PROBLEM BOXES — FIXED */
#problem-text,
#timed-problem {
  padding: 16px;
  border: 1px solid #475569;
  border-radius: 8px;
  background: #1e293b;
  margin-bottom: 12px;
  min-height: 60px;
}

/* FEEDBACK COLORS */
#feedback.correct, #timed-feedback.correct {
  color: #4ade80;
}

#feedback.incorrect, #timed-feedback.incorrect {
  color: #f87171;
}

/* TEST GENERATOR LAYOUT */
.testgen-controls {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#testgen-container {
  background: #0f172a;
  padding: 16px;
  border-radius: 8px;
}

/* UIL pages */
.uil-page {
  background: #ffffff;
  color: #000000;
  padding: 16px 24px;
  margin-bottom: 24px;
  border: 1px solid #cbd5e1;
  page-break-after: always;
}

.uil-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.uil-subheader {
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.uil-stop {
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.uil-columns {
  display: flex;
  gap: 32px;
}

.uil-column {
  flex: 1;
  font-size: 0.95rem;
}

.uil-problem {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.uil-problem-number {
  font-weight: 600;
  margin-right: 6px;
}

/* Answer key */
.answer-key {
  margin-top: 16px;
  background: #1e293b;
  color: #e2e8f0;
  padding: 12px 16px;
  border-radius: 8px;
}

.answer-key-item {
  margin-bottom: 4px;
}

.hidden {
  display: none;
}

/* PRINT STYLES */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .tabs,
  .tab-button,
  .controls,
  .answer-row,
  .checkboxes,
  #start-timed,
  #timed-submit,
  #new-problem,
  #check-answer,
  .testgen-controls {
    display: none !important;
  }

  .tab {
    display: none !important;
  }

  #testgen {
    display: block !important;
  }

  #testgen-container {
    background: #ffffff !important;
    padding: 0;
  }

  .uil-page {
    border: none;
    margin: 0;
    page-break-after: always;
    font-family: "Times New Roman", serif;
    font-size: 12pt;
  }

  .answer-key {
    page-break-before: always;
    background: #ffffff;
    color: #000000;
    border: none;
  }
}


#timer {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* INTRO TAB STYLES */
.intro-tab {
  text-align: center;
  padding: 40px 20px;
}

.intro-title {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #f8fafc;
}

.intro-subtitle {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.highlight {
  color: #fbbf24;
  font-weight: bold;
}

.intro-school {
  font-size: 1.2rem;
  margin-bottom: 25px;
  line-height: 1.4;
  color: #e2e8f0;
}

.intro-divider {
  width: 60%;
  height: 3px;
  background: #fbbf24;
  margin: 20px auto;
  border-radius: 2px;
}

.intro-text {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 15px auto;
  line-height: 1.6;
  color: #cbd5e1;
}

.uil-blank {
  flex: 1 1 auto;
  border-bottom: 1px solid #000;
  margin-left: 8px;
}

.uil-problem-text {
  flex: 0 1 auto;
  margin-right: 8px;
}

.uil-page, .uil-page * {
  font-family: "Times New Roman", serif !important;
}




