/* Main Styles */
@import url('themes.css');
@import url('components.css');

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

/* Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Header */
.app-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.75rem;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--accent-light);
  color: var(--accent-primary);
}

/* Header Stats */
.header-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
}

.stat-badge.xp {
  background: var(--xp-bg);
  color: var(--xp-color);
}

.stat-badge.level {
  background: var(--level-bg);
  color: var(--level-color);
}

.stat-badge.streak {
  background: var(--error-light);
  color: var(--error);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--accent-light);
  color: var(--accent-primary);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Curriculum Map */
.curriculum-section {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Daily Progress */
.daily-progress {
  text-align: center;
}

.xp-circle {
  width: 120px;
  height: 120px;
  margin: 1rem auto;
  position: relative;
}

.xp-circle svg {
  transform: rotate(-90deg);
}

.xp-circle-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 8;
}

.xp-circle-progress {
  fill: none;
  stroke: var(--xp-color);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-normal);
}

.xp-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.xp-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--xp-color);
}

.xp-goal {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Reviews Due */
.reviews-due {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.review-item-title {
  font-weight: 500;
  font-size: 0.875rem;
}

.review-item-count {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--warning-light);
  color: var(--warning);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}

/* Stats Summary */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Lesson Page */
.lesson-container {
  max-width: 800px;
  margin: 0 auto;
}

.lesson-header {
  margin-bottom: 2rem;
}

.lesson-breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.lesson-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.lesson-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.lesson-content {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.lesson-section {
  margin-bottom: 2rem;
}

.lesson-section:last-child {
  margin-bottom: 0;
}

.lesson-section h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-light);
}

/* Math Display */
.math-block {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  overflow-x: auto;
  text-align: center;
}

.math-inline {
  padding: 0.125rem 0.25rem;
}

/* Worked Example */
.worked-example {
  background: var(--info-light);
  border-left: 4px solid var(--info);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 1rem 0;
}

.worked-example-title {
  font-weight: 600;
  color: var(--info);
  margin-bottom: 0.5rem;
}

.step {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--info);
}

/* Practice/Exercise Page */
.exercise-container {
  max-width: 700px;
  margin: 0 auto;
}

.exercise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.exercise-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-dots {
  display: flex;
  gap: 0.375rem;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
}

.progress-dot.correct {
  background: var(--success);
}

.progress-dot.incorrect {
  background: var(--error);
}

.progress-dot.current {
  background: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.exercise-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.exercise-question {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.exercise-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exercise-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.hint-btn {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hint-btn:hover {
  color: var(--accent-primary);
}

.hint-cost {
  font-size: 0.75rem;
  color: var(--xp-color);
}

/* Feedback */
.feedback {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  display: none;
}

.feedback.show {
  display: block;
}

.feedback.correct {
  background: var(--success-light);
  border: 1px solid var(--success);
  color: var(--success);
}

.feedback.incorrect {
  background: var(--error-light);
  border: 1px solid var(--error);
  color: var(--error);
}

.feedback-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Input Types */
.numeric-input {
  width: 100%;
  max-width: 200px;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.numeric-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.expression-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-family: 'Courier New', monospace;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.expression-preview {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  min-height: 3rem;
}

/* Progress Page */
.progress-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.progress-stat-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.progress-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.progress-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Mastery Chart */
.mastery-chart {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.mastery-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mastery-bar-label {
  width: 150px;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mastery-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.mastery-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width var(--transition-normal);
}

.mastery-bar-value {
  width: 50px;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .app-header {
    padding: 0.75rem 1rem;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .nav-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .header-stats {
    gap: 0.5rem;
  }

  .stat-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .lesson-content {
    padding: 1.25rem;
  }

  .exercise-card {
    padding: 1.25rem;
  }
}

/* ==========================================
   DIAGNOSTIC ASSESSMENT STYLES
   ========================================== */

.diagnostic-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.diagnostic-container.hidden {
  display: none;
}

/* Welcome Screen */
.diagnostic-welcome-content {
  text-align: center;
  padding: 2rem;
}

.diagnostic-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.diagnostic-welcome-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.diagnostic-welcome-content > p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.diagnostic-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  max-width: 200px;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.info-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Assessment Screen */
.diagnostic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.diagnostic-progress {
  flex: 1;
  min-width: 200px;
}

.diagnostic-progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.diagnostic-progress-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

#progress-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.diagnostic-category {
  padding: 0.5rem 1rem;
  background: var(--accent-light);
  color: var(--accent-primary);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
}

.diagnostic-question-container {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.question-content {
  margin-bottom: 1.5rem;
}

.question-text {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  text-align: left;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-light);
}

.option-btn.selected {
  background: var(--accent-light);
  border-color: var(--accent-primary);
}

.option-btn.correct {
  background: var(--success-light);
  border-color: var(--success);
}

.option-btn.incorrect {
  background: var(--error-light);
  border-color: var(--error);
}

.option-btn:disabled {
  cursor: default;
}

.diagnostic-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.feedback-container {
  margin-top: 1rem;
}

.feedback-container.hidden {
  display: none;
}

.feedback-container .feedback {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
}

.feedback-container .feedback.correct {
  background: var(--success-light);
}

.feedback-container .feedback.incorrect {
  background: var(--error-light);
}

.feedback-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feedback.correct .feedback-icon {
  color: var(--success);
}

.feedback.incorrect .feedback-icon {
  color: var(--error);
}

.feedback-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

.feedback.correct .feedback-text strong {
  color: var(--success);
}

.feedback.incorrect .feedback-text strong {
  color: var(--error);
}

.feedback-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Results Screen */
.results-content {
  text-align: center;
}

.results-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.results-content h1 {
  margin-bottom: 2rem;
}

.results-summary {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.result-stat {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 150px;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.result-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.results-breakdown {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.results-breakdown h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.breakdown-item {
  margin-bottom: 1.25rem;
}

.breakdown-item:last-child {
  margin-bottom: 0;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.breakdown-category {
  font-weight: 600;
}

.breakdown-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

.breakdown-status.strong {
  background: var(--success-light);
  color: var(--success);
}

.breakdown-status.developing {
  background: var(--warning-light);
  color: var(--warning);
}

.breakdown-status.needs-work {
  background: var(--error-light);
  color: var(--error);
}

.breakdown-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.breakdown-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.breakdown-score {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.results-recommendation {
  margin-bottom: 2rem;
}

.recommendation-box {
  background: var(--info-light);
  border-left: 4px solid var(--info);
  padding: 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  text-align: left;
}

.recommendation-box h3 {
  color: var(--info);
  margin-bottom: 0.5rem;
}

.recommendation-box p {
  margin: 0;
  color: var(--text-secondary);
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Diagnostic Banner on Dashboard */
.diagnostic-banner {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--info-light) 100%);
  border: 2px solid var(--accent-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.diagnostic-content {
  text-align: center;
}

.diagnostic-content h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.diagnostic-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.diagnostic-content .btn {
  margin: 0 0.5rem;
}

/* Recommendations on Dashboard */
.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.recommendation-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.rec-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.rec-info {
  flex: 1;
}

.rec-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.rec-reason {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.weak-areas-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--warning-light);
  color: var(--warning);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Adaptive Recommendation after session */
.adaptive-recommendation {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.adaptive-recommendation-content {
  background: var(--info-light);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.adaptive-recommendation-content p {
  margin: 0;
  color: var(--text-secondary);
}

/* Streak Display */
.streak-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.streak-icon {
  font-size: 1.5rem;
}

.streak-count {
  font-weight: 700;
  color: var(--text-primary);
}

.streak-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Key Concept Box */
.key-concept {
  background: var(--success-light);
  border-left: 4px solid var(--success);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 1rem 0;
}

.key-concept h4 {
  color: var(--success);
  margin-bottom: 0.5rem;
}

/* Real World Box */
.real-world-box {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: 1rem 0;
}

.real-world-box h4 {
  color: var(--warning);
  margin-bottom: 0.5rem;
}

/* Times Table Display */
.times-table {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 0.75rem 0;
}

.times-table h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.times-table p {
  margin: 0.25rem 0;
}

.times-table em {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Place Value Chart */
.place-value-chart {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.place-value-chart th,
.place-value-chart td {
  padding: 0.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.place-value-chart th {
  background: var(--accent-light);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Fraction Visual */
.fraction-visual {
  margin: 1rem 0;
  text-align: center;
}

.fraction-bar {
  display: inline-flex;
  gap: 0.25rem;
  font-size: 1.5rem;
}

.fraction-bar .filled {
  color: var(--accent-primary);
}

.fraction-bar .empty {
  color: var(--text-muted);
}

/* Fact Family Box */
.fact-family {
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

.fact-family p {
  margin: 0.25rem 0;
}

/* Visual Aid Box */
.visual-aid {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  text-align: center;
}

.visual-aid pre {
  font-family: monospace;
  line-height: 1.4;
  text-align: center;
}
