body {
  background: #0d1117;
  color: #e6edf3;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 2rem;
  transition: background 0.3s, color 0.3s;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #58a6ff;
  text-shadow: 0 0 10px #58a6ff;
}

form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

form input, form button {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #161b22;
  color: inherit;
}

form button {
  cursor: pointer;
  background: #58a6ff;
  color: #fff;
  border: none;
  transition: background 0.3s;
}
form button:hover {
  background: #3b82f6;
}

.countdown {
  width: 100%;
  max-width: 800px;
  margin-bottom: 1rem;
}

p {
  background: #161b22;
  border: 1px solid #30363d;
  padding: 1rem 2rem;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(88, 166, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;

  width: 725px;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.6s forwards;
}

span {
  font-weight: bold;
}

#current-time {
  color: #ff7b72;
  text-shadow: 0 0 6px rgba(255, 123, 114, 0.6);
}

span.far {
  color: #3fb950;
  text-shadow: 0 0 6px rgba(63, 185, 80, 0.6);
}
span.medium {
  color: #f1fa8c;
  text-shadow: 0 0 6px rgba(241, 250, 140, 0.6);
}
span.soon {
  color: #ff5555;
  text-shadow: 0 0 8px rgba(255, 85, 85, 0.8);
  animation: pulse 1s infinite alternate;
}

.progress {
  background: #30363d;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.progress .bar {
  background: linear-gradient(90deg, #58a6ff, #3fb950);
  height: 100%;
  width: 0;
  transition: width 0.2s ease;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

#mode-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: inherit;
  font-size: 1.2rem;
  transition: background 0.3s, color 0.3s, border 0.3s;
}

body.light {
  background: #f5f5f5;
  color: #111;
}
body.light h1 {
  color: #0066cc;
  text-shadow: none;
}
body.light p {
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}
body.light .progress {
  background: #ddd;
}
body.light .progress .bar {
  background: linear-gradient(90deg, #0066cc, #008000);
}

.delete-btn {
  margin-left: 1rem;
  background: transparent;
  border: none;
  color: #ff5555;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.delete-btn:hover {
  transform: scale(1.2);
}

body.light form input,
body.light form button {
  background: #fff;
  border: 1px solid #ccc;
  color: #111;
}

body.light form button {
  background: #0066cc;
  color: #fff;
}
body.light form button:hover {
  background: #004999;
}

footer {
  margin-top: 60px;
  text-align: center;
}

.link-btn {
  background: none;
  color: #fff;
  border: none;
  font-size: 15px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}