/* Base styling */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f7fa;
  color: #333;
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 12px;
}

/* Header */
h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}

/* Form styling */
form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #3498db;
  outline: none;
}

button {
  padding: 12px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #2980b9;
}

/* Task list */
ul {
  padding: 0;
}

li {
  list-style: none;
  background: white;
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

li:hover {
  transform: scale(1.02);
}

li button {
  background: #f7f7f7;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

li button:hover {
  background: #c0392b;
}
