/* General Body Style */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px;
  margin: 0;
}

/* Container Box */
.container {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  width: 350px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

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

/* Heading */
.container h2 {
  margin-bottom: 20px;
  color: #444;
  font-size: 24px;
  font-weight: bold;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* Input Field */
input {
  width: 65%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
}

input:focus {
  border-color: #667eea;
  box-shadow: 0 0 8px rgba(102,126,234,0.4);
}

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

#addBtn {
  background: #28a745;
  color: white;
}

#addBtn:hover {
  background: #218838;
}

#editBtn {
  background: #007bff;
  color: white;
}

#editBtn:hover {
  background: #0069d9;
}

/* Todo List */
ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

li {
  padding: 12px;
  background: #f9f9f9;
  margin: 8px 0;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

li:hover {
  background: #eef1f7;
}

/* Task Text */
li span {
  flex: 1;
  text-align: left;
  font-size: 15px;
  color: #333;
}

/* Action Buttons inside list */
.actions button {
  padding: 6px 10px;
  font-size: 14px;
  margin-left: 5px;
  border-radius: 6px;
}

.actions button:first-child {
  background: #ffc107;
  color: #222;
}

.actions button:first-child:hover {
  background: #e0a800;
}

.actions button:last-child {
  background: #dc3545;
  color: white;
}

.actions button:last-child:hover {
  background: #c82333;
}
