body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  max-width: 500px;
  margin: 40px auto;
  padding: 24px 20px;
  background: #f7f8fa;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 26px;
  margin-bottom: 18px;
  color: #333;
  text-align: center;
  letter-spacing: 1px;
}

input[type="text"] {
  padding: 8px 12px;
  margin-right: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  transition: border 0.2s;
  background: #fff;
}

input[type="text"]:focus {
  border-color: #4f8cff;
}

button {
  padding: 8px 16px;
  background: #4f8cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  margin-left: 4px;
  
}

button:hover {
  background: #2563eb;
}

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

li {
  background: #fff;
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

li button {
  margin-left: 8px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  background: #e5e7eb;
  color: #333;
  
}

li button:hover {
  background: #f87171;
  color: #fff;
}

.completed-task {
  text-decoration: line-through;
  color:  rgb(68, 63, 63);
}


#deleteAllBtn {
    background: #f87171;
    color: #fff;
    margin-left: 8px;
}
#saveEditBtn {
    background: #4f8cff;
    color: #fff;
}
#cancelEditBtn {
    background: #e5e7eb;
    color: #333;
}

#errorMsg {
    color: #f87171;
    margin-top: 8px;
    font-size: 15px;
    display: none;
}


#editModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.18);
    z-index: 10;
    align-items: center;
    justify-content: center;
}
#editModal .modal-content {
    background: #fff;
    padding: 28px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#editModal h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}
#editInput {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}
#editModal .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}