* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0d1117;
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #c9d1d9;
  padding: 20px;
}

.container {
  background: linear-gradient(145deg, #1c1c27, #1a1f2b);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 25px;
  width: 90%;
  max-width: 520px;
  border: 1px solid #30363d;
  transition: 0.4s ease-in-out;
}

.container h2 {
  text-align: center;
  color: #58a6ff;
  font-size: 2.2rem;
  margin-bottom: 25px;
  text-shadow: 1px 1px 4px rgba(88, 166, 255, 0.3);
  letter-spacing: 1px;
}

.input_container {
  display: flex;
  gap: 12px;
  align-items: center;
}

#Text {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #30363d;
  border-radius: 10px;
  background-color: #161b22;
  color: #e6edf3;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#Text::placeholder {
  color: rgba(230, 237, 243, 0.6);
}

#Text:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 8px rgba(88, 166, 255, 0.5);
  transform: scale(1.02);
}

#Add {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #58a6ff, #1f6feb);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

#Add:hover {
  background: linear-gradient(135deg, #1f6feb, #58a6ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(88, 166, 255, 0.4);
}

#Add:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#Task {
  list-style: none;
  width: 100%;
  background: #1c212c;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 100px;
  border: 1px solid #30363d;
}

#Task li {
  background: linear-gradient(135deg, #21262d, #2c313c);
  color: #e6edf3;
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#Task li:hover {
  background: linear-gradient(135deg, #2c313c, #3c4452);
  transform: translateX(5px);
  box-shadow: 0 6px 14px rgba(88, 166, 255, 0.3);
}

#Task li.completed {
  text-decoration: line-through;
  color: #e74c3c; /* bright red */
  opacity: 1; /* full opacity so red shows clearly */
}

#Task li button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  color: #e74c3c;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}

#Task li button:hover {
  color: #c0392b;
}
