body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

main {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.todo-summary-container {
  margin-bottom: 24px;
}

.status {
  margin: 4px 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e9ecef;
  display: inline-block;
}

.to-do-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.add-btn {
  padding: 8px 16px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-btn:hover {
  background: #0056b3;
}

.display-todo {
  margin-top: 16px;
}

.todo-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.edit-btn,
.delete-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95em;
}

.edit-btn {
  background: #ffc107;
  color: #212529;
}

.edit-btn:hover {
  background: #e0a800;
}

.delete-btn {
  background: #dc3545;
  color: #fff;
}

.delete-btn:hover {
  background: #b52a37;
}
.todo-due-date {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.95em;
  color: #6c757d;
  background: #f1f3f5;
  padding: 4px 10px;
  border-radius: 4px;
}
.status-select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  background: #f8f9fa;
  font-size: 0.95em;
}
.todo-item {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fafbfc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#add-todo-form {
  display: flex;
  flex-direction: column;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"] {
  background-color: #007bff;
  color: white;
}

#cancel-add-todo {
  background-color: #e0e0e0;
}