.tasks-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg-secondary);
}

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
  min-height: 36px;
}

.title-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.task-count {
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.btn-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0.6;
}

.btn-clear:hover {
  opacity: 1;
  background: var(--color-bg-hover);
}

.empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

.tasks-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-item {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  padding: 6px 8px;
  transition: all 0.2s;
}

.task-item:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border);
}

.task-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.task-icon {
  font-size: 14px;
  line-height: 1;
}

.task-name {
  flex: 1;
  font-size: 12px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.task-status-badge {
  font-size: 10px;
  white-space: nowrap;
}

.status-pending {
  color: var(--color-text-muted);
}

.status-running {
  color: var(--color-primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

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

.status-failed {
  color: var(--color-error);
}

.status-cancelled {
  color: var(--color-text-muted);
}

.task-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.btn-cancel-task {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--color-error);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.9;
}

.btn-cancel-task:hover {
  opacity: 1;
  transform: scale(1.05);
}
