/* =========================
   EXTERNAL CSS – Todo List
========================= */

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

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1e3a5f, #2563eb, #1e3a5f);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.25);
}

h1 {
  text-align: center;
  color: #1e3a5f;
  font-size: 1.6rem;
  font-weight: 800;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #f0f6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #1e3a5f;
  transition: background 0.2s;
}

li.completed {
  text-decoration: line-through;
  color: #94a3b8;
  background: #f8faff;
}

li button.deleteBtn {
  background: #ef4444;
  border: none;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

li button.deleteBtn:hover {
  background: #dc2626;
}

@media (max-width: 400px) {
  .input-section {
    flex-direction: column;
  }
  .input-section input,
  .input-section button {
    width: 100%;
  }
}