body {
  margin: 0;
  background: var(--color-background);
}

.endlesson-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.endlesson-tool {
  background: white;
  padding: 5vh;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 1400px;
  margin: 20px;
  transition: all 0.3s ease;
}

.endlesson-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  position: relative;
}

.current-class {
  font-size: min(4vw, 32px);
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
}

.end-time {
  font-size: min(3vw, 24px);
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
}

.countdown-timer {
  font-size: min(20vw, 280px);
  font-weight: 600;
  font-family: monospace;
  color: var(--color-primary);
  line-height: 1;
  padding: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.next-class {
  font-size: min(3vw, 24px);
  color: var(--color-text);
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

/* Ending soon state */
.ending-soon .countdown-timer {
  color: var(--color-warning, orange);
}

/* Ended state */
.ended .countdown-timer {
  color: var(--color-success, green);
}
