/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

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

/* BODY */
body{
    height: 100vh;
    background: linear-gradient(135deg, #6B73FF, #000DFF);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* MAIN CONTAINER */
.container{
    width: 420px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* HEADER */
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1{
    font-size: 26px;
    font-weight: 600;
}

.theme-toggle{
    font-size: 25px;
    cursor: pointer;
}

/* COUNTERS */
.counters{
    display: flex;
    justify-content: space-between;
    margin: 15px 0 5px;
}

.counters p{
    font-size: 14px;
}

/* INPUT SECTION */
.input-section{
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.input-section input{
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 15px;
}

.input-section button{
    padding: 12px 20px;
    border: none;
    background: #00F5A0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.input-section button:hover{
    background: #00d88c;
}

/* FILTER BUTTONS */
.filters{
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.filters .filter-btn{
    flex: 1;
    margin: 0 4px;
    padding: 10px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.filters .active{
    background: #00F5A0;
    color: black;
}

/* TASK LIST */
#taskList{
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
}

.task{
    background: rgba(255,255,255,0.2);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* TASK BUTTONS */
.task .actions span{
    margin-left: 10px;
    cursor: pointer;
    font-size: 18px;
}

/* EMPTY MESSAGE */
#emptyMsg{
    text-align: center;
    font-size: 15px;
    margin-top: 15px;
    display: none;
}

/* ANIMATION */
@keyframes fadeIn{
    from{opacity: 0; transform: translateY(10px);}
    to{opacity: 1; transform: translateY(0);}
}

/* RESPONSIVE */
@media(max-width: 480px){
    .container{
        width: 90%;
    }
}
