* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #000000;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items:center;
  padding: 20px;
}

.app {
  background: white;
  padding: 18px;
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  margin-top: 0;
}

.input-row {
  display: flex;
  gap: 8px;
}

input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: #4CAF50;
  color: white;
  border-radius: 6px;
  white-space: nowrap;
}

button:hover {
  opacity: 0.9;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #eee;
  word-break: break-word;
}

li span {
  flex: 1;
}

li.completed span {
  text-decoration: line-through;
  color: gray;
}

.delete {
  background: red;
  padding: 6px 10px;
  font-size: 12px;
}

/* ✅ Small screen tweaks */
@media (max-width: 480px) {
  .app {
    padding: 14px;
    border-radius: 0;
  }

  h2 {
    font-size: 20px;
  }

  button {
    padding: 10px;
  }
}
