/* 🌈 Base styles */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  margin: 0;
  padding-top: 40px;
  transition: background 0.3s;
}

/* 🌙 Dark mode changer*/
body.dark {
  background: linear-gradient(135deg, #232526, #414345);
  color: #f1f1f1;
}

.container {
  background: #fff;
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  width: 95%;
  max-width: 500px;
  animation: fadeIn 0.8s ease-in-out;
}

body.dark .container {
  background: #2c2c2c;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

#themeToggle {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.input-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

input[type="text"], select {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
}

button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
}

button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

#addBtn { background: #28a745; color: #fff; }
#updateBtn { background: #007bff; color: #fff; }

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

body.dark li {
  background: #3a3a3a;
  color: #f1f1f1;
}

li:hover { transform: scale(1.02); }

li .actions { display: flex; gap: 8px; }

li button {
  padding: 5px 10px;
  font-size: 14px;
}

.delete-btn { background: #dc3545; color: #fff; }
.edit-btn { background: #ffc107; color: #000; }
.done-btn { background: #17a2b8; color: #fff; }

/* ✅ Completed task */
li.done span {
  text-decoration: line-through;
  color: gray;
  opacity: 0.7;
  transition: 0.3s;
}

/* 📊 Progress bar */
.progress-container {
  width: 100%;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  height: 10px;
}

#progress-bar {
  width: 0;
  height: 100%;
  background: #28a745;
  transition: width 0.3s ease-in-out;
}




/* 🌟 Footer Styling */
footer {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border-radius: 15px 15px 0 0;
  animation: fadeIn 1s ease-in-out;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

footer p {
  margin: 5px 0;
  font-size: 14px;
}

footer .tagline {
  font-style: italic;
  font-size: 13px;
  opacity: 0.9;
}

footer .social-links {
  margin-top: 10px;
}

footer .social-links a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  transition: color 0.3s, transform 0.3s;
}

footer .social-links a:hover {
  color: #ffe259;
  transform: scale(1.1);
}
