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

body {
    background: linear-gradient(120deg, #f6d365, #fda085);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

header {
    background-color: #4a69bd;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
}

#todo-form {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#todo-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#todo-input:focus {
    border-color: #4a69bd;
}

#add-button {
    background-color: #4a69bd;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

#add-button:hover {
    background-color: #3a5aad;
}

.todo-container {
    max-height: 300px;
    overflow-y: auto;
}

#todo-list {
    list-style-type: none;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.todo-item:hover {
    background-color: #f9f9f9;
}

.todo-item.completed {
    background-color: #f8f9fa;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #aaa;
}

.todo-checkbox {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.todo-text {
    flex: 1;
    font-size: 16px;
    color: #333;
    word-break: break-word;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.delete-btn:hover {
    opacity: 1;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.filter-buttons button {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s;
}

.filter-buttons button:hover {
    color: #4a69bd;
}

.filter-buttons button.active {
    color: #4a69bd;
    font-weight: bold;
}

#clear-completed {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    transition: color 0.3s;
}

#clear-completed:hover {
    color: #ff6b6b;
}

.todo-stats {
    padding: 15px 20px;
    color: #777;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .container {
        width: 95%;
    }
    
    .filters {
        flex-direction: column;
        gap: 10px;
    }
}