.task {
  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 12px;

  background-color: white;
  border-radius: 5px;

  box-shadow: 0px 1px 3px 2px rgba(215, 215, 215, 1);
}

.task:hover {
  background-color: #e9eaeb;
}

.task-assignee {
  border-radius: 100%;
  background-color: #0515240f;

  width: 22px;
  height: 22px;
}

.task-content {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.task-tag {
  color: #505258;
  font-size: 12px;
  text-transform: uppercase;
}

.task-details {
  display: flex;
  gap: 4px;
}

.task-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.task-remove-btn {
  cursor: pointer;
  background-color: transparent;
  border: none;
  font-weight: 600;
}

.task.dragging {
    opacity: 0.5;
}

.drop-indicator {
    height: 1px;
    background-color: #292a2e;
    margin: 8px 0;
    border-radius: 4px;
    pointer-events: none;
}

.task-assignee {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.task-assignee:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.task-deadline {
  font-size: 11px;
  color: #5e6c84;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 6px;
  background-color: #f4f5f7;
  border-radius: 3px;
  width: fit-content;
}

.task-deadline.overdue {
  background-color: #ffebe6;
  color: #de350b;
  font-weight: 600;
}

body:has(#theme-toggle:checked) .task-deadline {
  background-color: #353638;
  color: #b0b3b8;
}

body:has(#theme-toggle:checked) .task-deadline.overdue {
  background-color: #442e2e;
  color: #ff8f73;
}