body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

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

.task-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.task-form input[type="text"],
.task-form input[type="datetime-local"],
.task-form input[type="email"],
.task-form input[type="tel"],
.task-form select {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 180px;
}

.task-form button {
  padding: 10px 20px;
  background: #28a745;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.filter {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.filter a {
  text-decoration: none;
  font-weight: bold;
  color: #6a0dad;
  font-size: 16px;
}

.filter a.active {
  text-decoration: underline;
  color: #4b0082;
}

ul.task-list {
  list-style: none;
  padding: 0;
}

.task-list li {
  padding: 15px;
  border-left: 6px solid #ccc;
  background: #f9f9f9;
  margin: 10px 0;
  border-radius: 8px;
  position: relative;
}

.task-list li.completed {
  text-decoration: line-through;
  color: gray;
  background: #e9e9e9;
}

.task-list li.low {
  border-left-color: green;
}
.task-list li.medium {
  border-left-color: orange;
}
.task-list li.high {
  border-left-color: red;
}

.countdown {
  font-weight: bold;
  color: #333;
}

.countdown.overdue {
  color: red;
}

.priority {
  font-size: 14px;
  color: #555;
}

.inline-form {
  display: inline;
  margin-left: 10px;
}

.delete-btn {
  background: transparent;
  border: none;
  color: red;
  cursor: pointer;
}
.overdue-alert {
  background-color: #ffcccc;
  color: #a10000;
  font-weight: bold;
  padding: 8px;
  border: 1px solid red;
  margin-top: 5px;
  border-radius: 6px;
}
