.tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fractions-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.circle-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  min-height: 280px;
  max-height: 50vh;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-mode .circle-wrapper {
  background: #1f2937;
  border-color: #374151;
}

.fraction-display {
  font-size: 4rem;
  font-weight: 700;
  color: #111827;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: color 0.3s ease;
}

.dark-mode .fraction-display {
  color: #f3f4f6;
}

.fraction-display .fraction {
  display: inline-block;
  text-align: center;
  line-height: 1.2;
}

.fraction-display .fraction-numerator {
  display: block;
  padding-bottom: 4px;
}

.fraction-display .fraction-line {
  display: block;
  border-top: 3px solid #111827;
  margin: 6px 0;
  width: 100%;
  transition: border-color 0.3s ease;
}

.dark-mode .fraction-display .fraction-line {
  border-color: #f3f4f6;
}

.fraction-display .fraction-denominator {
  display: block;
  padding-top: 4px;
}

#circleCanvas {
  max-width: 100%;
  max-height: 100%;
}

.fractions-input-wrapper {
  flex: 1;
  min-height: 120px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-mode .fractions-input-wrapper {
  border-color: #374151;
  background: #1f2937;
}

#fractionsEditor {
  width: 100%;
  height: 100%;
  border: none;
  resize: none;
  padding: 20px;
  background: transparent;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 2.25rem;
  line-height: 1.6;
  color: #111827;
  outline: none;
  transition: color 0.3s ease;
}

.dark-mode #fractionsEditor {
  color: #f3f4f6;
}

