body {
  font-family: Arial;
  background: #ffc8f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Container */
.container {
  width: 95%;
  max-width: 700px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  color: black;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
}

.input-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #ff4d6d;
  color: white;
}

button:hover {
  opacity: 0.8;
}

ul {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-top: 10px;
  background: #fff0f5;
  border-radius: 10px;
  transition: 0.3s;
}

li:hover {
  transform: scale(1.02);
}

.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Suggestion */
#suggestion {
  margin-top: 15px;
  padding: 10px;
  background: #ffe5ec;
  border-radius: 8px;
  font-size: 14px;
}

/* ✅ FIXED PROGRESS BAR */
.progress {
  width: 100%;
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  margin-top: 15px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4d6d, #ff85a2);
  color: white;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  transition: width 0.4s ease;
}

/* Dark Mode */
.dark {
  background: #121212;
}

.toggle-btn {
  position: absolute;
  top: 20px;
  right: 20px;
}
/* ✅ FIX TASK LAYOUT */
li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-left span {
  font-size: 16px;
}
.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-icon {
  font-size: 18px;
  cursor: pointer;
  width: 25px;
  text-align: center;
  transition: 0.2s;
  color: #ff4d6d;
}

.task-icon:hover {
  transform: scale(1.2);
}