body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

h1 {
    font-size: 2.5rem;
    color: #bb86fc;
    margin-bottom: 20px;
}

input[type="text"]{
    padding: 12px 20px;
    font-size: 1rem;
    border:2px solid #333;
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #fff;
    outline: none;
    transition: border-color 0.3 ease;
}

input[type="text"]:focus{
    border-color: #bb86fc;
}

button{
    padding: 12px 20px;
    font-size: 1rem;
    background-color: #bb86fc;
    color:#121212;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    margin-top: 10px;
    transition: transform 0.1 ease, background-color 0.3 ease;
}

button:hover {
    background-color: #9b59b6;
}

button:active {
    transform: scale(0.95);
}

ul {
    list-style-type: none;
    padding: 0;
    margin-top: 30px;
    width: 100%;
    max-width: 400px;
}

li {
    background-color: #1e1e1e;
    margin: 10px 0;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-left: 4px solid red;
    color: white;
    transition: background-color 0.3 ease;
}

li.completed{
    border-left: 4px solid green;
}

li span{
    flex-grow: 1;
}