@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, #1e3c72, #2a5298);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 20px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

main {
  flex: 1;
  padding: 25px;
  max-width: 600px;
  width: 100%;
  margin: auto;
}

form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 30px;
}

input[type="date"],
input[type="text"] {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

button {
  background: #00b4d8;
  border: none;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #0077b6;
}

.date-section {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.date-section h3 {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 5px;
  font-size: 1.2rem;
  color: #ffffff;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-text {
  flex: 1;
  font-size: 1rem;
}

li.done .task-text {
  text-decoration: line-through;
  color: #d1d1d1;
  opacity: 0.7;
}

.buttons {
  display: flex;
  gap: 10px;
}

.btn-done {
  background: #90e0ef;
  color: #023e8a;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-done:hover {
  background: #00b4d8;
  color: white;
}

.btn-delete {
  background: #ef233c;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-delete:hover {
  background: #9b1d2c;
}

footer {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  text-align: center;
  font-size: 1rem;
  color: #ffffff;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}

@media (max-width: 500px) {
  body {
    font-size: 18px;
  }

  form {
    flex-direction: column;
  }

  input, button {
    width: 100%;
  }

  .task-text {
    font-size: 1.1rem;
  }

  header {
    font-size: 1.6rem;
  }
}
