* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: 
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url("images/bg.jpg.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}


.container {
  width: 90%;
  max-width: 420px;
  /* background: white; */
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}


h1 {
  text-align: center;
}

.subtitle {
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #667eea;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #5563d6;
}

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

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

li.completed span {
  text-decoration: line-through;
  opacity: 0.6;
}

li span {
  flex: 1;
  margin-left: 10px;
}

.delete {
  color: red;
  cursor: pointer;
}

.progress {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

#progressText {
  font-size: 12px;
  text-align: center;
  margin-bottom: 15px;
  opacity: 0.7;
}
select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

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

@media (max-width: 480px) {

  .input-group {
    flex-direction: column;
  }

  .input-group input,
  .input-group select,
  .input-group button {
    width: 100%;
  }

  button {
    padding: 12px;
    font-size: 15px;
  }

  h1 {
    font-size: 22px;
  }

  .container {
    padding: 20px;
  }
}

@media (max-width: 480px) {

  li {
    padding: 12px;
    gap: 8px;
  }

  li span {
    font-size: 14px;
  }

  .delete {
    font-size: 18px;
  }

  .badge {
    display: inline-block;
    margin-top: 4px;
  }
}
@media (max-width: 768px) {

  .container {
    max-width: 500px;
  }
}
