*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(139,92,246,.18), transparent 28%),
                radial-gradient(circle at top right, rgba(110,231,249,.16), transparent 25%),
                linear-gradient(180deg, #081120 0%, #050b16 100%);
}

.container{
    width: 100%;
    max-width: 450px;
    min-width: 280px;
    background-color: rgb(156,222,252);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    overflow: hidden;
}

.header{
    text-align: center;
    padding: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.6);
}

.addTask{
    padding: 20px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.addTask input{
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.addTask button{
    padding: 10px 14px;
    background-color: rgb(244,242,153);
    color: rgb(11,11,11);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    transition: 0.2s;
}

.addTask button:hover{
    border: 1px solid black;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.task-list{
    list-style: none;
    padding: 15px;
}

.task-list li{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid white;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    word-break: break-word;
}

.task-list li button{
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    background-color: rgb(244,242,153);
    cursor: pointer;
    flex-shrink: 0;
}

/* Tablet + Mobile */
@media (max-width: 768px){
    body{
        padding: 12px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .container{
        max-width: 100%;
        min-width: unset;
        border-radius: 12px;
    }

    .header{
        font-size: 1.4rem;
        padding: 12px;
    }

    .addTask{
        flex-direction: column;
        align-items: stretch;
    }

    .addTask input,
    .addTask button{
        width: 100%;
    }

    .task-list li{
        flex-direction: column;
        align-items: flex-start;
    }

    .task-list li button{
        width: 100%;
    }
}
