* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

h1 {
  color: #333;
  margin-top: 20px;
  font-size: 2.2rem;
}

.container {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  gap: 10px;
}

#inp {
  width: 250px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
}

#inp:focus {
  border-color: #4cafef;
  box-shadow: 0 0 5px rgba(76, 175, 239, 0.5);
}

#add {
  background-color: #4cafef;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#add:hover {
  background-color: #399dd9;
}

#todoList {
  margin-top: 30px;
  text-align: center;
}

.todo-item {
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
  margin: 8px auto;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.todo-item button {
  background: crimson;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.todo-item button:hover {
  background: darkred;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  #inp {
    width: 90%;
  }

  #add {
    width: 90%;
  }
}
