body{
font-family:Segoe UI;
background:linear-gradient(120deg,#667eea,#764ba2);
height:100vh;
display:flex;
align-items:center;
justify-content:center;
margin:0;
transition:0.3s;
}

.dark{
background:#1e1e1e;
color:white;
}

.app{
background:white;
padding:30px;
border-radius:15px;
width:420px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
text-align:center;
transition:0.3s;
}

.dark .app{
background:#2a2a2a;
}

.top-bar{
display:flex;
gap:5px;
margin-bottom:10px;
}

input,select{
padding:8px;
border-radius:6px;
border:1px solid #ccc;
}

button{
padding:8px 12px;
border:none;
border-radius:6px;
background:#667eea;
color:white;
cursor:pointer;
}

button:hover{
background:#5565d6;
}

.filters{
margin:10px 0;
display:flex;
justify-content:center;
gap:5px;
}

ul{
padding:0;
margin-top:15px;
}

li{
list-style:none;
background:#f4f4f4;
padding:10px;
margin:8px 0;
border-radius:8px;
display:flex;
justify-content:space-between;
align-items:center;
transition:0.2s;
}

.dark li{
background:#3a3a3a;
}

.task-info{
display:flex;
flex-direction:column;
align-items:flex-start;
}

.completed{
text-decoration:line-through;
color:gray;
}

.priority-high{
border-left:5px solid red;
}

.priority-medium{
border-left:5px solid orange;
}

.priority-low{
border-left:5px solid green;
}

.delete{
color:red;
cursor:pointer;
}

.progress-bar{
height:6px;
background:#eee;
border-radius:5px;
overflow:hidden;
margin-top:10px;
}

#progress{
height:100%;
background:#667eea;
width:0%;
transition:0.3s;
}

.bottom{
margin-top:15px;
display:flex;
justify-content:space-between;
}
input[type="checkbox"]{
width:18px;
height:18px;
cursor:pointer;
}