/* Global Reset & Font */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
}

/* Container Card */
.container {
  background: rgba(255, 255, 255, 0.1); /* Transparent to show gradient */
  backdrop-filter: blur(15px);
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-align: center;
}

/* Headings */
h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.subtitle {
  font-size: 1rem;
  color: #f0e6ff;
  margin-bottom: 25px;
}

/* Input Group */
.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  background: rgba(255,255,255,0.3);
  color: #fff;
  transition: 0.3s;
}

input::placeholder {
  color: #eee;
}

input:focus {
  background: rgba(255,255,255,0.5);
}

/* Button */
button {
  padding: 12px 20px;
  background: #f0a6ff;
  color: #111;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #e377ff;
  transform: translateY(-2px);
}

/* Task List */
ul {
  list-style: none;
  padding: 0;
}

li {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 12px 15px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0; /* Start invisible for fade-in */
}

li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.delete-btn {
  background: none;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 18px;
}

/* Fade-in Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  margin-top: 30px;
  font-size: 0.8rem;
  color: #f0e6ff;
}