* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.input-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #667eea;
}

button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 14px;
  font-weight: bold;
  transition: transform 0.2s, opacity 0.2s;
}

button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

ul {
  list-style: none;
  margin-top: 25px;
}

li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

li:hover {
  background: #f1f1f1;
}

.task-info {
  flex: 1;
}

.task-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.task-text.done {
  text-decoration: line-through;
  opacity: 0.6;
}

.task-date {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.delete-btn {
  background: #ff5252;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.delete-btn:hover {
  opacity: 0.85;
}
