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

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    display: flex;
    justify-content: center;
    padding: 40px;
}

/* Container */
.container {
    background: #fff;
    min-height: 500px;
    width: 400px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

/* Form */
form {
    display: flex;
    gap: 10px;
}

#todo-input {
    flex: 1;
    padding: 15x;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

button {
    padding: 10px 15px;
    border: none;
    background: #4CAF50;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #45a049;
}

/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.filter {
    background: #eee;
    color: #333;
}

.filter.active {
    background: #4CAF50;
    color: white;
}

/* Todo List */
#todo-list {
    list-style: none;
}

#todo-list li {
    padding: 15px;
    margin-bottom: 8px;
    background: #fafafa;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

#todo-list li:hover {
    background: #f0f0f0;
}

/* Completed */
.completed {
    text-decoration: line-through;
    color: #888;
}

/* Delete button */
.delete-btn {
    background: transparent;
    color: red;
    font-size: 16px;
    display: none;
}

#todo-list li:hover .delete-btn {
    display: inline;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

#clear-completed {
    background: crimson;
}

#clear-completed:hover {
    background: darkred;
}

/* Completed task looks faded and crossed out */
li.completed span {
    text-decoration: line-through;
    color: #aaa;
}

/* Completed task has a different background */
li.completed {
    background: #f5f5f5;
    border-left: 4px solid #ccc;
    opacity: 0.7;
}

/* Active (not completed) task stands out */
li:not(.completed) {
    border-left: 4px solid #4a90d9;
    background: #fff;
}