@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body{
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #74ebd5, #acb6e5);
}
.container {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 25px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInSlide 1s ease-out forwards;
  opacity: 0;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.container:hover {
  transform: scale(1.01);
}
.header {
  text-align: center;
  padding: 20px;
  font-size: 2.2em;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #6dd5ed, #2193b0);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  letter-spacing: 1px;
  cursor: pointer;
}
.header:hover{
  transform: translateY(-3px);
}

.header::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background: white;
  left: 20%;
  bottom: 5px;
  border-radius: 2px;
  animation: underlineSlide 1s ease-out;
}

@keyframes underlineSlide {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 60%;
    left: 20%;
  }
}
.addTask {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px;
  margin: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

@media screen and (max-width: 480px) {
  .addTask {
    flex-direction: column;
    gap: 12px;
  }

  input, button {
    width: 100%;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input {
  width: 60%;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #ccc;
  outline: none;
  font-size: 1em;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
}
input:focus {
  border-color: #2193b0;
  box-shadow: 0 0 8px rgba(33, 147, 176, 0.6);
  background-color: #ffffff;
}


button {
  background-color: rgb(244, 242, 153);
  color: rgb(11, 11, 11);
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}
button:hover {
  background-color: rgb(255, 213, 91);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid black;
  box-shadow: 2px 2px 2px;
}

.delete-btn {
  background-color: rgb(255, 123, 123);
  color: white;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.delete-btn:hover {
  background-color: rgb(255, 80, 80);
  transform: scale(1.05);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

ul {
  list-style: none;
  padding: 0 5px 10px;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 10px 15px;
  margin-bottom: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-size: 1em;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

li:hover {
  transform: scale(1.02);
  background-color: rgba(255, 255, 255, 1);
}
ul::-webkit-scrollbar {
  width: 6px;
}

ul::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 4px;
}


@media screen and (max-width: 768px) {
  .container {
    width: 60vw;
    padding: 10px;
  }

  .header {
    font-size: 1.5em;
  }

  .addTask input {
    width: 60%;
    font-size: 0.9em;
  }

  .addTask button {
    font-size: 0.9em;
  }

  li {
    font-size: 0.9em;
  }
}

@media screen and (max-width: 480px) {
  .container {
    width: 90vw;
  }

  .header {
    font-size: 1.3em;
    padding: 8px;
  }

  .addTask {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .addTask input, 
  .addTask button {
    width: 90%;
    font-size: 0.9em;
  }

  li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.9em;
  }

  li button {
    align-self: flex-end;
  }
}

@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeInSlide 1s ease-out forwards;
  opacity: 0;
}


