/* General Body */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #6dd5ed, #2193b0);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* Container */
.container {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 15px;
  width: 420px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  transition: transform 0.3s ease-in-out;
}

.container:hover {
  transform: translateY(-5px);
}

/* Title */
h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  letter-spacing: 1px;
}

/* Input Section */
.input-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#todo-input {
  flex: 1;
  padding: 10px;
  border: 2px solid #2193b0;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
}

#todo-input:focus {
  border-color: #6dd5ed;
  box-shadow: 0 0 5px rgba(109, 213, 237, 0.6);
}

/* Buttons */
button {
  padding: 10px 14px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

#add-button {
  background: #4caf50;
}

#add-button:hover {
  background: #45a049;
}

#delete-all {
  background: #e63946;
}

#delete-all:hover {
  background: #c53030;
}

/* To-Do List */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
}

li:hover {
  background: #eaf6f9;
}

/* Completed Task */
li.completed span {
  text-decoration: line-through;
  color: gray;
}

/* Actions */
.todo-actions button {
  margin-left: 6px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.edit-btn {
  background: #ff9800;
}

.edit-btn:hover {
  background: #e68a00;
}

.delete-btn {
  background: #f44336;
}

.delete-btn:hover {
  background: #d32f2f;
}
