* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #1f2937; /* Default to dark mode to prevent flash */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.status {
  text-align: center;
  font-size: 14px;
  color: #9ca3af; /* Default to dark mode colors */
  font-weight: 500;
  margin-bottom: 24px;
  max-width: 480px;
  width: 100%;
  padding: 0 48px;
}

.container {
  padding: 48px;
  max-width: 480px;
  width: 100%;
}

.countdown {
  text-align: center;
  margin-bottom: 48px;
}

.countdown-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9ca3af; /* Default to dark mode colors */
  font-weight: 500;
  margin-bottom: 12px;
}

.countdown-time {
  font-size: 72px;
  font-weight: 300;
  color: #f3f4f6; /* Default to dark mode colors */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 16px;
  color: #9ca3af; /* Default to dark mode colors */
  font-weight: 400;
  margin-left: 4px;
}

.progress-section {
  margin-bottom: 48px;
}

.progress-bar-container {
  background: #4b5563; /* Default to dark mode colors */
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  background: #9ca3af; /* Default to dark mode colors */
  height: 100%;
  width: 67%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-percentage {
  text-align: center;
  font-size: 14px;
  color: #9ca3af; /* Default to dark mode colors */
  font-weight: 500;
}

.last-light {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #4b5563; /* Default to dark mode colors */
}

.last-light-label {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
  font-weight: 500;
}

.last-light-time {
  font-size: 32px;
  font-weight: 400;
  color: #f3f4f6; /* Default to dark mode colors */
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .status {
      padding: 0 24px;
  }

  .container {
      padding: 32px 24px;
  }

  .countdown-time {
      font-size: 56px;
  }

  .last-light-time {
      font-size: 28px;
  }
}

/* Day mode styles (light background with dark text) */
body.day {
  background: #fff;
}

.day .status {
  color: #6b7280;
}

.day .countdown-label {
  color: #6b7280;
}

.day .countdown-time {
  color: #1f2937;
}

.day .countdown-unit {
  color: #6b7280;
}

.day .progress-bar-container {
  background: #f3f4f6;
}

.day .progress-bar-fill {
  background: #4b5563;
}

.day .progress-percentage {
  color: #6b7280;
}

.day .last-light {
  border-top: 1px solid #e5e7eb;
}

.day .last-light-label {
  color: #9ca3af;
}

.day .last-light-time {
  color: #1f2937;
}
