.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem 0;
}

.time-display {
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  text-align: center;
  transition: color 0.3s;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.time-display.warning {
  color: var(--accent);
  animation: pulse-slow 2s infinite;
}

.time-display.danger {
  color: var(--danger);
  animation: pulse-fast 1s infinite;
}

@keyframes pulse-slow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes pulse-fast {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.timer-controls {
  display: flex;
  gap: 1.5rem;
}

.timer-settings {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.preset-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.manual-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Fullscreen handling */
:fullscreen .main-content {
  padding: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
}

:fullscreen app-header,
:fullscreen app-footer,
:fullscreen .tool-header {
  display: none !important;
}

:fullscreen .timer-settings {
  display: none !important;
}

:fullscreen .time-display {
  font-size: 25vw;
}

@media (max-width: 600px) {
  .time-display {
    font-size: 6rem;
  }
}