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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f2f2;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  font-size: 2.5rem;
  color: black;
  text-align: center;
  margin-bottom: 20px;
}

header {
  background-color: #333;
  color: #fff;
  padding: 1rem 0;
}

main {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
}

.task-form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.task-form .taskinput {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.task-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.task-form .form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.task-form select,
.task-form input[type="date"],
.task-form input[type="time"],
.task-form button {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.task-form select {
  flex: 1;
  max-width: 150px;
}

.task-form input[type="date"],
.task-form input[type="time"] {
  width: 150px;
}

.task-form button {
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}

.task-form button:hover {
  background-color: #0056b3;
}

/* Filters styles */
.filters {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.filters .show-all-btn,
.filters .filter-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.filters .show-all-btn {
  background-color: #28a745;
  color: #fff;
}

.filters .filter-btn {
  background-color: #007bff;
  color: #fff;
}

.filters .show-all-btn:hover,
.filters .filter-btn:hover {
  opacity: 0.8;
}

/* Task list styles */
.task-list {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.task {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.task:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.task p {
  margin-bottom: 5px;
}

.task .task-details {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
}

.task.expanded .task-details {
  display: block;
}

.task button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.task button:hover {
  opacity: 0.8;
}

.task .mark-done {
  background-color: #28a745;
  color: #fff;
}

.task .close-task,
.task .delete-task {
  background-color: #dc3545;
  color: #fff;
  margin-left: 10px;
}

.task .delete-task:hover {
  background-color: #c82333;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .task-form,
  .filters {
    flex-direction: column;
  }

  .task-form .form-row {
    flex-wrap: wrap;
  }

  .task-form select,
  .task-form input[type="date"],
  .task-form input[type="time"],
  .task-form button {
    width: 100%;
    margin-bottom: 10px;
  }
}
