*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:linear-gradient(135deg,#141e30,#243b55);
  overflow:hidden;
}

.background{
  position:absolute;
  width:500px;
  height:500px;
  background:rgba(255,255,255,0.05);
  border-radius:50%;
  top:-100px;
  left:-100px;
  filter:blur(50px);
}

.container{
  width:100%;
  max-width:500px;
  padding:20px;
  z-index:1;
}

.header{
  text-align:center;
  color:white;
  margin-bottom:20px;
}

.header h1{
  font-size:2.5rem;
  margin-bottom:10px;
}

#date{
  opacity:0.8;
  margin-bottom:8px;
}

.counter{
  font-size:0.95rem;
  color:#ddd;
}

.card{
  background:white;
  border-radius:20px;
  padding:25px;
  box-shadow:0 10px 30px rgba(0,0,0,0.3);
}

.form{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.form input{
  flex:1;
  padding:14px;
  border:none;
  border-radius:12px;
  background:#f2f2f2;
  font-size:1rem;
  outline:none;
}

.form button{
  padding:14px 20px;
  border:none;
  border-radius:12px;
  background:#4f46e5;
  color:white;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}

.form button:hover{
  background:#372fcf;
  transform:scale(1.05);
}

.filters{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom:20px;
}

.filter-btn{
  padding:8px 15px;
  border:none;
  border-radius:20px;
  cursor:pointer;
  background:#e5e5e5;
  transition:0.3s;
}

.filter-btn.active{
  background:#4f46e5;
  color:white;
}

.list{
  list-style:none;
}

.list li{
  background:#f8f8f8;
  padding:14px;
  border-radius:12px;
  margin-bottom:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition:0.3s;
}

.list li:hover{
  transform:translateX(5px);
}

.list li.completed span{
  text-decoration:line-through;
  color:gray;
}

.task-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.delete-btn{
  background:#ff4d4d;
  border:none;
  color:white;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  transition:0.3s;
}

.delete-btn:hover{
  background:#d93636;
}

.empty{
  text-align:center;
  color:gray;
  margin-top:10px;
}

.footer{
  margin-top:15px;
  text-align:center;
}

.ghost{
  padding:10px 18px;
  border:none;
  border-radius:10px;
  background:#222;
  color:white;
  cursor:pointer;
  transition:0.3s;
}

.ghost:hover{
  background:black;
}

.hidden{
  display:none;
}

@media(max-width:500px){
  .header h1{
    font-size:2rem;
  }

  .form{
    flex-direction:column;
  }

  .form button{
    width:100%;
  }
}