body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  color: #333;
}

.container {
  background: #ffffff;
  margin-top: 50px;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: 90%;
  max-width: 700px;
}

h1 {
  text-align: center;
  color: #222;
  margin-bottom: 1.8rem;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.task-input {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

input, select, button {
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #999;
}

#taskInput {
  flex: 1;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

button:hover {
  background-color: #3e9142;
}

#filterSelect {
  margin: 1rem 0;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 10px;
  width: 100%;
  border: 1px solid #ccc;
}

.task-checkbox {
  margin-right: 10px;
  transform: scale(1.2);
  cursor: pointer;
}

.completed {
  text-decoration: line-through;
  color: #888;
  font-style: italic;
}

.low {
  color: #5cb85c;
  font-style: italic;
}

.medium {
  color: #f0ad4e;
  font-style: italic;
}

.high {
  color: #d9534f;
  font-style: italic;
}

.delayed {
  color: #ff6347 !important;
  font-weight: bold;
}

.due-date {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.reminder-indicator {
  font-size: 14px;
  margin-left: 10px;
  color: #007BFF;
}

.delete-btn {
  background: none;
  border: none;
  color: #d9534f;
  font-weight: bold;
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.delete-btn:hover {
  color: #b52b27;
}

.restore-btn {
  background: none;
  border: none;
  color: #007BFF;
  font-size: 18px;
  font-style: italic;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.restore-btn:hover {
  color: #0056b3;
}

#trashList {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  border: 1px dashed #ccc;
  background-color: #fefefe;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 20px;
}

.task-list-container {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1rem;
  background-color: #fafafa;
}

#taskList li,
#trashList li {
  margin-bottom: 12px;
  padding: 10px 14px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease;
  gap: 10px;
}

#taskList li:hover,
#trashList li:hover {
  transform: scale(1.01);
  background-color: #fefefe;
}

@media (max-width: 600px) {
  .task-input {
    flex-direction: column;
    gap: 10px;
  }
  #taskInput,
  #prioritySelect,
  #addBtn,
  #filterSelect {
    width: 100%;
  }
  .container {
    padding: 1.5rem;
  }
  #taskList span, #trashList span {
    flex-grow: 1;
    cursor: pointer;
  }
}