body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
width: 400px;
display: flex;
flex-direction: column;
align-items: center;
}
h1,
h2 {
text-align: center;
margin-bottom: 20px;
}
#search {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
#todo-form {
display: flex;
justify-content: space-between;
width: 100%;
gap: 10px;
margin-bottom: 20px;
}
#new-task {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button {
padding: 10px;
border: none;
border-radius: 4px;
background-color: #007bff;
color: white;
cursor: pointer;
box-sizing: border-box;
}
button:hover {
background-color: #0056b3;
}
ul {
list-style-type: none;
padding: 0;
margin: 0 0 20px 0;
width: 100%;
}
li {
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #f9f9f9;
}
.task-actions {
display: flex;
gap: 10px;
}
.task-actions button {
padding: 5px 10px;
}
.task-actions .edit {
background-color: #28a745;
}
.task-actions .edit:hover {
background-color: #218838;
}
.task-actions .delete {
background-color: #dc3545;
}
.task-actions .delete:hover {
background-color: #c82333;
}
.task-actions .complete {
background-color: #ffc107;
}
.task-actions .complete:hover {
background-color: #e0a800;
}
.task-actions .done {
background-color: #007bff;
}
.task-actions .done:hover {
background-color: #0056b3;
}
.completed-task {
text-decoration: line-through;
color: #6c757d;
}