
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f2edf7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px #d5c9e0;
}

h1 {
    text-align: center;
    color: #5b3b75;
    margin-bottom: 20px;
}

.input-box {
    display: flex;
    gap: 8px;
}

input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #cbb9db;
    border-radius: 8px;
    outline: none;
}

button {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #7952a0;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #5b3b75;
}

ul {
    list-style: none;
    margin-top: 20px;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f7f2fb;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

li span {
    flex: 1;
    cursor: pointer;
}

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

.delete-btn {
    background: #d9536f;
    padding: 8px 10px;
}
