.container {
  max-width: 800px;
}

.list-group {
  list-style-type: none;
}

.list-group-item+.list-group-item {
  border-top-width: 1px;
}

.todo-item {
  border-radius: 6px;
  margin: 6px 0px;
  padding: 10px 14px;
  transition: background-color 0.2s;
}

.form-check-input[type=checkbox] {
  margin: 0;
}

.todo-item:hover .todo-actions {
  opacity: 1;
}

.todo-actions {
  opacity: 0;
  transition: opacity 0.2s;
}

.todo-actions .btn {
  border: none;
}

.completed-todo {
  background-color: #f8f9fa;
}

.completed-todo .todo-text {
  text-decoration: line-through;
  color: #6c757d;
}

.edit-container {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.edit-input {
  flex: 1;
}

.sortable-placeholder {
  border: 1px dashed #ced4da;
  background-color: #ddd;
  height: 50px;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
  box-sizing: border-box;
}

.ui-sortable-helper {
  opacity: 0.6;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-sizing: border-box;
}

.drag-handle {
  cursor: grab;
  color: #adb5bd;
}

.drag-handle:active {
  cursor: grabbing;
}

.todo-item.ui-sortable-helper .todo-actions {
  opacity: 0;
}

/* Make sure the action buttons are visible on mobile */
@media (max-width: 768px) {
  .todo-actions {
    opacity: 1;
  }
}
