body {
  font-family: Arial, sans-serif;
  background: #f4f7f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  width: 380px;
}

h1 {
  text-align: center;
  color: #333;
}

.input-box {
  display: flex;
  gap: 10px;
}

.input-box input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.input-box button {
  padding: 8px 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.input-box button:hover {
  background: #0056b3;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

ul li {
  background: #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul li.completed {
  text-decoration: line-through;
  color: gray;
  background: #d4edda;
}

button.complete {
  background: green;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 8px;
  margin-right: 5px;
  cursor: pointer;
}

button.delete {
  background: red;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
}

.task-time {
  font-size: 12px;
  color: gray;
  margin-left: 8px;
}

.clearAll {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.clearAll:hover {
  background: #c0392b;
}
