* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Poppins', sans-serif;
}

body {
  background: linear-gradient(to right, #8360c3, #2ebf91);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.container {
  background: white;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.input-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: 0.3s;
}

input[type="text"]:focus {
  border-color: #2ebf91;
  outline: none;
}

button.add-btn {
  background: #2ebf91;
  color: white;
  border: none;
  padding: 12px 18px;
  margin-left: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

button.add-btn:hover {
  background: #26a77b;
}

ul.task-list {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

ul.task-list li {
  background: #f9f9f9;
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s ease;
}

ul.task-list li.completed {
  text-decoration: line-through;
  color: #999;
  background: #e0e0e0;
}

ul.task-list li:hover {
  transform: scale(1.01);
}

.task-buttons {
  display: flex;
  gap: 10px;
}

button.complete-btn,
button.delete-btn {
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.complete-btn {
  background: #28a745;
  color: white;
}

.complete-btn:hover {
  background: #1e7e34;
}

.delete-btn {
  background: #dc3545;
  color: white;
}

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

/* Scrollbar styling */
ul.task-list::-webkit-scrollbar {
  width: 6px;
}
ul.task-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}
