body {
  background: linear-gradient(to right, #667eea, #764ba2);
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  padding-top: 60px;
  color: #fff;
}

.todo-container {
  background-color: white;
  color: #333;
  border-radius: 12px;
  padding: 25px;
  width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

input[type="text"],
input[type="datetime-local"] {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

button {
  padding: 8px 12px;
  border: none;
  background-color: #4f46e5;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #4338ca;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background-color: #f3f4f6;
  border-left: 6px solid #a5b4fc;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

li.overdue {
  border-left-color: #ef4444;
  background-color: #fee2e2;
}

li.soon {
  border-left-color: #facc15;
  background-color: #fef9c3;
}

.task-content {
  display: flex;
  flex-direction: column;
}

.task-time {
  font-size: 0.85em;
  color: #666;
}

.completed {
  text-decoration: line-through;
  color: #9ca3af;
}

.actions button {
  background: none;
  border: none;
  color: #dc2626;
  font-weight: bold;
  cursor: pointer;
}
.task-item {
  background: #f3f4f6;
  margin: 10px 0;
  padding: 10px;
  border-left: 5px solid #a5b4fc;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overdue {
  border-left-color: red;
  background: #fee2e2;
}

.soon {
  border-left-color: orange;
  background: #fef9c3;
}

.completed-text {
  text-decoration: line-through;
  color: green;
}

.actions button {
  margin-left: 5px;
  cursor: pointer;
}

