body {
  font-family: Arial;
  background: linear-gradient(to right, #74ebd5, #acb6e5);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  width: 350px;
 box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

h2 {
  text-align: center;
}

.input-section {
  display: flex;
  margin-bottom: 10px;
  width: 100%;
  align-items: center;
  gap: 10px;
}

input {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 25px;
  border: none;
  background: #eee;
  width: 100%;
  box-sizing: border-box;
}
input::placeholder {
  font-size: 15px;
  color: #888;
}
button {
  margin-left: 10px;
  border: none;
  cursor: pointer;
}
ul{
    padding: 0;
    margin: 0;
}
li {
  list-style: none;
  background: #eee;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
li span {
  flex: 1;            
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completed {
  text-decoration: line-through;
  color: gray;
}
.icons {
  display: flex;
  gap: 5px;
}
.icons button {
  margin-left: 5px;
  background: transparent;
  color: black;
  font-size: 14px;
}

#message {
  color: green;
  text-align: center;
  font-size: 14px;
}
.edit-btn:disabled {
  opacity: 0;
  cursor: not-allowed;
}
/* ONLY for add button */
.add-btn {
  background: #00c853;
  color: white;
  width: 50px;
  height: 50px;
  font-size: 24px;
  border-radius: 50%;
}

/* RESET other buttons */
.icons button {
  background: transparent;
  color: black;
  font-size: 14px;
  padding: 5px;
  width: auto;
  height: auto;
}