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

/* Body Styling */
body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Input */
#todoInput {
  width: 260px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  margin-bottom: 10px;
  font-size: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Button */
button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #4f46e5;
  color: white;
  cursor: pointer;
  margin-bottom: 15px;
  transition: 0.3s;
}

button:hover {
  background: #4338ca;
  transform: scale(1.05);
}

/* Todo Container */
#todos {
  width: 300px;
}

/* Each Todo */
#todos div {
  background: white;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Text */
#todos span {
  font-size: 14px;
  color: #333;
}

/* Delete Button */
#todos button {
  background: #ef4444;
  padding: 6px 10px;
  font-size: 12px;
}

#todos button:hover {
  background: #dc2626;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Heading Style */
.heading {
  color: white;
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1px;
  font-weight: bold;
}

/* Optional underline effect */
.heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: white;
  margin: 8px auto 0;
  border-radius: 2px;
}