/* ============= LISTA ÚNICA DE TAREFAS ============= */

.taskCardList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.taskCard {
  position: relative;
  width: 100%;
  min-height: 84px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  user-select: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.taskCard:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.taskCard.dragging {
  opacity: 0.9;
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  cursor: grabbing;
}

.taskCardPlaceholder {
  width: 100%;
  min-height: 88px;
  border-radius: 12px;
  background: var(--surface-0);
  opacity: 0.5;
  border: 2px dashed var(--text-secondary);
  margin: 6px 0;
}

.taskCardSwipeBg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 12px;
  z-index: 1;
}

.taskCardSwipeBgLeft {
  background: #4CAF50;
  justify-content: flex-start;
  padding-left: 24px;
}

.taskCardSwipeBgRight {
  background: #FF9800;
  justify-content: flex-end;
  padding-right: 24px;
}

.taskCardSwipeIcon {
  font-size: 32px;
  font-weight: bold;
  color: white;
  line-height: 1;
}

.taskCardContent {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 18px 20px;
  background: transparent;
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.taskCardMain {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taskCardTitle {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: var(--text-primary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.taskCardTitleCompleted {
  text-decoration: line-through;
  opacity: 0.4;
}

.taskCardLabel {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.taskListEmpty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.taskListEmptyIcon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.taskListEmptyText {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.taskListEmptyHint {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Responsivo */
@media (max-width: 768px) {
  .taskCardList {
    padding: 12px;
    gap: 10px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom) + 64px);
  }
  
  .taskCardContent {
    padding: 14px 16px;
    min-height: 76px;
  }
  
  .taskCardTitle {
    font-size: 16px;
    line-height: 22px;
  }
  
  .taskCardLabel {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .taskCardList {
    max-width: 1000px;
  }
}

body.dark .taskCard {
  background: #1E1E1E;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark .taskCard:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}
