.todoWidget {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.todoHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.25rem;
  margin-bottom: 0rem;
}

.todoHeaderLeft {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
}

.todoHeaderRight {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.todoLabel {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.expandButton {
  padding: 0.25rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expandButton:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.todoListExpanded {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.todoListExpanded::-webkit-scrollbar {
  width: 4px;
}

.todoListExpanded::-webkit-scrollbar-track {
  background: transparent;
}

.todoListExpanded::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 2px;
}

.todoListExpanded::-webkit-scrollbar-thumb:hover {
  background: var(--border-primary);
}

.todoItem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.todoItem:hover {
  background: var(--bg-hover);
  border-color: var(--border-primary);
}

.statusCompleted {
  opacity: 0.6;
}

.statusCompleted .todoDescription {
  text-decoration: line-through;
}

.todoIcon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconCompleted {
  color: var(--status-success);
}

.iconInProgress {
  color: var(--accent-primary);
}

.iconPending {
  color: var(--text-tertiary);
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.todoContent {
  flex: 1;
  min-width: 0;
}

.todoDescription {
  font-size: 0.8125rem;
  line-height: 1.1;
  color: rgba(156, 163, 175, 0.7);
  word-wrap: break-word;
}
