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

body {
    background-color: #d3dbd9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.todo-form {
    display: flex;
    margin-bottom: 1.5rem;
}

#taskInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

#dateInput {
    padding: 10px;
    border: 1px solid #ddd;
    border-left: none;
    font-size: 1rem;
}

#addTask {
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

#addTask:hover {
    background-color: #2980b9;
}

.todo-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.todo-filters button {
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.todo-filters button.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

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

.todo-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.todo-item .task-content {
    flex: 1;
}

.todo-item.completed .task-content {
    text-decoration: line-through;
    color: #888;
}

.todo-item .task-date {
    font-size: 0.8rem;
    color: #888;
    margin-left: 10px;
}

.todo-item .task-actions {
    display: flex;
}

.todo-item .task-actions button {
    background-color: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 8px;
}

.todo-item .task-actions button:hover {
    color: #333;
}

.delete-btn:hover {
    color: #e74c3c !important;
}

@media (max-width: 600px) {
    .todo-form {
        flex-direction: column;
    }
    
    #taskInput, #dateInput, #addTask {
        width: 100%;
        margin-bottom: 8px;
        border-radius: 4px;
    }
    
    #dateInput {
        border-left: 1px solid #ddd;
    }
}
