body {
  background: #e0e5ec;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: calc(100vh - 36px);
  padding-top: 20px;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}
body.dark-mode {
  background: #2c2c2c;
  color: #e0e5ec;
}

.container {
  background: #e0e5ec;
  box-shadow: 16px 16px 32px #b8bcbc, -16px -16px 32px #ffffff;
  border-radius: 40px;
  padding: 30px;
  text-align: center;
  width: 90%;
  max-width: 600px;
  position: relative;
  margin-bottom: 20px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode .container {
  background: #2c2c2c;
  box-shadow: 16px 16px 32px #1c1c1c, -16px -16px 32px #3c3c3c;
}

.animated-title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.animated-title span {
  opacity: 0;
  display: inline-block;
  animation: fadeIn 0.5s forwards;
}
.animated-title span:nth-child(1) { animation-delay: 0.1s; }
.animated-title span:nth-child(2) { animation-delay: 0.2s; }
.animated-title span:nth-child(3) { animation-delay: 0.3s; }
.animated-title span:nth-child(4) { animation-delay: 0.4s; }
.animated-title span:nth-child(5) { animation-delay: 0.5s; }
.animated-title span:nth-child(6) { animation-delay: 0.6s; }
.animated-title span:nth-child(7) { animation-delay: 0.7s; }
.animated-title span:nth-child(8) { animation-delay: 0.8s; }
.animated-title span:nth-child(9) { animation-delay: 0.9s; }
.animated-title span:nth-child(10) { animation-delay: 1s; }
.animated-title span:nth-child(11) { animation-delay: 1.1s; }
.animated-title span:nth-child(12) { animation-delay: 1.2s; }
.animated-title span:nth-child(13) { animation-delay: 1.3s; }
.animated-title span:nth-child(14) { animation-delay: 1.4s; }
.animated-title span:nth-child(15) { animation-delay: 1.5s; }
@keyframes fadeIn {
  to { opacity: 1; }
}

.continue-btn {
  padding: 10px 20px;
  font-size: 20px;
  border-radius: 20px;
  border: none;
  background: #e0e5ec;
  box-shadow: 8px 8px 16px #a6a8a8, -8px -8px 16px #ffffff;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.continue-btn:hover {
  transform: scale(1.1);
  background-color: #E6E6FA;
}
body.dark-mode .continue-btn {
  background: #2c2c2c;
  box-shadow: 8px 8px 16px #1c1c1c, -8px -8px 16px #3c3c3c;
  color: #e0e5ec;
}

h1, h2 {
  transition: color 0.3s ease;
}
body.dark-mode h1,
body.dark-mode h2 {
  color: #e0e5ec;
}
h1 {
  font-size: 32px;
}
h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

button {
  background: #e0e5ec;
  border: none;
  box-shadow: 8px 8px 16px #a6a8a8, -8px -8px 16px #ffffff;
  border-radius: 20px;
  padding: 15px 30px;
  cursor: pointer;
  font-size: 20px;
  margin: 15px 5px;
  transition: all 0.3s ease;
}
button:hover {
  box-shadow: inset 8px 8px 16px #b8bcbc, inset -8px -8px 16px #ffffff;
  transform: scale(1.1);
  background-color: #E6E6FA;
}
body.dark-mode button {
  background: #2c2c2c;
  box-shadow: 8px 8px 16px #1c1c1c, -8px -8px 16px #3c3c3c;
  color: #e0e5ec;
}
.small-btn {
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 50%;
}

.hidden {
  display: none;
}

#year-input {
  margin-top: 10px;
  padding: 8px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  box-shadow: inset 4px 4px 8px #b8bcbc, inset -4px -4px 8px #ffffff;
  text-align: center;
  width: 120px;
}
body.dark-mode #year-input {
  background: #2c2c2c;
  color: #e0e5ec;
  box-shadow: inset 4px 4px 8px #1c1c1c, inset -4px -4px 8px #3c3c3c;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  font-size: 18px;
  margin: 0;
}

.toggle-container {
  position: absolute;
  top: 20px;
  left: 20px;
}
.toggle-under-back {
  top: 60px;
}
.toggle-container input[type="checkbox"] {
  display: none;
}
.toggle-label {
  display: block;
  margin: 5px 0 0 10px;
  width: 50px;
  height: 25px;
  background: #e0e5ec;
  border-radius: 25px;
  position: relative;
  box-shadow: inset 4px 4px 8px #b8bcbc, inset -4px -4px 8px #ffffff;
  cursor: pointer;
  transition: background 0.3s ease;
}
body.dark-mode .toggle-label {
  background: #2c2c2c;
  box-shadow: inset 4px 4px 8px #1c1c1c, inset -4px -4px 8px #3c3c3c;
}
.toggle-label:after {
  content: "☀";
  color: black;
  font-size: 18px;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: all 0.3s ease;
}
input[type="checkbox"]:checked + .toggle-label:after {
  content: "☽";
  color: white;
  left: calc(100% - 21px);
}

.todo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
input[type="text"] {
  padding: 15px;
  width: 80%;
  margin-bottom: 20px;
  border-radius: 20px;
  border: none;
  box-shadow: inset 8px 8px 16px #b8bcbc, inset -8px -8px 16px #ffffff;
  text-align: center;
  font-size: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}
body.dark-mode input[type="text"] {
  background: #2c2c2c;
  color: #e0e5ec;
  box-shadow: inset 8px 8px 16px #1c1c1c, inset -8px -8px 16px #3c3c3c;
}


ul {
  list-style: none;
  padding: 0;
  width: 100%;
  margin: 0;
}
li {
  position: relative;
  display: flex;
  align-items: center;
  background: #e0e5ec;
  padding: 15px;
  margin: 10px 0;
  border-radius: 20px;
  box-shadow: 8px 8px 16px #b8bcbc, -8px -8px 16px #ffffff;
  font-size: 20px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode li {
  background: #2c2c2c;
  box-shadow: 8px 8px 16px #1c1c1c, -8px -8px 16px #3c3c3c;
}

.task-content {
  margin-left: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Task text */
.task-text {
  margin-right: 10px;
  transition: color 0.3s ease;
}
.task-text.completed {
  text-decoration: line-through;
  color: rgb(60, 151, 60);
}

/* Delete Task Button (extra-small x in the top-left corner) */
.delete-task-btn {
  position: absolute;
  top: 5px;
  left: 5px;
  border: none;
  color: transparent;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 5px;
}
.delete-task-btn:hover {
  color: #eb3737;
}

/* Task Action Buttons */
.check-btn {
  width: 40px;
  height: 40px;
  border-radius: 50px;
  background-color: #80ca82; /* green circle */
  color: #fff;
  font-size: 24px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  box-shadow: none;
  box-shadow: 8px 8px 16px #a6a8a8, -8px -8px 16px #ffffff;
}
.check-btn:hover {
  background-color: #45a049;
}
.edit-btn {
  width: 40px;
  height: 40px;
  background-color: #fc7e57; 
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 8px 8px 16px #a6a8a8, -8px -8px 16px #ffffff;
}
.edit-btn:hover {
  background-color: #fa6b3e;
}
.task-actions {
  display: flex;
  align-items: center;
}

.routine-container {
  padding: 15px;
  border-radius: 20px;
  background: #e0e5ec;
  box-shadow: 8px 8px 16px #b8bcbc, -8px -8px 16px #ffffff;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode .routine-container {
  background: #2c2c2c;
  box-shadow: 8px 8px 16px #1c1c1c, -8px -8px 16px #3c3c3c;
}
#routine-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.routine-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e0e5ec;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 8px 8px 16px #b8bcbc, -8px -8px 16px #ffffff;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode .routine-row {
  background: #2c2c2c;
  box-shadow: 8px 8px 16px #1c1c1c, -8px -8px 16px #3c3c3c;
}
.routine-row input {
  padding: 8px;
  border-radius: 10px;
  border: none;
  box-shadow: inset 4px 4px 8px #b8bcbc, inset -4px -4px 8px #ffffff;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}
body.dark-mode .routine-row input {
  background: #2c2c2c;
  color: #e0e5ec;
  box-shadow: inset 4px 4px 8px #1c1c1c, inset -4px -4px 8px #3c3c3c;
}
.routine-time {
  width: 40%;
  text-align: center;
}
.routine-text {
  width: 50%;
  text-align: center;
}
/* Delete Routine Button */
.delete-routine-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 16px;
  line-height: 25px;
  text-align: center;
  padding: 0;
  margin: 10px 15px 0 0;
}

/* Footer */
footer {
  font-size: 14px;
  color: #777;
  margin-top: 20px;
  text-align: center;
  transition: color 0.3s ease;
}
body.dark-mode footer {
  color: #bbb;
}

/* Month Buttons Done State */
.month-buttons .month-btn.done {
  background-color: #a8e6cf !important; /* Pastel green */
  color: #2c2c2c !important;
}
