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

body{
    min-height:100vh;
    background:linear-gradient(135deg,#141e30,#243b55);
    color:white;
    padding:20px;
    transition:0.5s;
}

.container{
    max-width:1000px;
    margin:auto;
    background:rgba(255,255,255,0.08);
    padding:30px;
    border-radius:25px;
    backdrop-filter:blur(10px);
}

h1{
    text-align:center;
    margin-bottom:25px;
}

.top-bar{
    display:flex;
    gap:15px;
    margin-bottom:20px;
}

.top-bar input,
.input-section input,
.input-section select{
    flex:1;
    padding:14px;
    border:none;
    border-radius:10px;
    outline:none;
}

button{
    padding:14px 20px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    background:#ffcc00;
    transition:0.3s;
}

button:hover{
    transform:scale(1.03);
}

.input-section{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr auto;
    gap:15px;
}

#error{
    margin-top:15px;
    color:#ff9e9e;
}

#taskList{
    margin-top:30px;
    list-style:none;
}

.task{
    background:rgba(255,255,255,0.12);
    padding:18px;
    border-radius:15px;
    margin-bottom:15px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;

    cursor:grab;
}

.task-info{
    flex:1;
}

.task-title{
    font-size:18px;
    margin-bottom:8px;
}

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

.task-details{
    font-size:14px;
    opacity:0.8;
}

.priority-high{
    color:#ff6b6b;
}

.priority-medium{
    color:#ffd93d;
}

.priority-low{
    color:#6bcB77;
}

.actions{
    display:flex;
    gap:10px;
}

.actions button{
    padding:10px;
    color:white;
}

.complete-btn{
    background:#22c55e;
}

.edit-btn{
    background:#3b82f6;
}

.delete-btn{
    background:#ef4444;
}

.light-mode{
    background:white;
    color:black;
}

.light-mode .container{
    background:#f0f0f0;
}

/* Responsive */

@media(max-width:900px){

    .input-section{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:600px){

    .top-bar{
        flex-direction:column;
    }

    .input-section{
        grid-template-columns:1fr;
    }

    .task{
        flex-direction:column;
        align-items:flex-start;
    }

    .actions{
        width:100%;
        justify-content:flex-end;
    }

}