.task-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-left: 4rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.task-container:last-child {
  margin-bottom: 0;
}

.task-header {
  position: relative;
}

.task-checkbox {
  position: absolute;
  left: -3.2rem;
  top: 1rem;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--color-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-lightest);
  z-index: 2;
  transition: all 0.2s ease;
  cursor: pointer;
}

.task-checkbox:hover {
  border-color: var(--color-accent);
  background-color: var(--color-lighter);
  transform: scale(1.05);
}

.task-checkbox.done {
  background-color: #1a7f37;
  border-color: #1a7f37;
}

.task-checkbox svg {
  width: 12px;
  height: 12px;
  position: relative;
  top: -0.5px;
}

.task-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.875rem;
  border: 1px solid var(--color-light);
  background-color: var(--color-lightest);
}

.task-title:hover {
  background-color: var(--color-lighter);
  border-color: var(--color-light);
}

.task-title-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.task-title-text {
  font-weight: 500;
  color: var(--color-darkest);
}

.task-subtitle {
  font-size: 0.75rem;
  color: var(--color-gray);
  font-weight: normal;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.task-status {
  font-size: 0.75rem;
  color: var(--color-gray);
  background-color: var(--color-lighter);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--color-light);
  transition: all 0.2s ease;
}

.task-status.completed {
  color: #1a7f37;
  background-color: #dafbe1;
  border-color: #1a7f37;
}

.task-arrow {
  color: var(--color-gray);
  transition: transform 0.2s ease;
}

.task-content {
  padding: 1rem;
  font-size: 0.875rem;
  animation: slideDown 0.2s ease-out;
  background-color: #f6f8fa;
  border: 1px solid var(--color-light);
  border-radius: 6px;
  margin-top: -1px;
}

.task-content p:first-child {
  margin-top: 0;
}

.task-tip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: 6px;
  margin-bottom: 1rem;
  color: var(--color-gray);
  font-size: 0.75rem;
  border: 1px solid var(--color-light);
}

.task-tip svg {
  fill: var(--color-gray);
}

.task-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

/* .task-content li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-gray);
} */
/* 
.task-content li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--color-accent);
} */

.task-content p {
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.task-container.moving {
  transform: scale(0.98);
  opacity: 0.8;
  cursor: grabbing;
}

.task-container.dragging {
  cursor: grab;
}

.task-container.completed {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .task-container {
    padding-left: 1.2rem;
  }

  .task-checkbox {
    left: -1.5rem;
    width: 15px;
    height: 15px;
  }

  .task-status {
    display: none;
  }
}
