body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background: #181c1f;
  color: #f0f0f0;
}

body.light-mode {
  background: #f0f0f0;
  color: #222;
}

.container {
  margin-top: 60px;
}

h1 {
  text-align: center;
  margin-bottom: 16px;
  color: #c62828;
  font-size: 2.5em;
}

body.dark h1 {
  color: #ef5350;
}

.zodiac-banner {
  text-align: center;
  margin-bottom: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 100%);
  border-radius: 12px;
  color: #5d4037;
  font-weight: 700;
  font-size: 1.2em;
}

body.dark .zodiac-banner {
  background: linear-gradient(135deg, #8b6914 0%, #b8860b 100%);
  color: #fff8e1;
}

.countdown-section {
  background: linear-gradient(135deg, #b71c1c 0%, #c62828 50%, #d32f2f 100%);
  border-radius: 20px;
  padding: 40px 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(183, 28, 28, 0.35);
}

body.dark .countdown-section {
  background: linear-gradient(135deg, #8b0000 0%, #b71c1c 100%);
}

.countdown-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.time-value {
  font-size: 3.5em;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
  margin-bottom: 8px;
}

.time-label {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.time-separator {
  font-size: 2.5em;
  color: #fff;
  font-weight: bold;
  margin: 0 5px;
  opacity: 0.9;
}

.section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark .section {
  background: #23272a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #c62828;
  font-size: 1.3em;
}

body.dark h2 {
  color: #ef5350;
}

.setting-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

body.dark label {
  color: #f0f0f0;
}

select {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  background: white;
  color: #222;
}

body.dark select {
  background: #2c2f33;
  border-color: #444;
  color: #f0f0f0;
}

select:focus {
  outline: none;
  border-color: #c62828;
}

body.dark select:focus {
  border-color: #ef5350;
}

.update-btn {
  width: 100%;
  padding: 12px;
  background: #c62828;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 10px;
}

.update-btn:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

.presets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preset-btn {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  background: #d4af37;
  color: #5d4037;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.preset-btn:hover {
  background: #c9a227;
  transform: translateY(-2px);
}

body.dark .preset-btn {
  color: #1a1a1a;
}

.message-section {
  background: #e8f5e9;
  border: 2px solid #4caf50;
  text-align: center;
}

body.dark .message-section {
  background: #1b5e20;
  border-color: #66bb6a;
}

.message-section h2 {
  color: #2e7d32;
  font-size: 2em;
}

.message-section p {
  color: #1b5e20;
  font-size: 1.2em;
  margin: 0;
}

body.dark .message-section p {
  color: #a5d6a7;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .time-value {
    font-size: 2.5em;
  }
  .time-separator {
    font-size: 1.8em;
  }
  .time-unit {
    min-width: 60px;
  }
  .presets {
    flex-direction: column;
  }
  .preset-btn {
    width: 100%;
  }
}
