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

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #333;
    background: 
        
        url('image/bg4.png') no-repeat center center fixed;
    background-size: cover;
}


.container {
    max-width: 500px;
    margin: 50px auto;
    background: #8cada4;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color:#ffffff;

}

.input-section {
    display: flex;
    margin-bottom: 15px;
}

#taskInput {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
}

#addTaskBtn {
    padding: 10px 16px;
    border: none;
    background: #ccc;
    color: black;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}

#addTaskBtn:hover {
    background:#d9d9d9;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 6px 12px;
    border: none;
    background: #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
}

.filter-btn.active {
    background: #d9d9d9;
    color: white;
}

#taskList {
    list-style: none;
}

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

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

.task-text {
    flex: 1;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #ffffff;
}

.delete-btn {
    background: #ef4444;
    border: none;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #dc2626;
}

.stats {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ffffff;
}
